index.ts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. import { httpRequest } from '../../../services/http/index'
  2. import { HttpRequest } from '../../../services/http/interface'
  3. import service from '../../../services/index'
  4. /* 获取钻石详情 */
  5. export function getGoods(params: HttpRequest<{req: GuangZuan.GetGoodsReq, rsp: GuangZuan.GetGoods}>) {
  6. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GetGoods', 'GET', params)
  7. }
  8. /* Rapaport最新报价表(广钻) */
  9. export function gzCertAddressConfig(params: HttpRequest<{req: GuangZuan.GzCertAddressConfigReq, rsp: GuangZuan.GzCertAddressConfig[]}>) {
  10. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GzCertAddressConfig', 'GET', params)
  11. }
  12. /* 钻石证书地址参数 */
  13. export function gzCertAddressParam(params: HttpRequest<{req: GuangZuan.GzCertAddressParamReq, rsp: GuangZuan.GzCertAddressParam[]}>) {
  14. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GzCertAddressParam', 'GET', params)
  15. }
  16. /* 首页统计数据 */
  17. export function homeData(params: HttpRequest<{req: GuangZuan.HomeDataReq, rsp: GuangZuan.HomeData}>) {
  18. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/HomeData', 'GET', params)
  19. }
  20. /* 钻石价格计算器 */
  21. export function priceCalc(params: HttpRequest<{req: GuangZuan.PriceCalcReq, rsp: GuangZuan.Gzrapaportprice[]}>) {
  22. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/PriceCalc', 'GET', params)
  23. }
  24. /* 查询求购大厅委托单 */
  25. export function queryBuyOrder(params: HttpRequest<{req: GuangZuan.BuyOrderReq, rsp: GuangZuan.BuyOrder[]}>) {
  26. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryBuyOrder', 'GET', params)
  27. }
  28. /* 钻石搜索 */
  29. export function queryDiamond(params: HttpRequest<{req: GuangZuan.DiamondReq, rsp: GuangZuan.SellOrder[]}>) {
  30. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryDiamond', 'POST', params)
  31. }
  32. /* 查询我的询价-求购 */
  33. export function queryMyBargainApply(params: HttpRequest<{req: GuangZuan.MyBargainApplyReq, rsp: GuangZuan.MyBargainApply[]}>) {
  34. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyBargainApply', 'GET', params)
  35. }
  36. /* 查询我的求购 */
  37. export function queryMyBuyOrder(params: HttpRequest<{req: GuangZuan.MyBuyOrderReq, rsp: GuangZuan.MyBuyOrder[]}>) {
  38. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyBuyOrder', 'GET', params)
  39. }
  40. /* 查询我的摘牌 */
  41. export function queryMyDeListing(params: HttpRequest<{req: GuangZuan.MyDeListingReq, rsp: GuangZuan.MyDeListing[]}>) {
  42. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyDeListing', 'GET', params)
  43. }
  44. /* 查询我的询价-出售 */
  45. export function queryMyDelistingApply(params: HttpRequest<{req: GuangZuan.MyDelistingApplyReq, rsp: GuangZuan.MyDelistingApply[]}>) {
  46. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyDelistingApply', 'GET', params)
  47. }
  48. /* 查询我的收藏 */
  49. export function queryMyFavorite(params: HttpRequest<{req: GuangZuan.MyFavoriteReq, rsp: GuangZuan.MyFavorite[]}>) {
  50. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyFavorite', 'GET', params)
  51. }
  52. /* 查询我的履约 */
  53. export function queryMyPerformanc(params: HttpRequest<{req: GuangZuan.MyPerformancReq, rsp: GuangZuan.MyPerformanc[]}>) {
  54. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyPerformanc', 'GET', params)
  55. }
  56. /* 查询我的出售 */
  57. export function queryMySellOrder(params: HttpRequest<{req: GuangZuan.MySellOrderReq, rsp: GuangZuan.MySellOrder[]}>) {
  58. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMySellOrder', 'GET', params)
  59. }
  60. /* 查询我的库存 */
  61. export function queryMyWRPosition(params: HttpRequest<{req: GuangZuan.MyWRPositionReq, rsp: GuangZuan.MyWRPosition[]}>) {
  62. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyWRPosition', 'GET', params)
  63. }
  64. /* 查询出售大厅委托单 */
  65. export function querySellOrder(params: HttpRequest<{req: GuangZuan.SellOrderReq, rsp: GuangZuan.SellOrder[]}>) {
  66. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QuerySellOrder', 'GET', params)
  67. }
  68. /* 查询仓库信息 */
  69. export function queryWarehouseInfo(params: HttpRequest<{req: GuangZuan.WarehouseInfoReq, rsp: GuangZuan.WarehouseInfo[]}>) {
  70. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryWarehouseInfo', 'GET', params)
  71. }
  72. /* 查询履约信息详情 */
  73. export function queryWrPerformancePlanStep(params: HttpRequest<{req: GuangZuan.WrPerformancePlanStepReq, rsp: GuangZuan.WrPerformancePlanStep[]}>) {
  74. return httpRequest(service.config.goCommonSearchUrl+'/WrTrade2/QueryWrPerformancePlanStep', 'GET', params)
  75. }
  76. /* 查询履约模板 */
  77. export function queryPermancePlanTmp(params: HttpRequest<{req: GuangZuan.PermancePlanTmpReq, rsp: GuangZuan.PermancePlanTmp[]}>) {
  78. return httpRequest(service.config.goCommonSearchUrl+'/WrTrade2/QueryPermancePlanTmp', 'GET', params)
  79. }
  80. /* 查询仓储报表 */
  81. export function queryWRPositionReport(params: HttpRequest<{req: GuangZuan.WRPositionReportReq, rsp: GuangZuan.WRPositionReport[]}>) {
  82. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryWRPositionReport', 'GET', params)
  83. }
  84. /* 查询交易报表 */
  85. export function queryTradeReport(params: HttpRequest<{req: GuangZuan.WRPositionReportReq, rsp: GuangZuan.TradeReport[]}>) {
  86. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryTradeReport', 'GET', params)
  87. }
  88. /* 查询会员报表 */
  89. export function queryMemberReport(params: HttpRequest<{req: GuangZuan.MemberReportReq, rsp: GuangZuan.MemberReport[]}>) {
  90. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMemberReport', 'GET', params)
  91. }
  92. /* 保税仓月电费登记表查询 */
  93. export function queryGzbscuserpowerfee(params: HttpRequest<{req: GuangZuan.GZBscuserPowerFeeReq, rsp: GuangZuan.GZBscuserPowerFee[]}>) {
  94. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGzbscuserpowerfee', 'GET', params)
  95. }
  96. /* 保税仓用户月付款通知书表查询(计费管理) */
  97. export function queryGzbscusermonthpay(params: HttpRequest<{req: GuangZuan.GZBSCuserMonthPayReq, rsp: GuangZuan.GZBSCuserMonthPay[]}>) {
  98. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGzbscusermonthpay', 'GET', params)
  99. }
  100. /* 保税仓出入库申请表查询 */
  101. export function queryGzbscinOutOrder(params: HttpRequest<{req: GuangZuan.GZBSCinOutOrderReq, rsp: GuangZuan.GZBSCinOutOrder[]}>) {
  102. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGzbscinOutOrder', 'GET', params)
  103. }
  104. /* 保税商品报关头寸表查询 */
  105. export function queryGzbscPosition(params: HttpRequest<{req: GuangZuan.GZBSCPositionReq, rsp: GuangZuan.GZBSCPosition[]}>) {
  106. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGzbscPosition', 'GET', params)
  107. }
  108. /* 保税仓本月进口明细/本月出境明细/本月转厂明细查询 */
  109. export function queryBscinoutorder(params: HttpRequest<{req: GuangZuan.BSCInoutOrderReq, rsp: GuangZuan.BSCInoutOrder[]}>) {
  110. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryBscinoutorder', 'GET', params)
  111. }
  112. /* 保税仓出入库申请明细表查询 */
  113. export function queryBScinOutOrderDetail(params: HttpRequest<{req: GuangZuan.BSCInoutOrderDetailReq, rsp: GuangZuan.BSCInoutOrderDetail[]}>) {
  114. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryBScinOutOrderDetail', 'GET', params)
  115. }
  116. /* 保税仓出库申请明细附表查询 */
  117. export function queryBScOutOrderDetailatt(params: HttpRequest<{req: GuangZuan.BSCOutOrderDetailAttReq, rsp: GuangZuan.BSCOutOrderDetailAtt[]}>) {
  118. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryBScOutOrderDetailatt', 'GET', params)
  119. }
  120. /* 我的预售认购列表查询 */
  121. export function queryGZMyPresell(params: HttpRequest<{req: GuangZuan.GZMyPreSellReq, rsp: GuangZuan.GZMyPreSell[]}>) {
  122. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGZMyPresell', 'GET', params)
  123. }
  124. /* 我参与的预售(预售中\执行中)\我参与的集采(集采中\执行中) 列表查询 */
  125. export function queryGZMyTradingPreSell(params: HttpRequest<{req: GuangZuan.GZMyTradingPreSellReq, rsp: GuangZuan.GZMyTradingPreSell[]}>) {
  126. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGZMyTradingPreSell', 'GET', params)
  127. }
  128. /* 预售大厅/我的预售/集采大厅/我的集采 列表查询 */
  129. export function queryGZPreSell(params: HttpRequest<{req: GuangZuan.GZPreSellReq, rsp: GuangZuan.GZPreSell[]}>) {
  130. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGZPreSell', 'GET', params)
  131. }
  132. /* 保税仓结算单表查询 */
  133. export function queryGzbscReckonOrder(params: HttpRequest<{req: GuangZuan.GzbscReckonOrderReq, rsp: GuangZuan.GzbscReckonOrder[]}>) {
  134. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryGzbscreckonorder', 'GET', params)
  135. }