Commit 849b087c authored by 1486327116's avatar 1486327116

添加代理相关接口

parent 390ab468
...@@ -34,7 +34,7 @@ export interface AgentUserVO { ...@@ -34,7 +34,7 @@ export interface AgentUserVO {
ratio?: number; ratio?: number;
symbol?: string; product?: string;
createdAt?: Date | any, createdAt?: Date | any,
...@@ -96,7 +96,7 @@ export async function agentSet(user_id: any, currentUserId: any, ip: string | un ...@@ -96,7 +96,7 @@ export async function agentSet(user_id: any, currentUserId: any, ip: string | un
export async function hedgeRatioSet(agentUserVO: AgentUserVO, currentUserId: any, ip: string | undefined) { export async function hedgeRatioSet(agentUserVO: AgentUserVO, currentUserId: any, ip: string | undefined) {
let agent_id = agentUserVO.agent_id; let agent_id = agentUserVO.agent_id;
let symbol = agentUserVO.symbol; let symbol = agentUserVO.product;
let ratio = agentUserVO.ratio; let ratio = agentUserVO.ratio;
let market = "lpc" // 固定 只有合约才对冲设置 let market = "lpc" // 固定 只有合约才对冲设置
......
...@@ -224,9 +224,9 @@ const postFunc = { ...@@ -224,9 +224,9 @@ const postFunc = {
'fiance/other/contract/limit/trade/set': contractLimitTradeCtrl.set, 'fiance/other/contract/limit/trade/set': contractLimitTradeCtrl.set,
'fiance/other/contract/limit/trade/list': contractLimitTradeCtrl.list, 'fiance/other/contract/limit/trade/list': contractLimitTradeCtrl.list,
//金融部-其他管理-合约接单账户配置(代理商) //金融部-其他管理-合约接单账户配置(代理商)
'fiance/other/contract/agent/set': contractAgentCtrl.agentSet, 'fiance/other/contract/agent/set': contractAgentCtrl.agentSet, // 参数只保留user_id
'fiance/other/contract/agent/list': contractAgentCtrl.agentList, 'fiance/other/contract/agent/list': contractAgentCtrl.agentList, // 返回值只有user_id agent_id 时间
'fiance/other/contract/agent/hedgeRatio/set': contractAgentCtrl.hedgeRatioSet, 'fiance/other/contract/agent/hedgeRatio/set': contractAgentCtrl.hedgeRatioSet, // 給代理商添加对冲配置参数 agent_id symbol(合约交易对) ratio对冲比例0-1之间
'fiance/other/contract/agent/hedgeRatio/list': contractAgentCtrl.hedgeRatioList, 'fiance/other/contract/agent/hedgeRatio/list': contractAgentCtrl.hedgeRatioList,
//金融部-其他管理-合约接单账户关联(代理用户) //金融部-其他管理-合约接单账户关联(代理用户)
......
...@@ -168,6 +168,8 @@ let cmdWhiteList = { ...@@ -168,6 +168,8 @@ let cmdWhiteList = {
'fiance/other/contract/limit/trade/set': 1, 'fiance/other/contract/limit/trade/set': 1,
'fiance/other/contract/limit/trade/list': 1, 'fiance/other/contract/limit/trade/list': 1,
//金融部-其他管理-合约接单账户配置(代理商) //金融部-其他管理-合约接单账户配置(代理商)
'fiance/other/contract/agent/hedgeRatio/set': 1,
'fiance/other/contract/agent/hedgeRatio/list': 1,
'fiance/other/contract/agent/set': 1, 'fiance/other/contract/agent/set': 1,
'fiance/other/contract/agent/list': 1, 'fiance/other/contract/agent/list': 1,
//金融部-其他管理-合约接单账户关联(代理用户) //金融部-其他管理-合约接单账户关联(代理用户)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment