index.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import request from '@/config/axios'
  2. export interface BrokerageWithdrawVO {
  3. id: number
  4. userId: number
  5. price: number
  6. feePrice: number
  7. totalPrice: number
  8. type: number
  9. name: string
  10. accountNo: string
  11. bankName: string
  12. bankAddress: string
  13. accountQrCodeUrl: string
  14. status: number
  15. auditReason: string
  16. auditTime: Date
  17. remark: string
  18. }
  19. // 查询佣金提现列表
  20. export const getBrokerageWithdrawPage = async (params: any) => {
  21. return await request.get({ url: `/trade/brokerage-withdraw/page`, params })
  22. }
  23. // 查询佣金提现详情
  24. export const getBrokerageWithdraw = async (id: number) => {
  25. return await request.get({ url: `/trade/brokerage-withdraw/get?id=` + id })
  26. }
  27. // 佣金提现 - 通过申请
  28. export const approveBrokerageWithdraw = async (id: number) => {
  29. return await request.put({ url: `/trade/brokerage-withdraw/approve?id=` + id })
  30. }
  31. // 审核佣金提现 - 驳回申请
  32. export const rejectBrokerageWithdraw = async (data: BrokerageWithdrawVO) => {
  33. return await request.put({ url: `/trade/brokerage-withdraw/reject`, data })
  34. }