index.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import { httpRequest } from '../../../services/http/index'
  2. import { HttpRequest } from '../../../services/http/interface'
  3. import service from '../../../services/index'
  4. import { loginid, xtoken } from '../../utils'
  5. /* 获取钻石详情 */
  6. export function getGoods(params: HttpRequest<{req: GuangZuan.GetGoodsReq, rsp: GuangZuan.GetGoods}>) {
  7. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GetGoods', 'GET', params)
  8. }
  9. /* Rapaport最新报价表(广钻) */
  10. export function gzCertAddressConfig(params: HttpRequest<{req: GuangZuan.GzCertAddressConfigReq, rsp: GuangZuan.GzCertAddressConfig[]}>) {
  11. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GzCertAddressConfig', 'GET', params)
  12. }
  13. /* 钻石证书地址参数 */
  14. export function gzCertAddressParam(params: HttpRequest<{req: GuangZuan.GzCertAddressParamReq, rsp: GuangZuan.GzCertAddressParam[]}>) {
  15. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GzCertAddressParam', 'GET', params)
  16. }
  17. /* 首页统计数据 */
  18. export function homeData(params: HttpRequest<{req: GuangZuan.HomeDataReq, rsp: GuangZuan.HomeData}>) {
  19. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/HomeData', 'GET', params)
  20. }
  21. /* 钻石价格计算器 */
  22. export function priceCalc(params: HttpRequest<{req: GuangZuan.PriceCalcReq, rsp: GuangZuan.Gzrapaportprice[]}>) {
  23. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/PriceCalc', 'GET', params)
  24. }
  25. /* 查询求购大厅委托单 */
  26. export function queryBuyOrder(params: HttpRequest<{req: GuangZuan.BuyOrderReq, rsp: GuangZuan.BuyOrder[]}>) {
  27. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryBuyOrder', 'GET', params)
  28. }
  29. /* 钻石搜索 */
  30. export function queryDiamond(params: HttpRequest<{req: GuangZuan.DiamondReq, rsp: GuangZuan.SellOrder[]}>) {
  31. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryDiamond', 'POST', params)
  32. }
  33. /* 查询我的询价-求购 */
  34. export function queryMyBargainApply(params: HttpRequest<{req: GuangZuan.MyBargainApplyReq, rsp: GuangZuan.MyBargainApply[]}>) {
  35. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyBargainApply', 'GET', params)
  36. }
  37. /* 查询我的求购 */
  38. export function queryMyBuyOrder(params: HttpRequest<{req: GuangZuan.MyBuyOrderReq, rsp: GuangZuan.MyBuyOrder[]}>) {
  39. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyBuyOrder', 'GET', params)
  40. }
  41. /* 查询我的摘牌 */
  42. export function queryMyDeListing(params: HttpRequest<{req: GuangZuan.MyDeListingReq, rsp: GuangZuan.MyDeListing[]}>) {
  43. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyDeListing', 'GET', params)
  44. }
  45. /* 查询我的询价-出售 */
  46. export function queryMyDelistingApply(params: HttpRequest<{req: GuangZuan.MyDelistingApplyReq, rsp: GuangZuan.MyDelistingApply[]}>) {
  47. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyDelistingApply', 'GET', params)
  48. }
  49. /* 查询我的收藏 */
  50. export function queryMyFavorite(params: HttpRequest<{req: GuangZuan.MyFavoriteReq, rsp: GuangZuan.MyFavorite[]}>) {
  51. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyFavorite', 'GET', params)
  52. }
  53. /* 查询我的履约 */
  54. export function queryMyPerformanc(params: HttpRequest<{req: GuangZuan.MyPerformancReq, rsp: GuangZuan.MyPerformanc[]}>) {
  55. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyPerformanc', 'GET', params)
  56. }
  57. /* 查询我的出售 */
  58. export function queryMySellOrder(params: HttpRequest<{req: GuangZuan.MySellOrderReq, rsp: GuangZuan.MySellOrder[]}>) {
  59. return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMySellOrder', 'GET', params)
  60. }
  61. /* 查询我的库存 */
  62. export function queryMyWRPosition(params: HttpRequest<{req: GuangZuan.MyWRPositionReq, rsp: GuangZuan.MyWRPosition[]}>) {
  63. return httpRequest(service.config.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. }