|
|
@@ -2,81 +2,79 @@ import { httpRequest } from '../../../services/http/index'
|
|
|
import { HttpRequest } from '../../../services/http/interface'
|
|
|
import service from '../../../services/index'
|
|
|
|
|
|
-const goCommonSearchUrl = service.config.goCommonSearchUrl
|
|
|
-
|
|
|
/* 获取钻石详情 */
|
|
|
export function getGoods(params: HttpRequest<{req: GuangZuan.GetGoodsReq, rsp: GuangZuan.GetGoods}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/GetGoods', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GetGoods', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* Rapaport最新报价表(广钻) */
|
|
|
export function gzCertAddressConfig(params: HttpRequest<{req: GuangZuan.GzCertAddressConfigReq, rsp: GuangZuan.GzCertAddressConfig[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/GzCertAddressConfig', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GzCertAddressConfig', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 钻石证书地址参数 */
|
|
|
export function gzCertAddressParam(params: HttpRequest<{req: GuangZuan.GzCertAddressParamReq, rsp: GuangZuan.GzCertAddressParam[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/GzCertAddressParam', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/GzCertAddressParam', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 首页统计数据 */
|
|
|
export function homeData(params: HttpRequest<{req: GuangZuan.HomeDataReq, rsp: GuangZuan.HomeData}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/HomeData', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/HomeData', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 钻石价格计算器 */
|
|
|
export function priceCalc(params: HttpRequest<{req: GuangZuan.PriceCalcReq, rsp: GuangZuan.Gzrapaportprice[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/PriceCalc', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/PriceCalc', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询求购大厅委托单 */
|
|
|
export function queryBuyOrder(params: HttpRequest<{req: GuangZuan.BuyOrderReq, rsp: GuangZuan.BuyOrder[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryBuyOrder', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryBuyOrder', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 钻石搜索 */
|
|
|
export function queryDiamond(params: HttpRequest<{req: GuangZuan.DiamondReq, rsp: GuangZuan.SellOrder[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryDiamond', 'POST', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryDiamond', 'POST', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的询价-求购 */
|
|
|
export function queryMyBargainApply(params: HttpRequest<{req: GuangZuan.MyBargainApplyReq, rsp: GuangZuan.MyBargainApply[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMyBargainApply', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyBargainApply', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的求购 */
|
|
|
export function queryMyBuyOrder(params: HttpRequest<{req: GuangZuan.MyBuyOrderReq, rsp: GuangZuan.MyBuyOrder[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMyBuyOrder', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyBuyOrder', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的摘牌 */
|
|
|
export function queryMyDeListing(params: HttpRequest<{req: GuangZuan.MyDeListingReq, rsp: GuangZuan.MyDeListing[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMyDeListing', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyDeListing', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的询价-出售 */
|
|
|
export function queryMyDelistingApply(params: HttpRequest<{req: GuangZuan.MyDelistingApplyReq, rsp: GuangZuan.MyDelistingApply[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMyDelistingApply', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyDelistingApply', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的收藏 */
|
|
|
export function queryMyFavorite(params: HttpRequest<{req: GuangZuan.MyFavoriteReq, rsp: GuangZuan.MyFavorite[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMyFavorite', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyFavorite', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的履约 */
|
|
|
export function queryMyPerformanc(params: HttpRequest<{req: GuangZuan.MyPerformancReq, rsp: GuangZuan.MyPerformanc[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMyPerformanc', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyPerformanc', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的出售 */
|
|
|
export function queryMySellOrder(params: HttpRequest<{req: GuangZuan.MySellOrderReq, rsp: GuangZuan.MySellOrder[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMySellOrder', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMySellOrder', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询我的库存 */
|
|
|
export function queryMyWRPosition(params: HttpRequest<{req: GuangZuan.MyWRPositionReq, rsp: GuangZuan.MyWRPosition[]}>) {
|
|
|
- return httpRequest(goCommonSearchUrl+'/Guangzuan/QueryMyWRPosition', 'GET', params)
|
|
|
+ return httpRequest(service.config.goCommonSearchUrl+'/Guangzuan/QueryMyWRPosition', 'GET', params)
|
|
|
}
|
|
|
|
|
|
/* 查询出售大厅委托单 */
|