index.ts 944 B

1234567891011121314151617181920212223242526272829303132
  1. import { request, goCommonSearchUrl } from '@/services/request/index';
  2. import * as type from './interface';
  3. /**
  4. * 资金流水查询(当前)
  5. * @param params QueryAmountLogParam
  6. * @returns
  7. */
  8. export function QueryAmountLog(params: type.QueryAmountLogParam): Promise<type.QueryAmountLogPsp[]> {
  9. return request({
  10. method: 'get',
  11. url: goCommonSearchUrl('/TaAccount/QueryAmountLog'),
  12. params,
  13. })
  14. .then((value) => value.data.data)
  15. .catch((err) => Promise.reject(err));
  16. }
  17. /**
  18. * 资金流水查询(当前)
  19. * @param params QueryAmountLogParam
  20. * @returns
  21. */
  22. export function QueryHisAmountLog(params: type.QueryHisAmountLogParam): Promise<type.QueryHisAmountLogPsp[]> {
  23. return request({
  24. method: 'get',
  25. url: goCommonSearchUrl('/TaAccount/QueryHisAmountLog'),
  26. params,
  27. })
  28. .then((value) => value.data.data)
  29. .catch((err) => Promise.reject(err));
  30. }