index.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. import { defHttp } from '/@/utils/http/axios';
  2. import {
  3. PageParams,
  4. RentListGetResultModel,
  5. InvoiceListResul,
  6. addCameraParams,
  7. updateParams,
  8. getItemParams,
  9. } from './model';
  10. import { Result } from '/#/axios';
  11. enum Api {
  12. cameraList = '/newV4/service/manage/order/camera/list',
  13. cameraExport = '/newV4/service/manage/order/camera/export',
  14. cameraItem = '/newV4/service/manage/order/camera/item',
  15. incrementList = '/newV4/service/manage/order/increment/list',
  16. incrementExport = '/newV4/service/manage/order/increment/export',
  17. downList = '/newV4/service/manage/order/down/list',
  18. downExport = '/newV4/service/manage/order/down/export',
  19. pageInvoice = '/newV4/service/manage/invoice/pageInvoice',
  20. }
  21. /**
  22. * @description: Get sample list value
  23. */
  24. export const CameraList = (params: PageParams) =>
  25. defHttp.post<Result>({
  26. url: Api.cameraList,
  27. params: params,
  28. // data: params,
  29. headers: {
  30. // @ts-ignore
  31. ignoreCancelToken: true,
  32. },
  33. });
  34. /**
  35. * @description: Get sample list value
  36. */
  37. export const CameraItem = (params: getItemParams) =>
  38. defHttp.get<Result>({
  39. url: Api.cameraItem,
  40. params,
  41. data: params,
  42. headers: {
  43. // @ts-ignore
  44. ignoreCancelToken: true,
  45. },
  46. });
  47. /**
  48. * @description: 导出订单
  49. */
  50. export const CameraExport = (params: PageParams) =>
  51. defHttp.post<Result>({
  52. url: Api.cameraExport,
  53. params: params,
  54. // data: params,
  55. headers: {
  56. // @ts-ignore
  57. ignoreCancelToken: true,
  58. },
  59. });
  60. /**
  61. * @description: Get sample list value
  62. */
  63. export const IncrementExport = (params: PageParams) =>
  64. defHttp.get<Result>({
  65. url: Api.incrementExport,
  66. params: params,
  67. // data: params,
  68. headers: {
  69. // @ts-ignore
  70. ignoreCancelToken: true,
  71. },
  72. });
  73. export const IncrementList = (params: PageParams) =>
  74. defHttp.post<Result>({
  75. url: Api.incrementList,
  76. params: params,
  77. // data: params,
  78. headers: {
  79. // @ts-ignore
  80. ignoreCancelToken: true,
  81. },
  82. });
  83. export const DownExport = (params: PageParams) =>
  84. defHttp.get<Result>({
  85. url: Api.downExport,
  86. params: params,
  87. // data: params,
  88. headers: {
  89. // @ts-ignore
  90. ignoreCancelToken: true,
  91. },
  92. });
  93. export const DownList = (params: PageParams) =>
  94. defHttp.post<Result>({
  95. url: Api.downList,
  96. params: params,
  97. // data: params,
  98. headers: {
  99. // @ts-ignore
  100. ignoreCancelToken: true,
  101. },
  102. });
  103. export const InvoiceList = (params: PageParams) =>
  104. defHttp.post<InvoiceListResul>({
  105. url: Api.pageInvoice,
  106. params,
  107. headers: {
  108. // @ts-ignore
  109. ignoreCancelToken: true,
  110. },
  111. });
  112. // export const allCompanyApi = (params: PageParams) =>
  113. // defHttp.post<RentListGetResultModel>({
  114. // url: Api.allCompany,
  115. // params,
  116. // headers: {
  117. // // @ts-ignore
  118. // ignoreCancelToken: true,
  119. // },
  120. // });
  121. // export const addCameraApi = (params: addCameraParams) =>
  122. // defHttp.post<RentListGetResultModel>({
  123. // url: Api.addCamera,
  124. // params,
  125. // headers: {
  126. // // @ts-ignore
  127. // ignoreCancelToken: true,
  128. // },
  129. // });
  130. // export const editCameraApi = (params: addCameraParams) =>
  131. // defHttp.post<RentListGetResultModel>({
  132. // url: Api.editCamera,
  133. // params,
  134. // headers: {
  135. // // @ts-ignore
  136. // ignoreCancelToken: true,
  137. // },
  138. // });
  139. // export const updateLiveRoomInfoApi = (params: updateParams) =>
  140. // defHttp.post<Result>({
  141. // url: Api.updateLiveRoomInfo,
  142. // params,
  143. // headers: {
  144. // // @ts-ignore
  145. // ignoreCancelToken: true,
  146. // },
  147. // });