income.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { http } from '@/http/alova'
  2. /**
  3. *
  4. * 发券人账户表-通过userId查询账户信息
  5. */
  6. // export function getCouponIssuerApplyById() {
  7. // return http.Get<CouponIssuerApplyByIdResponse>('/couponCenter/APP/couponIssuerAccount/queryByUserId')
  8. // }
  9. export interface CouponIssuerAccountByPageMapForm {
  10. pageNo?: number
  11. pageSize?: number
  12. year: string
  13. month: string
  14. status: number // 0-待结算, 1-已结算/成功
  15. type: number // 明细类型: 1-佣金收入, 2-提现支出, 3-退款扣减, 4-系统调整
  16. }
  17. // 定义账户明细项接口
  18. export interface AccountDetailItem {
  19. id: number
  20. receiveUserName: string
  21. couponName: string
  22. changeAmount: number
  23. settleTime: string
  24. [key: string]: any
  25. }
  26. // 定义分页响应数据接口
  27. export interface PageMapResponse {
  28. detailList: AccountDetailItem[]
  29. total: number
  30. [key: string]: any
  31. }
  32. // 获取账户明细分页数据(Map格式)
  33. export function getCouponIssuerAccountByPageMap(couponIssuerAccountByPageMapForm: CouponIssuerAccountByPageMapForm) {
  34. return http.Post<PageMapResponse>('/couponCenter/APP/couponIssuerAccountDetail/pageMap', couponIssuerAccountByPageMapForm)
  35. }
  36. /**
  37. *
  38. * 发券人账户表-通过userId查询解锁收益
  39. */
  40. export function getUnlockAmountByUserId() {
  41. return http.Get<number>('/couponCenter/APP/couponIssuerAccount/queryUnlockAmountByUserId')
  42. }
  43. export function getAccountDetailTotalAmount(params: CouponIssuerAccountByPageMapForm) {
  44. return http.Post('/couponCenter/APP/couponIssuerAccountDetail/getAccountDetailTotalAmount', params)
  45. }