stream.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { request } from 'umi';
  2. import { api } from '../api';
  3. import { Paging } from './rankingList';
  4. let wapi = api + '/gameData'
  5. export interface GameRechargeListProps extends Paging {
  6. // 数据归因:1-子游戏维度; 2-父游戏维度
  7. gameDimension?: 1 | 2,
  8. gameId?: number,
  9. pitcherId?: number, // 投手
  10. // 消耗时间
  11. costBeginDate?: string,
  12. costEndDate?: string,
  13. // 订单时间
  14. orderBeginDate?: string,
  15. orderEndDate?: string,
  16. // 渠道
  17. agentId?: number
  18. // 广告
  19. accountId?: string
  20. }
  21. /**
  22. * 充值历史
  23. * @param data
  24. * @returns
  25. */
  26. export async function getGameRechargeListApi(data: GameRechargeListProps) {
  27. return request(wapi + `/gameData/flow/monitor`, {
  28. method: 'POST',
  29. data
  30. });
  31. }
  32. /**
  33. * 充值历史总计
  34. * @param data
  35. * @returns
  36. */
  37. export async function getGameRechargeCountApi(data: GameRechargeListProps) {
  38. return request(wapi + `/gameData/flow/monitorCount`, {
  39. method: 'POST',
  40. data
  41. });
  42. }