|
@@ -1,117 +1,117 @@
|
|
|
import { httpRequest } from '@/services/http'
|
|
import { httpRequest } from '@/services/http'
|
|
|
-import { HttpRequest } from '@/services/http/interface'
|
|
|
|
|
|
|
+import { HttpParams } from '@/services/http/interface'
|
|
|
import { tradeServerRequest } from '@/services/socket/trade'
|
|
import { tradeServerRequest } from '@/services/socket/trade'
|
|
|
-import { TradeRequest } from '@/services/socket/trade/interface'
|
|
|
|
|
|
|
+import { TradeParams } from '@/services/socket/trade/interface'
|
|
|
import { Market } from '@/constants/market'
|
|
import { Market } from '@/constants/market'
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石买挂牌
|
|
* 钻石买挂牌
|
|
|
*/
|
|
*/
|
|
|
-export function zsBuyOrderListing(params: TradeRequest<Proto.ZSBuyOrderListingReq, Proto.ZSBuyOrderListingRsp>) {
|
|
|
|
|
|
|
+export function zsBuyOrderListing(params: TradeParams<Proto.ZSBuyOrderListingReq, Proto.ZSBuyOrderListingRsp>) {
|
|
|
return tradeServerRequest('ZSBuyOrderListingReq', 'ZSBuyOrderListingRsp', params, Market.GZ);
|
|
return tradeServerRequest('ZSBuyOrderListingReq', 'ZSBuyOrderListingRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石卖挂牌
|
|
* 钻石卖挂牌
|
|
|
*/
|
|
*/
|
|
|
-export function zsSellOrderListing(params: TradeRequest<Proto.ZSSellOrderListingReq, Proto.ZSSellOrderListingRsp>) {
|
|
|
|
|
|
|
+export function zsSellOrderListing(params: TradeParams<Proto.ZSSellOrderListingReq, Proto.ZSSellOrderListingRsp>) {
|
|
|
return tradeServerRequest('ZSSellOrderListingReq', 'ZSSellOrderListingRsp', params, Market.GZ);
|
|
return tradeServerRequest('ZSSellOrderListingReq', 'ZSSellOrderListingRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石买摘牌
|
|
* 钻石买摘牌
|
|
|
*/
|
|
*/
|
|
|
-export function zsBuyOrderDesting(params: TradeRequest<Proto.ZSBuyOrderDestingReq, Proto.ZSBuyOrderDestingRsp>) {
|
|
|
|
|
|
|
+export function zsBuyOrderDesting(params: TradeParams<Proto.ZSBuyOrderDestingReq, Proto.ZSBuyOrderDestingRsp>) {
|
|
|
return tradeServerRequest('ZSBuyOrderDestingReq', 'ZSBuyOrderDestingRsp', params, Market.GZ);
|
|
return tradeServerRequest('ZSBuyOrderDestingReq', 'ZSBuyOrderDestingRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石买摘牌询价
|
|
* 钻石买摘牌询价
|
|
|
*/
|
|
*/
|
|
|
-export function zsBuyOrderDestingNegPrice(params: TradeRequest<Proto.ZSBuyOrderDestingNegPriceReq, Proto.ZSBuyOrderDestingNegPriceRsp>) {
|
|
|
|
|
|
|
+export function zsBuyOrderDestingNegPrice(params: TradeParams<Proto.ZSBuyOrderDestingNegPriceReq, Proto.ZSBuyOrderDestingNegPriceRsp>) {
|
|
|
return tradeServerRequest('ZSBuyOrderDestingNegPriceReq', 'ZSBuyOrderDestingNegPriceRsp', params, Market.GZ);
|
|
return tradeServerRequest('ZSBuyOrderDestingNegPriceReq', 'ZSBuyOrderDestingNegPriceRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石卖摘牌申请
|
|
* 钻石卖摘牌申请
|
|
|
*/
|
|
*/
|
|
|
-export function zsSellOrderDestingApply(params: TradeRequest<Proto.ZSSellOrderDestingApplyReq, Proto.ZSSellOrderDestingApplyRsp>) {
|
|
|
|
|
|
|
+export function zsSellOrderDestingApply(params: TradeParams<Proto.ZSSellOrderDestingApplyReq, Proto.ZSSellOrderDestingApplyRsp>) {
|
|
|
return tradeServerRequest('ZSSellOrderDestingApplyReq', 'ZSSellOrderDestingApplyRsp', params, Market.GZ);
|
|
return tradeServerRequest('ZSSellOrderDestingApplyReq', 'ZSSellOrderDestingApplyRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石买询价操作
|
|
* 钻石买询价操作
|
|
|
*/
|
|
*/
|
|
|
-export function zsBuyOrderDestingNegPriceOperate(params: TradeRequest<Proto.ZSBuyOrderDestingNegPriceOperateReq, Proto.ZSBuyOrderDestingNegPriceOperateRsp>) {
|
|
|
|
|
|
|
+export function zsBuyOrderDestingNegPriceOperate(params: TradeParams<Proto.ZSBuyOrderDestingNegPriceOperateReq, Proto.ZSBuyOrderDestingNegPriceOperateRsp>) {
|
|
|
return tradeServerRequest('ZSBuyOrderDestingNegPriceOperateReq', 'ZSBuyOrderDestingNegPriceOperateRsp', params, Market.GZ);
|
|
return tradeServerRequest('ZSBuyOrderDestingNegPriceOperateReq', 'ZSBuyOrderDestingNegPriceOperateRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石卖询价操作
|
|
* 钻石卖询价操作
|
|
|
*/
|
|
*/
|
|
|
-export function zsSellOrderDestingApplyOperate(params: TradeRequest<Proto.ZSSellOrderDestingApplyOperateReq, Proto.ZSSellOrderDestingApplyOperateRsp>) {
|
|
|
|
|
|
|
+export function zsSellOrderDestingApplyOperate(params: TradeParams<Proto.ZSSellOrderDestingApplyOperateReq, Proto.ZSSellOrderDestingApplyOperateRsp>) {
|
|
|
return tradeServerRequest('ZSSellOrderDestingApplyOperateReq', 'ZSSellOrderDestingApplyOperateRsp', params, Market.GZ);
|
|
return tradeServerRequest('ZSSellOrderDestingApplyOperateReq', 'ZSSellOrderDestingApplyOperateRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 钻石挂牌撤单
|
|
* 钻石挂牌撤单
|
|
|
*/
|
|
*/
|
|
|
-export function wrListingCancelOrder(params: TradeRequest<Proto.WRListingCancelOrderReq, Proto.WRListingCancelOrderRsp>) {
|
|
|
|
|
|
|
+export function wrListingCancelOrder(params: TradeParams<Proto.WRListingCancelOrderReq, Proto.WRListingCancelOrderRsp>) {
|
|
|
return tradeServerRequest('WRListingCancelOrderReq', 'WRListingCancelOrderRsp', params, Market.GZ);
|
|
return tradeServerRequest('WRListingCancelOrderReq', 'WRListingCancelOrderRsp', params, Market.GZ);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询求购大厅委托单
|
|
* 查询求购大厅委托单
|
|
|
*/
|
|
*/
|
|
|
-export function queryBuyOrder(params: HttpRequest<{ req: Ermcp.BuyOrderReq, rsp: Ermcp.BuyOrderRsp[] }>) {
|
|
|
|
|
|
|
+export function queryBuyOrder(params: HttpParams<{ req: Ermcp.BuyOrderReq, rsp: Ermcp.BuyOrderRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QueryBuyOrder', 'get', params);
|
|
return httpRequest('/Guangzuan/QueryBuyOrder', 'get', params);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询我的求购
|
|
* 查询我的求购
|
|
|
*/
|
|
*/
|
|
|
-export function queryMyBuyOrder(params: HttpRequest<{ req: Ermcp.MyBuyOrderReq, rsp: Ermcp.MyBuyOrderRsp[] }>) {
|
|
|
|
|
|
|
+export function queryMyBuyOrder(params: HttpParams<{ req: Ermcp.MyBuyOrderReq, rsp: Ermcp.MyBuyOrderRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QueryMyBuyOrder', 'get', params);
|
|
return httpRequest('/Guangzuan/QueryMyBuyOrder', 'get', params);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 搜索出售大厅委托单
|
|
* 搜索出售大厅委托单
|
|
|
*/
|
|
*/
|
|
|
-export function searchSellOrder(params: HttpRequest<{ req: Ermcp.SellOrderSearchReq, rsp: Ermcp.SellOrderSearchRsp[] }>) {
|
|
|
|
|
|
|
+export function searchSellOrder(params: HttpParams<{ req: Ermcp.SellOrderSearchReq, rsp: Ermcp.SellOrderSearchRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QueryDiamond', 'post', params);
|
|
return httpRequest('/Guangzuan/QueryDiamond', 'post', params);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询出售大厅委托单
|
|
* 查询出售大厅委托单
|
|
|
*/
|
|
*/
|
|
|
-export function querySellOrder(params: HttpRequest<{ req: Ermcp.SellOrderReq, rsp: Ermcp.SellOrderRsp[] }>) {
|
|
|
|
|
|
|
+export function querySellOrder(params: HttpParams<{ req: Ermcp.SellOrderReq, rsp: Ermcp.SellOrderRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QuerySellOrder', 'get', params);
|
|
return httpRequest('/Guangzuan/QuerySellOrder', 'get', params);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询我的出售
|
|
* 查询我的出售
|
|
|
*/
|
|
*/
|
|
|
-export function queryMySellOrder(params: HttpRequest<{ req: Ermcp.MySellOrderReq, rsp: Ermcp.MySellOrderRsp[] }>) {
|
|
|
|
|
|
|
+export function queryMySellOrder(params: HttpParams<{ req: Ermcp.MySellOrderReq, rsp: Ermcp.MySellOrderRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QueryMySellOrder', 'get', params);
|
|
return httpRequest('/Guangzuan/QueryMySellOrder', 'get', params);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询我的摘牌
|
|
* 查询我的摘牌
|
|
|
*/
|
|
*/
|
|
|
-export function queryMyDeListing(params: HttpRequest<{ req: Ermcp.MyDeListingReq, rsp: Ermcp.MyDeListingRsp[] }>) {
|
|
|
|
|
|
|
+export function queryMyDeListing(params: HttpParams<{ req: Ermcp.MyDeListingReq, rsp: Ermcp.MyDeListingRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QueryMyDeListing', 'get', params);
|
|
return httpRequest('/Guangzuan/QueryMyDeListing', 'get', params);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询询价-求购
|
|
* 查询询价-求购
|
|
|
*/
|
|
*/
|
|
|
-export function queryMyBargainApply(params: HttpRequest<{ req: Ermcp.MyBargainApplyReq, rsp: Ermcp.MyBargainApplyRsp[] }>) {
|
|
|
|
|
|
|
+export function queryMyBargainApply(params: HttpParams<{ req: Ermcp.MyBargainApplyReq, rsp: Ermcp.MyBargainApplyRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QueryMyBargainApply', 'get', params);
|
|
return httpRequest('/Guangzuan/QueryMyBargainApply', 'get', params);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询询价-出售
|
|
* 查询询价-出售
|
|
|
*/
|
|
*/
|
|
|
-export function queryMyDelistingApply(params: HttpRequest<{ req: Ermcp.MyDelistingApplyReq, rsp: Ermcp.MyDelistingApplyRsp[] }>) {
|
|
|
|
|
|
|
+export function queryMyDelistingApply(params: HttpParams<{ req: Ermcp.MyDelistingApplyReq, rsp: Ermcp.MyDelistingApplyRsp[] }>) {
|
|
|
return httpRequest('/Guangzuan/QueryMyDelistingApply', 'get', params);
|
|
return httpRequest('/Guangzuan/QueryMyDelistingApply', 'get', params);
|
|
|
}
|
|
}
|