pitcher.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import { request } from 'umi';
  2. import { api } from '../api';
  3. import { Paging, SortProps } from './rankingList';
  4. let wapi = api + '/gameData'
  5. export interface PitcherTotalProps extends Paging, SortProps {
  6. amountBeginDate?: string, // 充值开始时间
  7. amountEndDate?: string,
  8. beginDate?: string, // 消耗开始时间
  9. endDate?: string,
  10. pitcherId?: number, // 投手ID
  11. }
  12. /**
  13. * 投手总数居
  14. * @param data
  15. * @returns
  16. */
  17. export async function getPitcherTotalListApi(data: PitcherTotalProps) {
  18. return request(wapi + `/pitcherData/pitcher/total`, {
  19. method: 'POST',
  20. data
  21. });
  22. }
  23. /**
  24. * 投手总数居总计
  25. * @param data
  26. * @returns
  27. */
  28. export async function getPitcherTotalSumApi(data: PitcherTotalProps) {
  29. return request(wapi + `/pitcherData/pitcher/total/sum`, {
  30. method: 'POST',
  31. data
  32. });
  33. }
  34. export interface PitcherDayProps extends Paging, SortProps {
  35. beginDate?: string, // 消耗开始时间
  36. endDate?: string,
  37. pitcherId?: number, // 投手ID
  38. }
  39. /**
  40. * 投手每日数据数居
  41. * @param data
  42. * @returns
  43. */
  44. export async function getPitcherDayListApi(data: PitcherDayProps) {
  45. return request(wapi + `/pitcherData/pitcher/day`, {
  46. method: 'POST',
  47. data
  48. });
  49. }
  50. /**
  51. * 投手每日数居总计
  52. * @param data
  53. * @returns
  54. */
  55. export async function getPitcherDaySumApi(data: PitcherTotalProps) {
  56. return request(wapi + `/pitcherData/pitcher/day/total`, {
  57. method: 'POST',
  58. data
  59. });
  60. }
  61. export interface PitcherGameTotalProps extends Paging, SortProps {
  62. amountBeginDate?: string, // 充值开始时间
  63. amountEndDate?: string,
  64. beginDate?: string, // 消耗开始时间
  65. endDate?: string,
  66. pitcherId?: number, // 投手ID
  67. gameCp?: string,
  68. gameId?: number,
  69. gameType?: number
  70. }
  71. /**
  72. * 投手游戏总数居
  73. * @param data
  74. * @returns
  75. */
  76. export async function getPitcherGameTotalListApi(data: PitcherGameTotalProps) {
  77. return request(wapi + `/pitcherData/pitcherGame/total`, {
  78. method: 'POST',
  79. data
  80. });
  81. }
  82. /**
  83. * 投手游戏总数居总计
  84. * @param data
  85. * @returns
  86. */
  87. export async function getPitcherGameTotalSumApi(data: PitcherGameTotalProps) {
  88. return request(wapi + `/pitcherData/pitcherGame/total/sum`, {
  89. method: 'POST',
  90. data
  91. });
  92. }
  93. export interface PitcherGameDayProps extends Paging, SortProps {
  94. beginDate?: string, // 消耗开始时间
  95. endDate?: string,
  96. pitcherId?: number, // 投手ID
  97. gameCp?: string,
  98. gameId?: number,
  99. gameType?: number
  100. }
  101. /**
  102. * 投手每日数据数居
  103. * @param data
  104. * @returns
  105. */
  106. export async function getPitcherGameDayListApi(data: PitcherGameDayProps) {
  107. return request(wapi + `/pitcherData/pitcherGame/day`, {
  108. method: 'POST',
  109. data
  110. });
  111. }
  112. /**
  113. * 投手每日数居总计
  114. * @param data
  115. * @returns
  116. */
  117. export async function getPitcherGameDaySumApi(data: PitcherGameDayProps) {
  118. return request(wapi + `/pitcherData/pitcherGame/day/total`, {
  119. method: 'POST',
  120. data
  121. });
  122. }