index.ts 8.6 KB

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