wallet.js 799 B

1234567891011121314151617181920212223242526
  1. import request from '@/sheep/request';
  2. const PayWalletApi = {
  3. // 获得钱包流水分页
  4. getWalletTransactionPage: (params) => {
  5. const queryString = Object.keys(params)
  6. .map((key) => encodeURIComponent(key) + '=' + params[key])
  7. .join('&');
  8. return request({
  9. url: `/app-api/pay/wallet-transaction/page?${queryString}`,
  10. method: 'GET'
  11. });
  12. },
  13. // 获得钱包流水统计
  14. getWalletTransactionSummary: (params) => {
  15. const queryString = `createTime=${params.createTime[0]}&createTime=${params.createTime[1]}`
  16. return request({
  17. url: `/app-api/pay/wallet-transaction/get-summary?${queryString}`,
  18. // url: `/app-api/pay/wallet-transaction/get-summary`,
  19. method: 'GET',
  20. // params: params
  21. });
  22. },
  23. };
  24. export default PayWalletApi;