فهرست منبع

commit 接口提交

yu.jie 4 سال پیش
والد
کامیت
59beed4dea
3فایلهای تغییر یافته به همراه56 افزوده شده و 3 حذف شده
  1. 1 1
      src/services/funcode/index.ts
  2. 27 2
      src/services/proto/accountinfo/index.ts
  3. 28 0
      src/services/proto/accountinfo/interface.ts

+ 1 - 1
src/services/funcode/index.ts

@@ -118,7 +118,7 @@ export const funCode: Code = {
     // 信息 - 账户管理 - 期货账户 - 新增/修改
     HedgeOutMainConfigReq: 1900694,///      期货账户新增修改请求
     HedgeOutMainConfigRsp: 1900695,///      期货账户新增修改响应
-    // 信息 - 账户管理 - 期货账户 - 设置
+    // 信息 - 账户管理 - 期货账户 - 设置 (暂时废弃)
     ErmcpBizGroupReq: 1900696,///          期货账户设置请求
     ErmcpBizGroupRsp: 1900697,///          期货账户设置响应
     // 信息 - 账户管理 - 期货账户 - 注销

+ 27 - 2
src/services/proto/accountinfo/index.ts

@@ -1,10 +1,18 @@
 import { getUserId } from "@/services/bus/account";
 import { getLongTypeLoginID } from "@/services/bus/login";
 import {
-    ErmcpBizGroupReq, ErmcpBizGroupRsp, HedgeOutMainConfigReq, HedgeOutMainConfigRsp, LoginaccountOperateReq,
+    ErmcpBizGroupReq,
+    ErmcpBizGroupRsp,
+    HedgeOutMainConfigReq,
+    HedgeOutMainConfigRsp,
+    LoginaccountOperateReq,
     LoginaccountOperateRsp,
     ManagerRoleOperateReq,
     ManagerRoleOperateRsp,
+    TaaccountOperateReq,
+    TaaccountOperateRsp,
+    TaaccountTransfersxmoneyReq,
+    TaaccountTransfersxmoneyRsp,
     UserInfoCheckMangeReq,
     UserInfoCheckMangeRsp
 } from "@/services/proto/accountinfo/interface";
@@ -53,4 +61,21 @@ export const bizGroupReq = (param: ErmcpBizGroupReq): Promise<ErmcpBizGroupRsp>
  */
 export const hedgeOutMainReq = (param: HedgeOutMainConfigReq): Promise<HedgeOutMainConfigRsp> => {
     return protoMiddleware<HedgeOutMainConfigReq>(param, 'HedgeOutMainConfigReq', 'HedgeOutMainConfigRsp', 2)
-}
+}
+
+/**
+ * 期货账户注销
+ * @param param
+ */
+export const taAccountOperateReq = (param: TaaccountOperateReq): Promise<TaaccountOperateRsp> => {
+    return protoMiddleware<TaaccountOperateReq>(param, 'TaaccountOperateReq', 'TaaccountOperateRsp', 2)
+}
+
+/**
+ * 期货账户授信
+ * @param param
+ */
+export const taAccountTransfersXMoneyReq = (param: TaaccountTransfersxmoneyReq): Promise<TaaccountTransfersxmoneyRsp> => {
+    return protoMiddleware<TaaccountTransfersxmoneyReq>(param, 'TaaccountTransfersxmoneyReq', 'TaaccountTransfersxmoneyRsp', 2)
+}
+

+ 28 - 0
src/services/proto/accountinfo/interface.ts

@@ -121,4 +121,32 @@ export interface HedgeOutMainConfigRsp {
     RetDesc: string; // string 描述信息
     BizGroupID: number; // uint64 分组ID
     accountid: number; // uint64 资金账户ID(Taaccount)
+}
+
+// 期货账户注销 0 29 158
+export interface TaaccountOperateReq {
+    accountid: number; // uint64 期货账户ID
+    tradestatus: number; // uint32 7注销
+    modifierid: number; // uint64 修改人
+    areauserid: number; // uint64 机构用户ID
+}
+// 期货账户注销操作响应 0 29 159
+export interface TaaccountOperateRsp {
+    RetCode: number; // int32 返回码
+    RetDesc: string; // string 描述信息
+    accountid: number; // uint64 期货账户ID
+}
+
+// 期货账户授信 0 29 160
+export interface TaaccountTransfersxmoneyReq {
+    accountid: number; // uint64 期货账户ID
+    sxmoney: number;// double 授信金额正为加负为减
+    modifierid: number;// uint64 修改人
+    areauserid: number;// uint64 机构用户ID
+}
+// 期货账户授信操作响应 0 29 161
+export interface TaaccountTransfersxmoneyRsp {
+    RetCode: number; // int32 返回码
+    RetDesc: string; // string 描述信息
+    accountid: number; // uint64 期货账户ID
 }