index.ts 813 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import request from '@/utils/request';
  2. import { AxiosPromise } from 'axios';
  3. import { WithdrawQuery, WithdrawVO } from './types';
  4. /**
  5. * 查询余额提现列表
  6. */
  7. export function listWithdraw(query: WithdrawQuery): AxiosPromise<WithdrawVO[]> {
  8. return request({
  9. url: '/system/withdraw/list',
  10. method: 'get',
  11. params: query
  12. });
  13. }
  14. /**
  15. * 审核通过
  16. */
  17. export function auditPassWithdraw(id: string | number, remark?: string) {
  18. return request({
  19. url: '/system/withdraw/audit/pass/' + id,
  20. method: 'post',
  21. params: {
  22. remark: remark || ''
  23. }
  24. });
  25. }
  26. /**
  27. * 审核驳回
  28. */
  29. export function auditRejectWithdraw(id: string | number, remark: string) {
  30. return request({
  31. url: '/system/withdraw/audit/reject/' + id,
  32. method: 'post',
  33. params: {
  34. remark
  35. }
  36. });
  37. }