@ysgroup/contracts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -0
- package/src/index.ts +1978 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,1978 @@
|
|
|
1
|
+
/* 自动生成:tools/codegen_ts.py(源头 ys_base.contracts)。禁止手改。 */
|
|
2
|
+
|
|
3
|
+
// ---------- 枚举 ----------
|
|
4
|
+
export type AccessTable = "USER" | "TEAM" | "OWNER" | "ACCOUNT" | "CUSTODIAN" | "PROJECT" | "APP_CONFIG";
|
|
5
|
+
export type AccountType = "STOCK" | "FUTURES" | "CREDIT" | "STOCK_OPTION" | "GOLD" | "INCOME_SWAP" | "FUTURES_OPTION" | "HUGANGTONG" | "NEW3BOARD" | "SHENGANGTONG";
|
|
6
|
+
export type AppKind = "service" | "link";
|
|
7
|
+
export type AppStatus = "enabled" | "disabled" | "maintenance";
|
|
8
|
+
export type ChangeOp = "upsert" | "delete";
|
|
9
|
+
export type ExchangeType = "SH" | "SZ" | "SHFE" | "CFFEX" | "CZCE" | "DCE" | "GFEX" | "INE" | "SGE" | "UNKNOWN";
|
|
10
|
+
export type FieldGrant = "public" | "restricted" | "credential";
|
|
11
|
+
export type GatewayMode = "db" | "flow";
|
|
12
|
+
export type OwnerType = "Product" | "LegalPerson" | "NaturalPerson";
|
|
13
|
+
export type Sensitivity = "public" | "restricted" | "credential";
|
|
14
|
+
export type ServerType = "td" | "md";
|
|
15
|
+
export type TeamType = "Manager" | "Commoner";
|
|
16
|
+
export type TradeEnvType = "LIVE" | "TEST";
|
|
17
|
+
export type UserRole = "Observer" | "User" | "Operator" | "Manager" | "Root";
|
|
18
|
+
|
|
19
|
+
// ---------- 枚举展示元数据 ----------
|
|
20
|
+
export const ENUM_META = {
|
|
21
|
+
"UserRole": {
|
|
22
|
+
"Observer": {
|
|
23
|
+
"name": "观察员",
|
|
24
|
+
"sort": 0
|
|
25
|
+
},
|
|
26
|
+
"User": {
|
|
27
|
+
"name": "普通用户",
|
|
28
|
+
"sort": 1
|
|
29
|
+
},
|
|
30
|
+
"Operator": {
|
|
31
|
+
"name": "运维员",
|
|
32
|
+
"sort": 2
|
|
33
|
+
},
|
|
34
|
+
"Manager": {
|
|
35
|
+
"name": "管理员",
|
|
36
|
+
"sort": 3
|
|
37
|
+
},
|
|
38
|
+
"Root": {
|
|
39
|
+
"name": "超级管理员",
|
|
40
|
+
"sort": 4
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"TeamType": {
|
|
44
|
+
"Manager": {
|
|
45
|
+
"name": "管理人",
|
|
46
|
+
"sort": 0
|
|
47
|
+
},
|
|
48
|
+
"Commoner": {
|
|
49
|
+
"name": "非管理人",
|
|
50
|
+
"sort": 1
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"OwnerType": {
|
|
54
|
+
"Product": {
|
|
55
|
+
"name": "产品",
|
|
56
|
+
"team_type": "Manager",
|
|
57
|
+
"sort": 0
|
|
58
|
+
},
|
|
59
|
+
"LegalPerson": {
|
|
60
|
+
"name": "法人",
|
|
61
|
+
"team_type": "Commoner",
|
|
62
|
+
"sort": 1
|
|
63
|
+
},
|
|
64
|
+
"NaturalPerson": {
|
|
65
|
+
"name": "自然人",
|
|
66
|
+
"team_type": "Commoner",
|
|
67
|
+
"sort": 2
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"ExchangeType": {
|
|
71
|
+
"SH": {
|
|
72
|
+
"name": "上交所",
|
|
73
|
+
"market": "STOCK"
|
|
74
|
+
},
|
|
75
|
+
"SZ": {
|
|
76
|
+
"name": "深交所",
|
|
77
|
+
"market": "STOCK"
|
|
78
|
+
},
|
|
79
|
+
"SHFE": {
|
|
80
|
+
"name": "上期所",
|
|
81
|
+
"market": "FUTURES"
|
|
82
|
+
},
|
|
83
|
+
"CFFEX": {
|
|
84
|
+
"name": "中金所",
|
|
85
|
+
"market": "FUTURES"
|
|
86
|
+
},
|
|
87
|
+
"CZCE": {
|
|
88
|
+
"name": "郑商所",
|
|
89
|
+
"market": "FUTURES"
|
|
90
|
+
},
|
|
91
|
+
"DCE": {
|
|
92
|
+
"name": "大商所",
|
|
93
|
+
"market": "FUTURES"
|
|
94
|
+
},
|
|
95
|
+
"GFEX": {
|
|
96
|
+
"name": "广期所",
|
|
97
|
+
"market": "FUTURES"
|
|
98
|
+
},
|
|
99
|
+
"INE": {
|
|
100
|
+
"name": "上能所",
|
|
101
|
+
"market": "FUTURES"
|
|
102
|
+
},
|
|
103
|
+
"SGE": {
|
|
104
|
+
"name": "金交所",
|
|
105
|
+
"market": "FUTURES"
|
|
106
|
+
},
|
|
107
|
+
"UNKNOWN": {
|
|
108
|
+
"name": "其他",
|
|
109
|
+
"market": "UNKNOWN"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"AccountType": {
|
|
113
|
+
"STOCK": {
|
|
114
|
+
"name": "股票账户",
|
|
115
|
+
"agent": [
|
|
116
|
+
"STOCK",
|
|
117
|
+
"FUTURES"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"FUTURES": {
|
|
121
|
+
"name": "期货账户",
|
|
122
|
+
"agent": [
|
|
123
|
+
"FUTURES"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"CREDIT": {
|
|
127
|
+
"name": "信用账户",
|
|
128
|
+
"agent": [
|
|
129
|
+
"STOCK"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"STOCK_OPTION": {
|
|
133
|
+
"name": "股票期权",
|
|
134
|
+
"agent": [
|
|
135
|
+
"STOCK",
|
|
136
|
+
"FUTURES"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"GOLD": {
|
|
140
|
+
"name": "贵金属账户",
|
|
141
|
+
"agent": [
|
|
142
|
+
"STOCK",
|
|
143
|
+
"FUTURES"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"INCOME_SWAP": {
|
|
147
|
+
"name": "收益互换账户",
|
|
148
|
+
"agent": [
|
|
149
|
+
"STOCK"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"FUTURES_OPTION": {
|
|
153
|
+
"name": "期货期权",
|
|
154
|
+
"agent": [
|
|
155
|
+
"FUTURES"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"HUGANGTONG": {
|
|
159
|
+
"name": "沪港通账户",
|
|
160
|
+
"agent": [
|
|
161
|
+
"STOCK"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"NEW3BOARD": {
|
|
165
|
+
"name": "全国股转账户",
|
|
166
|
+
"agent": [
|
|
167
|
+
"STOCK"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"SHENGANGTONG": {
|
|
171
|
+
"name": "深港通账户",
|
|
172
|
+
"agent": [
|
|
173
|
+
"STOCK"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"TradeEnvType": {
|
|
178
|
+
"LIVE": {
|
|
179
|
+
"name": "实盘",
|
|
180
|
+
"sort": 0
|
|
181
|
+
},
|
|
182
|
+
"TEST": {
|
|
183
|
+
"name": "测试",
|
|
184
|
+
"sort": 1
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"AccessTable": {
|
|
188
|
+
"USER": {
|
|
189
|
+
"name": "用户表",
|
|
190
|
+
"sort": 0
|
|
191
|
+
},
|
|
192
|
+
"TEAM": {
|
|
193
|
+
"name": "团队表",
|
|
194
|
+
"sort": 1
|
|
195
|
+
},
|
|
196
|
+
"OWNER": {
|
|
197
|
+
"name": "产品表",
|
|
198
|
+
"sort": 2
|
|
199
|
+
},
|
|
200
|
+
"ACCOUNT": {
|
|
201
|
+
"name": "账户表",
|
|
202
|
+
"sort": 3
|
|
203
|
+
},
|
|
204
|
+
"CUSTODIAN": {
|
|
205
|
+
"name": "托管表",
|
|
206
|
+
"sort": 4
|
|
207
|
+
},
|
|
208
|
+
"PROJECT": {
|
|
209
|
+
"name": "项目表",
|
|
210
|
+
"sort": 5
|
|
211
|
+
},
|
|
212
|
+
"APP_CONFIG": {
|
|
213
|
+
"name": "应用配置",
|
|
214
|
+
"sort": 6
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"GatewayMode": {
|
|
218
|
+
"db": {
|
|
219
|
+
"name": "数据库"
|
|
220
|
+
},
|
|
221
|
+
"flow": {
|
|
222
|
+
"name": "流"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"ServerType": {
|
|
226
|
+
"td": {
|
|
227
|
+
"name": "交易"
|
|
228
|
+
},
|
|
229
|
+
"md": {
|
|
230
|
+
"name": "行情"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"AppKind": {
|
|
234
|
+
"service": {
|
|
235
|
+
"name": "业务子系统"
|
|
236
|
+
},
|
|
237
|
+
"link": {
|
|
238
|
+
"name": "门户外链"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"AppStatus": {
|
|
242
|
+
"enabled": {
|
|
243
|
+
"name": "运行中"
|
|
244
|
+
},
|
|
245
|
+
"disabled": {
|
|
246
|
+
"name": "已停用"
|
|
247
|
+
},
|
|
248
|
+
"maintenance": {
|
|
249
|
+
"name": "维护中"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"FieldGrant": {
|
|
253
|
+
"public": {
|
|
254
|
+
"name": "常规"
|
|
255
|
+
},
|
|
256
|
+
"restricted": {
|
|
257
|
+
"name": "含生产信息"
|
|
258
|
+
},
|
|
259
|
+
"credential": {
|
|
260
|
+
"name": "含凭据"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
} as const;
|
|
264
|
+
|
|
265
|
+
// ---------- 实体 ----------
|
|
266
|
+
export interface ServerRef {
|
|
267
|
+
"name"?: string; /** 名称 */
|
|
268
|
+
"host"?: string; /** 地址 */
|
|
269
|
+
"port"?: number; /** 端口 */
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface NavCategory {
|
|
273
|
+
"name": string; /** 分类名 */
|
|
274
|
+
"fund_names"?: string[]; /** 基金名称 */
|
|
275
|
+
"fund_code"?: string; /** 基金代码 */
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface RowFilter {
|
|
279
|
+
"teams"?: string[]; /** 团队白名单 */
|
|
280
|
+
"projects"?: string[]; /** 项目白名单 */
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface Team {
|
|
284
|
+
"_id"?: string; /** 主键 */
|
|
285
|
+
"created_at"?: number; /** 创建时间 */
|
|
286
|
+
"updated_at"?: number; /** 更新时间 */
|
|
287
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
288
|
+
"name": string; /** 名称 */
|
|
289
|
+
"type": TeamType; /** 类型 */
|
|
290
|
+
"memo"?: string; /** 备注 */
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export interface Owner {
|
|
294
|
+
"_id"?: string; /** 主键 */
|
|
295
|
+
"created_at"?: number; /** 创建时间 */
|
|
296
|
+
"updated_at"?: number; /** 更新时间 */
|
|
297
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
298
|
+
"team_id": string; /** 团队ID */
|
|
299
|
+
"parent_id"?: string; /** 父主体ID */
|
|
300
|
+
"enabled"?: boolean; /** 投用中 */
|
|
301
|
+
"name": string; /** 名称 */
|
|
302
|
+
"full_name": string; /** 全称 */
|
|
303
|
+
"type": OwnerType; /** 类型 */
|
|
304
|
+
"custodian_id"?: string; /** 托管机构ID */
|
|
305
|
+
"identify_code"?: string; /** 识别码 */
|
|
306
|
+
"unified_securities_account_code"?: string; /** 证券一码通 */
|
|
307
|
+
"legal_person_name"?: string; /** 法人名称 */
|
|
308
|
+
"registered_capital"?: number; /** 注册资本 */
|
|
309
|
+
"fund_names"?: string[]; /** 基金名称 */
|
|
310
|
+
"nav_categories"?: NavCategory[]; /** 净值分类 */
|
|
311
|
+
"take_over_date"?: string; /** 接管日期 */
|
|
312
|
+
"funding_source"?: string; /** 资金来源 */
|
|
313
|
+
"performance_fee_accrual_dates"?: string[]; /** 业绩报酬计提日期 */
|
|
314
|
+
"memo"?: string; /** 备注 */
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export interface Account {
|
|
318
|
+
"_id"?: string; /** 主键 */
|
|
319
|
+
"created_at"?: number; /** 创建时间 */
|
|
320
|
+
"updated_at"?: number; /** 更新时间 */
|
|
321
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
322
|
+
"team_id": string; /** 团队ID */
|
|
323
|
+
"owner_id": string; /** 主体ID */
|
|
324
|
+
"enabled"?: boolean; /** 启用 */
|
|
325
|
+
"auto_trade"?: boolean; /** 自动化交易 */
|
|
326
|
+
"account": string; /** 资金账号 */
|
|
327
|
+
"cname": string; /** 账户别名 */
|
|
328
|
+
"type": AccountType; /** 账户类型 */
|
|
329
|
+
"broker_id": string; /** 开户公司ID */
|
|
330
|
+
"trade_env": TradeEnvType; /** 交易环境 */
|
|
331
|
+
"fee_rate"?: number; /** 交易手续费 */
|
|
332
|
+
"login_password"?: string; /** 登录密码;sensitivity=credential(按授权可能被剔除) */
|
|
333
|
+
"fund_password"?: string; /** 资金密码;sensitivity=credential(按授权可能被剔除) */
|
|
334
|
+
"cfmmc_password"?: string; /** CFMMC密码;sensitivity=credential(按授权可能被剔除) */
|
|
335
|
+
"cfmmc_username"?: string; /** CFMMC用户名;sensitivity=restricted(按授权可能被剔除) */
|
|
336
|
+
"futures_app_id"?: string; /** 期货app_id;sensitivity=restricted(按授权可能被剔除) */
|
|
337
|
+
"futures_auth_code"?: string; /** 期货auth_code;sensitivity=restricted(按授权可能被剔除) */
|
|
338
|
+
"futures_td_server"?: ServerRef | null; /** 期货交易服务器;sensitivity=restricted(按授权可能被剔除) */
|
|
339
|
+
"futures_md_server"?: ServerRef | null; /** 期货行情服务器;sensitivity=restricted(按授权可能被剔除) */
|
|
340
|
+
"stock_td_server"?: ServerRef | null; /** 证券交易服务器;sensitivity=restricted(按授权可能被剔除) */
|
|
341
|
+
"trade_servers"?: Record<string, unknown>; /** 交易网关;sensitivity=restricted(按授权可能被剔除) */
|
|
342
|
+
"trade_counter"?: string; /** 交易柜台;sensitivity=restricted(按授权可能被剔除) */
|
|
343
|
+
"bank_card_id"?: string; /** 银行卡ID;sensitivity=restricted(按授权可能被剔除) */
|
|
344
|
+
"login_password_hint"?: string; /** 登录密码提示 */
|
|
345
|
+
"fund_password_hint"?: string; /** 资金密码提示 */
|
|
346
|
+
"cfmmc_password_hint"?: string; /** CFMMC密码提示 */
|
|
347
|
+
"traded_br"?: boolean; /** 券商反采 */
|
|
348
|
+
"traded_xt"?: boolean; /** 迅投交易 */
|
|
349
|
+
"config"?: Record<string, unknown>; /** 配置信息 */
|
|
350
|
+
"commission_refund"?: number; /** 手续费返还 */
|
|
351
|
+
"positions_refund"?: number; /** 持仓返还 */
|
|
352
|
+
"interest"?: number; /** 利息 */
|
|
353
|
+
"memo"?: string; /** 备注 */
|
|
354
|
+
"primary_color"?: string; /** 主题色 */
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export interface ExchangeAccount {
|
|
358
|
+
"_id"?: string; /** 主键 */
|
|
359
|
+
"created_at"?: number; /** 创建时间 */
|
|
360
|
+
"updated_at"?: number; /** 更新时间 */
|
|
361
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
362
|
+
"owner_id": string; /** 主体ID */
|
|
363
|
+
"type": string; /** 股卡类型 */
|
|
364
|
+
"exchange_id": ExchangeType; /** 交易所 */
|
|
365
|
+
"exchange_account": string; /** 交易编码 */
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface MountExchangeAccount {
|
|
369
|
+
"_id"?: string; /** 主键 */
|
|
370
|
+
"created_at"?: number; /** 创建时间 */
|
|
371
|
+
"updated_at"?: number; /** 更新时间 */
|
|
372
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
373
|
+
"owner_id": string; /** 主体ID */
|
|
374
|
+
"account_id": string; /** 账号ID */
|
|
375
|
+
"type": string; /** 类型 */
|
|
376
|
+
"exchange_account_id": string; /** 股卡ID */
|
|
377
|
+
"exchange_id": ExchangeType; /** 交易所 */
|
|
378
|
+
"gateway_mode"?: GatewayMode; /** 网关模式 */
|
|
379
|
+
"gateways"?: number; /** 网关 */
|
|
380
|
+
"gateways_stock"?: number; /** 网关-股 */
|
|
381
|
+
"gateways_bond"?: number; /** 网关-债 */
|
|
382
|
+
"enabled"?: boolean; /** 启用 */
|
|
383
|
+
"default"?: boolean; /** 默认股卡 */
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export interface User {
|
|
387
|
+
"_id"?: string; /** 主键 */
|
|
388
|
+
"created_at"?: number; /** 创建时间 */
|
|
389
|
+
"updated_at"?: number; /** 更新时间 */
|
|
390
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
391
|
+
"enabled"?: boolean; /** 启用 */
|
|
392
|
+
"username": string; /** 用户名 */
|
|
393
|
+
"password_hash"?: string; /** 密码哈希;sensitivity=credential(按授权可能被剔除) */
|
|
394
|
+
"owner_id"?: string; /** 主体ID */
|
|
395
|
+
"name"?: string; /** 姓名 */
|
|
396
|
+
"phone"?: string; /** 手机 */
|
|
397
|
+
"email"?: string; /** 邮箱 */
|
|
398
|
+
"role": UserRole; /** 角色 */
|
|
399
|
+
"max_sessions"?: number; /** 会话数 */
|
|
400
|
+
"is_human"?: boolean; /** 是否人类 */
|
|
401
|
+
"memo"?: string; /** 备注 */
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export interface BankCard {
|
|
405
|
+
"_id"?: string; /** 主键 */
|
|
406
|
+
"created_at"?: number; /** 创建时间 */
|
|
407
|
+
"updated_at"?: number; /** 更新时间 */
|
|
408
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
409
|
+
"owner_id": string; /** 主体ID */
|
|
410
|
+
"type": string; /** 类型 */
|
|
411
|
+
"name": string; /** 名称 */
|
|
412
|
+
"opening_bank": string; /** 开户行 */
|
|
413
|
+
"card_no": string; /** 卡号;sensitivity=restricted(按授权可能被剔除) */
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export interface Custodian {
|
|
417
|
+
"_id"?: string; /** 主键 */
|
|
418
|
+
"created_at"?: number; /** 创建时间 */
|
|
419
|
+
"updated_at"?: number; /** 更新时间 */
|
|
420
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
421
|
+
"full_name": string; /** 全称 */
|
|
422
|
+
"short_name": string; /** 简称 */
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface Strategy {
|
|
426
|
+
"_id"?: string; /** 主键 */
|
|
427
|
+
"created_at"?: number; /** 创建时间 */
|
|
428
|
+
"updated_at"?: number; /** 更新时间 */
|
|
429
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
430
|
+
"name": string; /** 名称 */
|
|
431
|
+
"memo"?: string; /** 备注 */
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export interface Project {
|
|
435
|
+
"_id"?: string; /** 主键 */
|
|
436
|
+
"created_at"?: number; /** 创建时间 */
|
|
437
|
+
"updated_at"?: number; /** 更新时间 */
|
|
438
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
439
|
+
"name": string; /** 名称 */
|
|
440
|
+
"memo"?: string; /** 备注 */
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export interface Broker {
|
|
444
|
+
"_id"?: string; /** 主键 */
|
|
445
|
+
"created_at"?: number; /** 创建时间 */
|
|
446
|
+
"updated_at"?: number; /** 更新时间 */
|
|
447
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
448
|
+
"type": string; /** 类型 */
|
|
449
|
+
"broker_id": string; /** 公司编号 */
|
|
450
|
+
"broker_name": string; /** 公司名称 */
|
|
451
|
+
"broker_ename"?: string; /** 公司英文名 */
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface Server {
|
|
455
|
+
"_id"?: string; /** 主键 */
|
|
456
|
+
"created_at"?: number; /** 创建时间 */
|
|
457
|
+
"updated_at"?: number; /** 更新时间 */
|
|
458
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
459
|
+
"broker_id": string; /** 开户公司ID */
|
|
460
|
+
"type": ServerType; /** 类型 */
|
|
461
|
+
"name": string; /** 名称 */
|
|
462
|
+
"host": string; /** 地址;sensitivity=restricted(按授权可能被剔除) */
|
|
463
|
+
"port": number; /** 端口;sensitivity=restricted(按授权可能被剔除) */
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface TradingPlatform {
|
|
467
|
+
"_id"?: string; /** 主键 */
|
|
468
|
+
"created_at"?: number; /** 创建时间 */
|
|
469
|
+
"updated_at"?: number; /** 更新时间 */
|
|
470
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
471
|
+
"broker_id": string; /** 开户公司ID */
|
|
472
|
+
"counter_supplier_id": string; /** 柜台供应商ID */
|
|
473
|
+
"server_room_id": string; /** 机房ID */
|
|
474
|
+
"server_ips"?: ServerRef[]; /** 服务IP列表;sensitivity=restricted(按授权可能被剔除) */
|
|
475
|
+
"name": string; /** 柜台名称 */
|
|
476
|
+
"exchanges"?: ExchangeType[]; /** 支持交易所 */
|
|
477
|
+
"memo"?: string; /** 备注 */
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export interface CounterSupplier {
|
|
481
|
+
"_id"?: string; /** 主键 */
|
|
482
|
+
"created_at"?: number; /** 创建时间 */
|
|
483
|
+
"updated_at"?: number; /** 更新时间 */
|
|
484
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
485
|
+
"type": string; /** 柜台类型 */
|
|
486
|
+
"brand": string; /** 柜台品牌 */
|
|
487
|
+
"model": string; /** 柜台型号 */
|
|
488
|
+
"memo"?: string; /** 备注 */
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export interface ServerRoom {
|
|
492
|
+
"_id"?: string; /** 主键 */
|
|
493
|
+
"created_at"?: number; /** 创建时间 */
|
|
494
|
+
"updated_at"?: number; /** 更新时间 */
|
|
495
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
496
|
+
"exchange_id": ExchangeType; /** 交易所 */
|
|
497
|
+
"name": string; /** 名称 */
|
|
498
|
+
"addr": string; /** 地址 */
|
|
499
|
+
"memo"?: string; /** 备注 */
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export interface UserApp {
|
|
503
|
+
"_id"?: string; /** 主键 */
|
|
504
|
+
"created_at"?: number; /** 创建时间 */
|
|
505
|
+
"updated_at"?: number; /** 更新时间 */
|
|
506
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
507
|
+
"user_id": string; /** 用户ID */
|
|
508
|
+
"app_id": string; /** 应用ID */
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export interface AccountApp {
|
|
512
|
+
"_id"?: string; /** 主键 */
|
|
513
|
+
"created_at"?: number; /** 创建时间 */
|
|
514
|
+
"updated_at"?: number; /** 更新时间 */
|
|
515
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
516
|
+
"account_id": string; /** 账户ID */
|
|
517
|
+
"app_id": string; /** 应用ID */
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export interface OwnerApp {
|
|
521
|
+
"_id"?: string; /** 主键 */
|
|
522
|
+
"created_at"?: number; /** 创建时间 */
|
|
523
|
+
"updated_at"?: number; /** 更新时间 */
|
|
524
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
525
|
+
"owner_id": string; /** 主体ID */
|
|
526
|
+
"app_id": string; /** 应用ID */
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export interface AccountStrategy {
|
|
530
|
+
"_id"?: string; /** 主键 */
|
|
531
|
+
"created_at"?: number; /** 创建时间 */
|
|
532
|
+
"updated_at"?: number; /** 更新时间 */
|
|
533
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
534
|
+
"account_id": string; /** 账户ID */
|
|
535
|
+
"strategy_id": string; /** 策略ID */
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export interface OwnerStrategy {
|
|
539
|
+
"_id"?: string; /** 主键 */
|
|
540
|
+
"created_at"?: number; /** 创建时间 */
|
|
541
|
+
"updated_at"?: number; /** 更新时间 */
|
|
542
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
543
|
+
"owner_id": string; /** 主体ID */
|
|
544
|
+
"strategy_id": string; /** 策略ID */
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export interface ProjectOwner {
|
|
548
|
+
"_id"?: string; /** 主键 */
|
|
549
|
+
"created_at"?: number; /** 创建时间 */
|
|
550
|
+
"updated_at"?: number; /** 更新时间 */
|
|
551
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
552
|
+
"project_id": string; /** 项目ID */
|
|
553
|
+
"owner_id": string; /** 主体ID */
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export interface App {
|
|
557
|
+
"_id"?: string; /** 主键 */
|
|
558
|
+
"created_at"?: number; /** 创建时间 */
|
|
559
|
+
"updated_at"?: number; /** 更新时间 */
|
|
560
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
561
|
+
"name": string; /** 应用标识 */
|
|
562
|
+
"title"?: string; /** 应用名称 */
|
|
563
|
+
"kind"?: AppKind; /** 类型 */
|
|
564
|
+
"status"?: AppStatus; /** 状态 */
|
|
565
|
+
"logo_url"?: string; /** Logo链接 */
|
|
566
|
+
"website_url"?: string; /** 访问链接 */
|
|
567
|
+
"memo"?: string; /** 备注 */
|
|
568
|
+
"weight"?: number; /** 门户排序权重 */
|
|
569
|
+
"max_connects"?: number; /** 最大连接数 */
|
|
570
|
+
"host"?: string; /** 部署主机 */
|
|
571
|
+
"port"?: number; /** 服务端口 */
|
|
572
|
+
"template_type"?: string; /** 模板类型 */
|
|
573
|
+
"owner_user_id"?: string; /** 负责人用户ID */
|
|
574
|
+
"secret"?: string; /** 应用密钥;sensitivity=credential(按授权可能被剔除) */
|
|
575
|
+
"subscribed_tables"?: AccessTable[]; /** 订阅实体表 */
|
|
576
|
+
"field_grant"?: FieldGrant; /** 字段级授权 */
|
|
577
|
+
"row_filter"?: RowFilter; /** 行级授权 */
|
|
578
|
+
"version"?: string; /** 当前版本 */
|
|
579
|
+
"last_heartbeat_at"?: number; /** 最近心跳 */
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export interface AppConfig {
|
|
583
|
+
"_id"?: string; /** 主键 */
|
|
584
|
+
"created_at"?: number; /** 创建时间 */
|
|
585
|
+
"updated_at"?: number; /** 更新时间 */
|
|
586
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
587
|
+
"app_id": string; /** 应用ID */
|
|
588
|
+
"key": string; /** 配置键 */
|
|
589
|
+
"value"?: unknown; /** 配置值 */
|
|
590
|
+
"hot_reload"?: boolean; /** 可热更新 */
|
|
591
|
+
"memo"?: string; /** 备注 */
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface FileMeta {
|
|
595
|
+
"_id"?: string; /** 主键 */
|
|
596
|
+
"created_at"?: number; /** 创建时间 */
|
|
597
|
+
"updated_at"?: number; /** 更新时间 */
|
|
598
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
599
|
+
"file_name": string; /** 文件名 */
|
|
600
|
+
"content_type"?: string; /** 内容类型 */
|
|
601
|
+
"size"?: number; /** 大小 */
|
|
602
|
+
"checksum"?: string; /** 校验和 */
|
|
603
|
+
"usage"?: string; /** 用途 */
|
|
604
|
+
"relation"?: Record<string, unknown>; /** 关联 */
|
|
605
|
+
"parsed_data"?: Record<string, unknown>; /** 解析数据 */
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// ---------- 表注册 ----------
|
|
609
|
+
export const TABLES = {
|
|
610
|
+
"teams": "Team",
|
|
611
|
+
"owners": "Owner",
|
|
612
|
+
"accounts": "Account",
|
|
613
|
+
"exchange_accounts": "ExchangeAccount",
|
|
614
|
+
"mount_exchange_accounts": "MountExchangeAccount",
|
|
615
|
+
"users": "User",
|
|
616
|
+
"bank_cards": "BankCard",
|
|
617
|
+
"custodians": "Custodian",
|
|
618
|
+
"strategies": "Strategy",
|
|
619
|
+
"projects": "Project",
|
|
620
|
+
"brokers": "Broker",
|
|
621
|
+
"servers": "Server",
|
|
622
|
+
"trading_platforms": "TradingPlatform",
|
|
623
|
+
"counter_suppliers": "CounterSupplier",
|
|
624
|
+
"server_rooms": "ServerRoom",
|
|
625
|
+
"user_app": "UserApp",
|
|
626
|
+
"account_app": "AccountApp",
|
|
627
|
+
"owner_app": "OwnerApp",
|
|
628
|
+
"account_strategy": "AccountStrategy",
|
|
629
|
+
"owner_strategy": "OwnerStrategy",
|
|
630
|
+
"project_owner": "ProjectOwner",
|
|
631
|
+
"apps": "App",
|
|
632
|
+
"app_configs": "AppConfig",
|
|
633
|
+
"file_metas": "FileMeta"
|
|
634
|
+
} as const;
|
|
635
|
+
export const ACCESS_TABLES = {
|
|
636
|
+
"USER": [
|
|
637
|
+
"users",
|
|
638
|
+
"user_app"
|
|
639
|
+
],
|
|
640
|
+
"TEAM": [
|
|
641
|
+
"teams"
|
|
642
|
+
],
|
|
643
|
+
"OWNER": [
|
|
644
|
+
"owners",
|
|
645
|
+
"owner_app",
|
|
646
|
+
"owner_strategy",
|
|
647
|
+
"exchange_accounts",
|
|
648
|
+
"bank_cards"
|
|
649
|
+
],
|
|
650
|
+
"ACCOUNT": [
|
|
651
|
+
"accounts",
|
|
652
|
+
"account_app",
|
|
653
|
+
"account_strategy",
|
|
654
|
+
"mount_exchange_accounts",
|
|
655
|
+
"brokers",
|
|
656
|
+
"servers"
|
|
657
|
+
],
|
|
658
|
+
"CUSTODIAN": [
|
|
659
|
+
"custodians"
|
|
660
|
+
],
|
|
661
|
+
"PROJECT": [
|
|
662
|
+
"projects",
|
|
663
|
+
"project_owner",
|
|
664
|
+
"strategies"
|
|
665
|
+
],
|
|
666
|
+
"APP_CONFIG": [
|
|
667
|
+
"app_configs"
|
|
668
|
+
]
|
|
669
|
+
} as const;
|
|
670
|
+
export type TableName = keyof typeof TABLES;
|
|
671
|
+
|
|
672
|
+
// ---------- 字段规格(驱动表单/表格列) ----------
|
|
673
|
+
export const FIELD_SPECS = {
|
|
674
|
+
"teams": [
|
|
675
|
+
{
|
|
676
|
+
"key": "name",
|
|
677
|
+
"title": "名称",
|
|
678
|
+
"widget": "text",
|
|
679
|
+
"enum": null,
|
|
680
|
+
"required": true,
|
|
681
|
+
"sensitivity": "public"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"key": "type",
|
|
685
|
+
"title": "类型",
|
|
686
|
+
"widget": "enum",
|
|
687
|
+
"enum": "TeamType",
|
|
688
|
+
"required": true,
|
|
689
|
+
"sensitivity": "public"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"key": "memo",
|
|
693
|
+
"title": "备注",
|
|
694
|
+
"widget": "text",
|
|
695
|
+
"enum": null,
|
|
696
|
+
"required": false,
|
|
697
|
+
"sensitivity": "public"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"owners": [
|
|
701
|
+
{
|
|
702
|
+
"key": "team_id",
|
|
703
|
+
"title": "团队ID",
|
|
704
|
+
"widget": "text",
|
|
705
|
+
"enum": null,
|
|
706
|
+
"required": true,
|
|
707
|
+
"sensitivity": "public"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"key": "parent_id",
|
|
711
|
+
"title": "父主体ID",
|
|
712
|
+
"widget": "text",
|
|
713
|
+
"enum": null,
|
|
714
|
+
"required": false,
|
|
715
|
+
"sensitivity": "public"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"key": "enabled",
|
|
719
|
+
"title": "投用中",
|
|
720
|
+
"widget": "switch",
|
|
721
|
+
"enum": null,
|
|
722
|
+
"required": false,
|
|
723
|
+
"sensitivity": "public"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"key": "name",
|
|
727
|
+
"title": "名称",
|
|
728
|
+
"widget": "text",
|
|
729
|
+
"enum": null,
|
|
730
|
+
"required": true,
|
|
731
|
+
"sensitivity": "public"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"key": "full_name",
|
|
735
|
+
"title": "全称",
|
|
736
|
+
"widget": "text",
|
|
737
|
+
"enum": null,
|
|
738
|
+
"required": true,
|
|
739
|
+
"sensitivity": "public"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"key": "type",
|
|
743
|
+
"title": "类型",
|
|
744
|
+
"widget": "enum",
|
|
745
|
+
"enum": "OwnerType",
|
|
746
|
+
"required": true,
|
|
747
|
+
"sensitivity": "public"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"key": "custodian_id",
|
|
751
|
+
"title": "托管机构ID",
|
|
752
|
+
"widget": "text",
|
|
753
|
+
"enum": null,
|
|
754
|
+
"required": false,
|
|
755
|
+
"sensitivity": "public"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"key": "identify_code",
|
|
759
|
+
"title": "识别码",
|
|
760
|
+
"widget": "text",
|
|
761
|
+
"enum": null,
|
|
762
|
+
"required": false,
|
|
763
|
+
"sensitivity": "public"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"key": "unified_securities_account_code",
|
|
767
|
+
"title": "证券一码通",
|
|
768
|
+
"widget": "text",
|
|
769
|
+
"enum": null,
|
|
770
|
+
"required": false,
|
|
771
|
+
"sensitivity": "public"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"key": "legal_person_name",
|
|
775
|
+
"title": "法人名称",
|
|
776
|
+
"widget": "text",
|
|
777
|
+
"enum": null,
|
|
778
|
+
"required": false,
|
|
779
|
+
"sensitivity": "public"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"key": "registered_capital",
|
|
783
|
+
"title": "注册资本",
|
|
784
|
+
"widget": "number",
|
|
785
|
+
"enum": null,
|
|
786
|
+
"required": false,
|
|
787
|
+
"sensitivity": "public"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"key": "fund_names",
|
|
791
|
+
"title": "基金名称",
|
|
792
|
+
"widget": "tags",
|
|
793
|
+
"enum": null,
|
|
794
|
+
"required": false,
|
|
795
|
+
"sensitivity": "public"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"key": "nav_categories",
|
|
799
|
+
"title": "净值分类",
|
|
800
|
+
"widget": "tags",
|
|
801
|
+
"enum": null,
|
|
802
|
+
"required": false,
|
|
803
|
+
"sensitivity": "public"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"key": "take_over_date",
|
|
807
|
+
"title": "接管日期",
|
|
808
|
+
"widget": "text",
|
|
809
|
+
"enum": null,
|
|
810
|
+
"required": false,
|
|
811
|
+
"sensitivity": "public"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"key": "funding_source",
|
|
815
|
+
"title": "资金来源",
|
|
816
|
+
"widget": "text",
|
|
817
|
+
"enum": null,
|
|
818
|
+
"required": false,
|
|
819
|
+
"sensitivity": "public"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"key": "performance_fee_accrual_dates",
|
|
823
|
+
"title": "业绩报酬计提日期",
|
|
824
|
+
"widget": "tags",
|
|
825
|
+
"enum": null,
|
|
826
|
+
"required": false,
|
|
827
|
+
"sensitivity": "public"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"key": "memo",
|
|
831
|
+
"title": "备注",
|
|
832
|
+
"widget": "text",
|
|
833
|
+
"enum": null,
|
|
834
|
+
"required": false,
|
|
835
|
+
"sensitivity": "public"
|
|
836
|
+
}
|
|
837
|
+
],
|
|
838
|
+
"accounts": [
|
|
839
|
+
{
|
|
840
|
+
"key": "team_id",
|
|
841
|
+
"title": "团队ID",
|
|
842
|
+
"widget": "text",
|
|
843
|
+
"enum": null,
|
|
844
|
+
"required": true,
|
|
845
|
+
"sensitivity": "public"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"key": "owner_id",
|
|
849
|
+
"title": "主体ID",
|
|
850
|
+
"widget": "text",
|
|
851
|
+
"enum": null,
|
|
852
|
+
"required": true,
|
|
853
|
+
"sensitivity": "public"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"key": "enabled",
|
|
857
|
+
"title": "启用",
|
|
858
|
+
"widget": "switch",
|
|
859
|
+
"enum": null,
|
|
860
|
+
"required": false,
|
|
861
|
+
"sensitivity": "public"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"key": "auto_trade",
|
|
865
|
+
"title": "自动化交易",
|
|
866
|
+
"widget": "switch",
|
|
867
|
+
"enum": null,
|
|
868
|
+
"required": false,
|
|
869
|
+
"sensitivity": "public"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"key": "account",
|
|
873
|
+
"title": "资金账号",
|
|
874
|
+
"widget": "text",
|
|
875
|
+
"enum": null,
|
|
876
|
+
"required": true,
|
|
877
|
+
"sensitivity": "public"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"key": "cname",
|
|
881
|
+
"title": "账户别名",
|
|
882
|
+
"widget": "text",
|
|
883
|
+
"enum": null,
|
|
884
|
+
"required": true,
|
|
885
|
+
"sensitivity": "public"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"key": "type",
|
|
889
|
+
"title": "账户类型",
|
|
890
|
+
"widget": "enum",
|
|
891
|
+
"enum": "AccountType",
|
|
892
|
+
"required": true,
|
|
893
|
+
"sensitivity": "public"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"key": "broker_id",
|
|
897
|
+
"title": "开户公司ID",
|
|
898
|
+
"widget": "text",
|
|
899
|
+
"enum": null,
|
|
900
|
+
"required": true,
|
|
901
|
+
"sensitivity": "public"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"key": "trade_env",
|
|
905
|
+
"title": "交易环境",
|
|
906
|
+
"widget": "enum",
|
|
907
|
+
"enum": "TradeEnvType",
|
|
908
|
+
"required": true,
|
|
909
|
+
"sensitivity": "public"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"key": "fee_rate",
|
|
913
|
+
"title": "交易手续费",
|
|
914
|
+
"widget": "number",
|
|
915
|
+
"enum": null,
|
|
916
|
+
"required": false,
|
|
917
|
+
"sensitivity": "public"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"key": "login_password",
|
|
921
|
+
"title": "登录密码",
|
|
922
|
+
"widget": "text",
|
|
923
|
+
"enum": null,
|
|
924
|
+
"required": false,
|
|
925
|
+
"sensitivity": "credential"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"key": "fund_password",
|
|
929
|
+
"title": "资金密码",
|
|
930
|
+
"widget": "text",
|
|
931
|
+
"enum": null,
|
|
932
|
+
"required": false,
|
|
933
|
+
"sensitivity": "credential"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"key": "cfmmc_password",
|
|
937
|
+
"title": "CFMMC密码",
|
|
938
|
+
"widget": "text",
|
|
939
|
+
"enum": null,
|
|
940
|
+
"required": false,
|
|
941
|
+
"sensitivity": "credential"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"key": "cfmmc_username",
|
|
945
|
+
"title": "CFMMC用户名",
|
|
946
|
+
"widget": "text",
|
|
947
|
+
"enum": null,
|
|
948
|
+
"required": false,
|
|
949
|
+
"sensitivity": "restricted"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"key": "futures_app_id",
|
|
953
|
+
"title": "期货app_id",
|
|
954
|
+
"widget": "text",
|
|
955
|
+
"enum": null,
|
|
956
|
+
"required": false,
|
|
957
|
+
"sensitivity": "restricted"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"key": "futures_auth_code",
|
|
961
|
+
"title": "期货auth_code",
|
|
962
|
+
"widget": "text",
|
|
963
|
+
"enum": null,
|
|
964
|
+
"required": false,
|
|
965
|
+
"sensitivity": "restricted"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"key": "futures_td_server",
|
|
969
|
+
"title": "期货交易服务器",
|
|
970
|
+
"widget": "json",
|
|
971
|
+
"enum": null,
|
|
972
|
+
"required": false,
|
|
973
|
+
"sensitivity": "restricted"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"key": "futures_md_server",
|
|
977
|
+
"title": "期货行情服务器",
|
|
978
|
+
"widget": "json",
|
|
979
|
+
"enum": null,
|
|
980
|
+
"required": false,
|
|
981
|
+
"sensitivity": "restricted"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"key": "stock_td_server",
|
|
985
|
+
"title": "证券交易服务器",
|
|
986
|
+
"widget": "json",
|
|
987
|
+
"enum": null,
|
|
988
|
+
"required": false,
|
|
989
|
+
"sensitivity": "restricted"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"key": "trade_servers",
|
|
993
|
+
"title": "交易网关",
|
|
994
|
+
"widget": "json",
|
|
995
|
+
"enum": null,
|
|
996
|
+
"required": false,
|
|
997
|
+
"sensitivity": "restricted"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"key": "trade_counter",
|
|
1001
|
+
"title": "交易柜台",
|
|
1002
|
+
"widget": "text",
|
|
1003
|
+
"enum": null,
|
|
1004
|
+
"required": false,
|
|
1005
|
+
"sensitivity": "restricted"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"key": "bank_card_id",
|
|
1009
|
+
"title": "银行卡ID",
|
|
1010
|
+
"widget": "text",
|
|
1011
|
+
"enum": null,
|
|
1012
|
+
"required": false,
|
|
1013
|
+
"sensitivity": "restricted"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"key": "login_password_hint",
|
|
1017
|
+
"title": "登录密码提示",
|
|
1018
|
+
"widget": "text",
|
|
1019
|
+
"enum": null,
|
|
1020
|
+
"required": false,
|
|
1021
|
+
"sensitivity": "public"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"key": "fund_password_hint",
|
|
1025
|
+
"title": "资金密码提示",
|
|
1026
|
+
"widget": "text",
|
|
1027
|
+
"enum": null,
|
|
1028
|
+
"required": false,
|
|
1029
|
+
"sensitivity": "public"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"key": "cfmmc_password_hint",
|
|
1033
|
+
"title": "CFMMC密码提示",
|
|
1034
|
+
"widget": "text",
|
|
1035
|
+
"enum": null,
|
|
1036
|
+
"required": false,
|
|
1037
|
+
"sensitivity": "public"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"key": "traded_br",
|
|
1041
|
+
"title": "券商反采",
|
|
1042
|
+
"widget": "switch",
|
|
1043
|
+
"enum": null,
|
|
1044
|
+
"required": false,
|
|
1045
|
+
"sensitivity": "public"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"key": "traded_xt",
|
|
1049
|
+
"title": "迅投交易",
|
|
1050
|
+
"widget": "switch",
|
|
1051
|
+
"enum": null,
|
|
1052
|
+
"required": false,
|
|
1053
|
+
"sensitivity": "public"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"key": "config",
|
|
1057
|
+
"title": "配置信息",
|
|
1058
|
+
"widget": "json",
|
|
1059
|
+
"enum": null,
|
|
1060
|
+
"required": false,
|
|
1061
|
+
"sensitivity": "public"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"key": "commission_refund",
|
|
1065
|
+
"title": "手续费返还",
|
|
1066
|
+
"widget": "number",
|
|
1067
|
+
"enum": null,
|
|
1068
|
+
"required": false,
|
|
1069
|
+
"sensitivity": "public"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"key": "positions_refund",
|
|
1073
|
+
"title": "持仓返还",
|
|
1074
|
+
"widget": "number",
|
|
1075
|
+
"enum": null,
|
|
1076
|
+
"required": false,
|
|
1077
|
+
"sensitivity": "public"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"key": "interest",
|
|
1081
|
+
"title": "利息",
|
|
1082
|
+
"widget": "number",
|
|
1083
|
+
"enum": null,
|
|
1084
|
+
"required": false,
|
|
1085
|
+
"sensitivity": "public"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"key": "memo",
|
|
1089
|
+
"title": "备注",
|
|
1090
|
+
"widget": "text",
|
|
1091
|
+
"enum": null,
|
|
1092
|
+
"required": false,
|
|
1093
|
+
"sensitivity": "public"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"key": "primary_color",
|
|
1097
|
+
"title": "主题色",
|
|
1098
|
+
"widget": "text",
|
|
1099
|
+
"enum": null,
|
|
1100
|
+
"required": false,
|
|
1101
|
+
"sensitivity": "public"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
1104
|
+
"exchange_accounts": [
|
|
1105
|
+
{
|
|
1106
|
+
"key": "owner_id",
|
|
1107
|
+
"title": "主体ID",
|
|
1108
|
+
"widget": "text",
|
|
1109
|
+
"enum": null,
|
|
1110
|
+
"required": true,
|
|
1111
|
+
"sensitivity": "public"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"key": "type",
|
|
1115
|
+
"title": "股卡类型",
|
|
1116
|
+
"widget": "text",
|
|
1117
|
+
"enum": null,
|
|
1118
|
+
"required": true,
|
|
1119
|
+
"sensitivity": "public"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"key": "exchange_id",
|
|
1123
|
+
"title": "交易所",
|
|
1124
|
+
"widget": "enum",
|
|
1125
|
+
"enum": "ExchangeType",
|
|
1126
|
+
"required": true,
|
|
1127
|
+
"sensitivity": "public"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
"key": "exchange_account",
|
|
1131
|
+
"title": "交易编码",
|
|
1132
|
+
"widget": "text",
|
|
1133
|
+
"enum": null,
|
|
1134
|
+
"required": true,
|
|
1135
|
+
"sensitivity": "public"
|
|
1136
|
+
}
|
|
1137
|
+
],
|
|
1138
|
+
"mount_exchange_accounts": [
|
|
1139
|
+
{
|
|
1140
|
+
"key": "owner_id",
|
|
1141
|
+
"title": "主体ID",
|
|
1142
|
+
"widget": "text",
|
|
1143
|
+
"enum": null,
|
|
1144
|
+
"required": true,
|
|
1145
|
+
"sensitivity": "public"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"key": "account_id",
|
|
1149
|
+
"title": "账号ID",
|
|
1150
|
+
"widget": "text",
|
|
1151
|
+
"enum": null,
|
|
1152
|
+
"required": true,
|
|
1153
|
+
"sensitivity": "public"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"key": "type",
|
|
1157
|
+
"title": "类型",
|
|
1158
|
+
"widget": "text",
|
|
1159
|
+
"enum": null,
|
|
1160
|
+
"required": true,
|
|
1161
|
+
"sensitivity": "public"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"key": "exchange_account_id",
|
|
1165
|
+
"title": "股卡ID",
|
|
1166
|
+
"widget": "text",
|
|
1167
|
+
"enum": null,
|
|
1168
|
+
"required": true,
|
|
1169
|
+
"sensitivity": "public"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"key": "exchange_id",
|
|
1173
|
+
"title": "交易所",
|
|
1174
|
+
"widget": "enum",
|
|
1175
|
+
"enum": "ExchangeType",
|
|
1176
|
+
"required": true,
|
|
1177
|
+
"sensitivity": "public"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"key": "gateway_mode",
|
|
1181
|
+
"title": "网关模式",
|
|
1182
|
+
"widget": "enum",
|
|
1183
|
+
"enum": "GatewayMode",
|
|
1184
|
+
"required": false,
|
|
1185
|
+
"sensitivity": "public"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"key": "gateways",
|
|
1189
|
+
"title": "网关",
|
|
1190
|
+
"widget": "number",
|
|
1191
|
+
"enum": null,
|
|
1192
|
+
"required": false,
|
|
1193
|
+
"sensitivity": "public"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"key": "gateways_stock",
|
|
1197
|
+
"title": "网关-股",
|
|
1198
|
+
"widget": "number",
|
|
1199
|
+
"enum": null,
|
|
1200
|
+
"required": false,
|
|
1201
|
+
"sensitivity": "public"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"key": "gateways_bond",
|
|
1205
|
+
"title": "网关-债",
|
|
1206
|
+
"widget": "number",
|
|
1207
|
+
"enum": null,
|
|
1208
|
+
"required": false,
|
|
1209
|
+
"sensitivity": "public"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"key": "enabled",
|
|
1213
|
+
"title": "启用",
|
|
1214
|
+
"widget": "switch",
|
|
1215
|
+
"enum": null,
|
|
1216
|
+
"required": false,
|
|
1217
|
+
"sensitivity": "public"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"key": "default",
|
|
1221
|
+
"title": "默认股卡",
|
|
1222
|
+
"widget": "switch",
|
|
1223
|
+
"enum": null,
|
|
1224
|
+
"required": false,
|
|
1225
|
+
"sensitivity": "public"
|
|
1226
|
+
}
|
|
1227
|
+
],
|
|
1228
|
+
"users": [
|
|
1229
|
+
{
|
|
1230
|
+
"key": "enabled",
|
|
1231
|
+
"title": "启用",
|
|
1232
|
+
"widget": "switch",
|
|
1233
|
+
"enum": null,
|
|
1234
|
+
"required": false,
|
|
1235
|
+
"sensitivity": "public"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"key": "username",
|
|
1239
|
+
"title": "用户名",
|
|
1240
|
+
"widget": "text",
|
|
1241
|
+
"enum": null,
|
|
1242
|
+
"required": true,
|
|
1243
|
+
"sensitivity": "public"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"key": "password_hash",
|
|
1247
|
+
"title": "密码哈希",
|
|
1248
|
+
"widget": "text",
|
|
1249
|
+
"enum": null,
|
|
1250
|
+
"required": false,
|
|
1251
|
+
"sensitivity": "credential"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"key": "owner_id",
|
|
1255
|
+
"title": "主体ID",
|
|
1256
|
+
"widget": "text",
|
|
1257
|
+
"enum": null,
|
|
1258
|
+
"required": false,
|
|
1259
|
+
"sensitivity": "public"
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"key": "name",
|
|
1263
|
+
"title": "姓名",
|
|
1264
|
+
"widget": "text",
|
|
1265
|
+
"enum": null,
|
|
1266
|
+
"required": false,
|
|
1267
|
+
"sensitivity": "public"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"key": "phone",
|
|
1271
|
+
"title": "手机",
|
|
1272
|
+
"widget": "text",
|
|
1273
|
+
"enum": null,
|
|
1274
|
+
"required": false,
|
|
1275
|
+
"sensitivity": "public"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"key": "email",
|
|
1279
|
+
"title": "邮箱",
|
|
1280
|
+
"widget": "text",
|
|
1281
|
+
"enum": null,
|
|
1282
|
+
"required": false,
|
|
1283
|
+
"sensitivity": "public"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"key": "role",
|
|
1287
|
+
"title": "角色",
|
|
1288
|
+
"widget": "enum",
|
|
1289
|
+
"enum": "UserRole",
|
|
1290
|
+
"required": true,
|
|
1291
|
+
"sensitivity": "public"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"key": "max_sessions",
|
|
1295
|
+
"title": "会话数",
|
|
1296
|
+
"widget": "number",
|
|
1297
|
+
"enum": null,
|
|
1298
|
+
"required": false,
|
|
1299
|
+
"sensitivity": "public"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"key": "is_human",
|
|
1303
|
+
"title": "是否人类",
|
|
1304
|
+
"widget": "switch",
|
|
1305
|
+
"enum": null,
|
|
1306
|
+
"required": false,
|
|
1307
|
+
"sensitivity": "public"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"key": "memo",
|
|
1311
|
+
"title": "备注",
|
|
1312
|
+
"widget": "text",
|
|
1313
|
+
"enum": null,
|
|
1314
|
+
"required": false,
|
|
1315
|
+
"sensitivity": "public"
|
|
1316
|
+
}
|
|
1317
|
+
],
|
|
1318
|
+
"bank_cards": [
|
|
1319
|
+
{
|
|
1320
|
+
"key": "owner_id",
|
|
1321
|
+
"title": "主体ID",
|
|
1322
|
+
"widget": "text",
|
|
1323
|
+
"enum": null,
|
|
1324
|
+
"required": true,
|
|
1325
|
+
"sensitivity": "public"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"key": "type",
|
|
1329
|
+
"title": "类型",
|
|
1330
|
+
"widget": "text",
|
|
1331
|
+
"enum": null,
|
|
1332
|
+
"required": true,
|
|
1333
|
+
"sensitivity": "public"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"key": "name",
|
|
1337
|
+
"title": "名称",
|
|
1338
|
+
"widget": "text",
|
|
1339
|
+
"enum": null,
|
|
1340
|
+
"required": true,
|
|
1341
|
+
"sensitivity": "public"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"key": "opening_bank",
|
|
1345
|
+
"title": "开户行",
|
|
1346
|
+
"widget": "text",
|
|
1347
|
+
"enum": null,
|
|
1348
|
+
"required": true,
|
|
1349
|
+
"sensitivity": "public"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"key": "card_no",
|
|
1353
|
+
"title": "卡号",
|
|
1354
|
+
"widget": "text",
|
|
1355
|
+
"enum": null,
|
|
1356
|
+
"required": true,
|
|
1357
|
+
"sensitivity": "restricted"
|
|
1358
|
+
}
|
|
1359
|
+
],
|
|
1360
|
+
"custodians": [
|
|
1361
|
+
{
|
|
1362
|
+
"key": "full_name",
|
|
1363
|
+
"title": "全称",
|
|
1364
|
+
"widget": "text",
|
|
1365
|
+
"enum": null,
|
|
1366
|
+
"required": true,
|
|
1367
|
+
"sensitivity": "public"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"key": "short_name",
|
|
1371
|
+
"title": "简称",
|
|
1372
|
+
"widget": "text",
|
|
1373
|
+
"enum": null,
|
|
1374
|
+
"required": true,
|
|
1375
|
+
"sensitivity": "public"
|
|
1376
|
+
}
|
|
1377
|
+
],
|
|
1378
|
+
"strategies": [
|
|
1379
|
+
{
|
|
1380
|
+
"key": "name",
|
|
1381
|
+
"title": "名称",
|
|
1382
|
+
"widget": "text",
|
|
1383
|
+
"enum": null,
|
|
1384
|
+
"required": true,
|
|
1385
|
+
"sensitivity": "public"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"key": "memo",
|
|
1389
|
+
"title": "备注",
|
|
1390
|
+
"widget": "text",
|
|
1391
|
+
"enum": null,
|
|
1392
|
+
"required": false,
|
|
1393
|
+
"sensitivity": "public"
|
|
1394
|
+
}
|
|
1395
|
+
],
|
|
1396
|
+
"projects": [
|
|
1397
|
+
{
|
|
1398
|
+
"key": "name",
|
|
1399
|
+
"title": "名称",
|
|
1400
|
+
"widget": "text",
|
|
1401
|
+
"enum": null,
|
|
1402
|
+
"required": true,
|
|
1403
|
+
"sensitivity": "public"
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
"key": "memo",
|
|
1407
|
+
"title": "备注",
|
|
1408
|
+
"widget": "text",
|
|
1409
|
+
"enum": null,
|
|
1410
|
+
"required": false,
|
|
1411
|
+
"sensitivity": "public"
|
|
1412
|
+
}
|
|
1413
|
+
],
|
|
1414
|
+
"brokers": [
|
|
1415
|
+
{
|
|
1416
|
+
"key": "type",
|
|
1417
|
+
"title": "类型",
|
|
1418
|
+
"widget": "text",
|
|
1419
|
+
"enum": null,
|
|
1420
|
+
"required": true,
|
|
1421
|
+
"sensitivity": "public"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"key": "broker_id",
|
|
1425
|
+
"title": "公司编号",
|
|
1426
|
+
"widget": "text",
|
|
1427
|
+
"enum": null,
|
|
1428
|
+
"required": true,
|
|
1429
|
+
"sensitivity": "public"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"key": "broker_name",
|
|
1433
|
+
"title": "公司名称",
|
|
1434
|
+
"widget": "text",
|
|
1435
|
+
"enum": null,
|
|
1436
|
+
"required": true,
|
|
1437
|
+
"sensitivity": "public"
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"key": "broker_ename",
|
|
1441
|
+
"title": "公司英文名",
|
|
1442
|
+
"widget": "text",
|
|
1443
|
+
"enum": null,
|
|
1444
|
+
"required": false,
|
|
1445
|
+
"sensitivity": "public"
|
|
1446
|
+
}
|
|
1447
|
+
],
|
|
1448
|
+
"servers": [
|
|
1449
|
+
{
|
|
1450
|
+
"key": "broker_id",
|
|
1451
|
+
"title": "开户公司ID",
|
|
1452
|
+
"widget": "text",
|
|
1453
|
+
"enum": null,
|
|
1454
|
+
"required": true,
|
|
1455
|
+
"sensitivity": "public"
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"key": "type",
|
|
1459
|
+
"title": "类型",
|
|
1460
|
+
"widget": "enum",
|
|
1461
|
+
"enum": "ServerType",
|
|
1462
|
+
"required": true,
|
|
1463
|
+
"sensitivity": "public"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"key": "name",
|
|
1467
|
+
"title": "名称",
|
|
1468
|
+
"widget": "text",
|
|
1469
|
+
"enum": null,
|
|
1470
|
+
"required": true,
|
|
1471
|
+
"sensitivity": "public"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"key": "host",
|
|
1475
|
+
"title": "地址",
|
|
1476
|
+
"widget": "text",
|
|
1477
|
+
"enum": null,
|
|
1478
|
+
"required": true,
|
|
1479
|
+
"sensitivity": "restricted"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"key": "port",
|
|
1483
|
+
"title": "端口",
|
|
1484
|
+
"widget": "number",
|
|
1485
|
+
"enum": null,
|
|
1486
|
+
"required": true,
|
|
1487
|
+
"sensitivity": "restricted"
|
|
1488
|
+
}
|
|
1489
|
+
],
|
|
1490
|
+
"trading_platforms": [
|
|
1491
|
+
{
|
|
1492
|
+
"key": "broker_id",
|
|
1493
|
+
"title": "开户公司ID",
|
|
1494
|
+
"widget": "text",
|
|
1495
|
+
"enum": null,
|
|
1496
|
+
"required": true,
|
|
1497
|
+
"sensitivity": "public"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"key": "counter_supplier_id",
|
|
1501
|
+
"title": "柜台供应商ID",
|
|
1502
|
+
"widget": "text",
|
|
1503
|
+
"enum": null,
|
|
1504
|
+
"required": true,
|
|
1505
|
+
"sensitivity": "public"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"key": "server_room_id",
|
|
1509
|
+
"title": "机房ID",
|
|
1510
|
+
"widget": "text",
|
|
1511
|
+
"enum": null,
|
|
1512
|
+
"required": true,
|
|
1513
|
+
"sensitivity": "public"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"key": "server_ips",
|
|
1517
|
+
"title": "服务IP列表",
|
|
1518
|
+
"widget": "tags",
|
|
1519
|
+
"enum": null,
|
|
1520
|
+
"required": false,
|
|
1521
|
+
"sensitivity": "restricted"
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"key": "name",
|
|
1525
|
+
"title": "柜台名称",
|
|
1526
|
+
"widget": "text",
|
|
1527
|
+
"enum": null,
|
|
1528
|
+
"required": true,
|
|
1529
|
+
"sensitivity": "public"
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"key": "exchanges",
|
|
1533
|
+
"title": "支持交易所",
|
|
1534
|
+
"widget": "enum-multi",
|
|
1535
|
+
"enum": "ExchangeType",
|
|
1536
|
+
"required": false,
|
|
1537
|
+
"sensitivity": "public"
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"key": "memo",
|
|
1541
|
+
"title": "备注",
|
|
1542
|
+
"widget": "text",
|
|
1543
|
+
"enum": null,
|
|
1544
|
+
"required": false,
|
|
1545
|
+
"sensitivity": "public"
|
|
1546
|
+
}
|
|
1547
|
+
],
|
|
1548
|
+
"counter_suppliers": [
|
|
1549
|
+
{
|
|
1550
|
+
"key": "type",
|
|
1551
|
+
"title": "柜台类型",
|
|
1552
|
+
"widget": "text",
|
|
1553
|
+
"enum": null,
|
|
1554
|
+
"required": true,
|
|
1555
|
+
"sensitivity": "public"
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
"key": "brand",
|
|
1559
|
+
"title": "柜台品牌",
|
|
1560
|
+
"widget": "text",
|
|
1561
|
+
"enum": null,
|
|
1562
|
+
"required": true,
|
|
1563
|
+
"sensitivity": "public"
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"key": "model",
|
|
1567
|
+
"title": "柜台型号",
|
|
1568
|
+
"widget": "text",
|
|
1569
|
+
"enum": null,
|
|
1570
|
+
"required": true,
|
|
1571
|
+
"sensitivity": "public"
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"key": "memo",
|
|
1575
|
+
"title": "备注",
|
|
1576
|
+
"widget": "text",
|
|
1577
|
+
"enum": null,
|
|
1578
|
+
"required": false,
|
|
1579
|
+
"sensitivity": "public"
|
|
1580
|
+
}
|
|
1581
|
+
],
|
|
1582
|
+
"server_rooms": [
|
|
1583
|
+
{
|
|
1584
|
+
"key": "exchange_id",
|
|
1585
|
+
"title": "交易所",
|
|
1586
|
+
"widget": "enum",
|
|
1587
|
+
"enum": "ExchangeType",
|
|
1588
|
+
"required": true,
|
|
1589
|
+
"sensitivity": "public"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"key": "name",
|
|
1593
|
+
"title": "名称",
|
|
1594
|
+
"widget": "text",
|
|
1595
|
+
"enum": null,
|
|
1596
|
+
"required": true,
|
|
1597
|
+
"sensitivity": "public"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"key": "addr",
|
|
1601
|
+
"title": "地址",
|
|
1602
|
+
"widget": "text",
|
|
1603
|
+
"enum": null,
|
|
1604
|
+
"required": true,
|
|
1605
|
+
"sensitivity": "public"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"key": "memo",
|
|
1609
|
+
"title": "备注",
|
|
1610
|
+
"widget": "text",
|
|
1611
|
+
"enum": null,
|
|
1612
|
+
"required": false,
|
|
1613
|
+
"sensitivity": "public"
|
|
1614
|
+
}
|
|
1615
|
+
],
|
|
1616
|
+
"user_app": [
|
|
1617
|
+
{
|
|
1618
|
+
"key": "user_id",
|
|
1619
|
+
"title": "用户ID",
|
|
1620
|
+
"widget": "text",
|
|
1621
|
+
"enum": null,
|
|
1622
|
+
"required": true,
|
|
1623
|
+
"sensitivity": "public"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"key": "app_id",
|
|
1627
|
+
"title": "应用ID",
|
|
1628
|
+
"widget": "text",
|
|
1629
|
+
"enum": null,
|
|
1630
|
+
"required": true,
|
|
1631
|
+
"sensitivity": "public"
|
|
1632
|
+
}
|
|
1633
|
+
],
|
|
1634
|
+
"account_app": [
|
|
1635
|
+
{
|
|
1636
|
+
"key": "account_id",
|
|
1637
|
+
"title": "账户ID",
|
|
1638
|
+
"widget": "text",
|
|
1639
|
+
"enum": null,
|
|
1640
|
+
"required": true,
|
|
1641
|
+
"sensitivity": "public"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"key": "app_id",
|
|
1645
|
+
"title": "应用ID",
|
|
1646
|
+
"widget": "text",
|
|
1647
|
+
"enum": null,
|
|
1648
|
+
"required": true,
|
|
1649
|
+
"sensitivity": "public"
|
|
1650
|
+
}
|
|
1651
|
+
],
|
|
1652
|
+
"owner_app": [
|
|
1653
|
+
{
|
|
1654
|
+
"key": "owner_id",
|
|
1655
|
+
"title": "主体ID",
|
|
1656
|
+
"widget": "text",
|
|
1657
|
+
"enum": null,
|
|
1658
|
+
"required": true,
|
|
1659
|
+
"sensitivity": "public"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"key": "app_id",
|
|
1663
|
+
"title": "应用ID",
|
|
1664
|
+
"widget": "text",
|
|
1665
|
+
"enum": null,
|
|
1666
|
+
"required": true,
|
|
1667
|
+
"sensitivity": "public"
|
|
1668
|
+
}
|
|
1669
|
+
],
|
|
1670
|
+
"account_strategy": [
|
|
1671
|
+
{
|
|
1672
|
+
"key": "account_id",
|
|
1673
|
+
"title": "账户ID",
|
|
1674
|
+
"widget": "text",
|
|
1675
|
+
"enum": null,
|
|
1676
|
+
"required": true,
|
|
1677
|
+
"sensitivity": "public"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
"key": "strategy_id",
|
|
1681
|
+
"title": "策略ID",
|
|
1682
|
+
"widget": "text",
|
|
1683
|
+
"enum": null,
|
|
1684
|
+
"required": true,
|
|
1685
|
+
"sensitivity": "public"
|
|
1686
|
+
}
|
|
1687
|
+
],
|
|
1688
|
+
"owner_strategy": [
|
|
1689
|
+
{
|
|
1690
|
+
"key": "owner_id",
|
|
1691
|
+
"title": "主体ID",
|
|
1692
|
+
"widget": "text",
|
|
1693
|
+
"enum": null,
|
|
1694
|
+
"required": true,
|
|
1695
|
+
"sensitivity": "public"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
"key": "strategy_id",
|
|
1699
|
+
"title": "策略ID",
|
|
1700
|
+
"widget": "text",
|
|
1701
|
+
"enum": null,
|
|
1702
|
+
"required": true,
|
|
1703
|
+
"sensitivity": "public"
|
|
1704
|
+
}
|
|
1705
|
+
],
|
|
1706
|
+
"project_owner": [
|
|
1707
|
+
{
|
|
1708
|
+
"key": "project_id",
|
|
1709
|
+
"title": "项目ID",
|
|
1710
|
+
"widget": "text",
|
|
1711
|
+
"enum": null,
|
|
1712
|
+
"required": true,
|
|
1713
|
+
"sensitivity": "public"
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"key": "owner_id",
|
|
1717
|
+
"title": "主体ID",
|
|
1718
|
+
"widget": "text",
|
|
1719
|
+
"enum": null,
|
|
1720
|
+
"required": true,
|
|
1721
|
+
"sensitivity": "public"
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
"apps": [
|
|
1725
|
+
{
|
|
1726
|
+
"key": "name",
|
|
1727
|
+
"title": "应用标识",
|
|
1728
|
+
"widget": "text",
|
|
1729
|
+
"enum": null,
|
|
1730
|
+
"required": true,
|
|
1731
|
+
"sensitivity": "public"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"key": "title",
|
|
1735
|
+
"title": "应用名称",
|
|
1736
|
+
"widget": "text",
|
|
1737
|
+
"enum": null,
|
|
1738
|
+
"required": false,
|
|
1739
|
+
"sensitivity": "public"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"key": "kind",
|
|
1743
|
+
"title": "类型",
|
|
1744
|
+
"widget": "enum",
|
|
1745
|
+
"enum": "AppKind",
|
|
1746
|
+
"required": false,
|
|
1747
|
+
"sensitivity": "public"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"key": "status",
|
|
1751
|
+
"title": "状态",
|
|
1752
|
+
"widget": "enum",
|
|
1753
|
+
"enum": "AppStatus",
|
|
1754
|
+
"required": false,
|
|
1755
|
+
"sensitivity": "public"
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"key": "logo_url",
|
|
1759
|
+
"title": "Logo链接",
|
|
1760
|
+
"widget": "text",
|
|
1761
|
+
"enum": null,
|
|
1762
|
+
"required": false,
|
|
1763
|
+
"sensitivity": "public"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"key": "website_url",
|
|
1767
|
+
"title": "访问链接",
|
|
1768
|
+
"widget": "text",
|
|
1769
|
+
"enum": null,
|
|
1770
|
+
"required": false,
|
|
1771
|
+
"sensitivity": "public"
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"key": "memo",
|
|
1775
|
+
"title": "备注",
|
|
1776
|
+
"widget": "text",
|
|
1777
|
+
"enum": null,
|
|
1778
|
+
"required": false,
|
|
1779
|
+
"sensitivity": "public"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"key": "weight",
|
|
1783
|
+
"title": "门户排序权重",
|
|
1784
|
+
"widget": "number",
|
|
1785
|
+
"enum": null,
|
|
1786
|
+
"required": false,
|
|
1787
|
+
"sensitivity": "public"
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
"key": "max_connects",
|
|
1791
|
+
"title": "最大连接数",
|
|
1792
|
+
"widget": "number",
|
|
1793
|
+
"enum": null,
|
|
1794
|
+
"required": false,
|
|
1795
|
+
"sensitivity": "public"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"key": "host",
|
|
1799
|
+
"title": "部署主机",
|
|
1800
|
+
"widget": "text",
|
|
1801
|
+
"enum": null,
|
|
1802
|
+
"required": false,
|
|
1803
|
+
"sensitivity": "public"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"key": "port",
|
|
1807
|
+
"title": "服务端口",
|
|
1808
|
+
"widget": "number",
|
|
1809
|
+
"enum": null,
|
|
1810
|
+
"required": false,
|
|
1811
|
+
"sensitivity": "public"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"key": "template_type",
|
|
1815
|
+
"title": "模板类型",
|
|
1816
|
+
"widget": "text",
|
|
1817
|
+
"enum": null,
|
|
1818
|
+
"required": false,
|
|
1819
|
+
"sensitivity": "public"
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"key": "owner_user_id",
|
|
1823
|
+
"title": "负责人用户ID",
|
|
1824
|
+
"widget": "text",
|
|
1825
|
+
"enum": null,
|
|
1826
|
+
"required": false,
|
|
1827
|
+
"sensitivity": "public"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"key": "secret",
|
|
1831
|
+
"title": "应用密钥",
|
|
1832
|
+
"widget": "text",
|
|
1833
|
+
"enum": null,
|
|
1834
|
+
"required": false,
|
|
1835
|
+
"sensitivity": "credential"
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"key": "subscribed_tables",
|
|
1839
|
+
"title": "订阅实体表",
|
|
1840
|
+
"widget": "enum-multi",
|
|
1841
|
+
"enum": "AccessTable",
|
|
1842
|
+
"required": false,
|
|
1843
|
+
"sensitivity": "public"
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"key": "field_grant",
|
|
1847
|
+
"title": "字段级授权",
|
|
1848
|
+
"widget": "enum",
|
|
1849
|
+
"enum": "FieldGrant",
|
|
1850
|
+
"required": false,
|
|
1851
|
+
"sensitivity": "public"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"key": "row_filter",
|
|
1855
|
+
"title": "行级授权",
|
|
1856
|
+
"widget": "json",
|
|
1857
|
+
"enum": null,
|
|
1858
|
+
"required": false,
|
|
1859
|
+
"sensitivity": "public"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"key": "version",
|
|
1863
|
+
"title": "当前版本",
|
|
1864
|
+
"widget": "text",
|
|
1865
|
+
"enum": null,
|
|
1866
|
+
"required": false,
|
|
1867
|
+
"sensitivity": "public"
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
"key": "last_heartbeat_at",
|
|
1871
|
+
"title": "最近心跳",
|
|
1872
|
+
"widget": "number",
|
|
1873
|
+
"enum": null,
|
|
1874
|
+
"required": false,
|
|
1875
|
+
"sensitivity": "public"
|
|
1876
|
+
}
|
|
1877
|
+
],
|
|
1878
|
+
"app_configs": [
|
|
1879
|
+
{
|
|
1880
|
+
"key": "app_id",
|
|
1881
|
+
"title": "应用ID",
|
|
1882
|
+
"widget": "text",
|
|
1883
|
+
"enum": null,
|
|
1884
|
+
"required": true,
|
|
1885
|
+
"sensitivity": "public"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"key": "key",
|
|
1889
|
+
"title": "配置键",
|
|
1890
|
+
"widget": "text",
|
|
1891
|
+
"enum": null,
|
|
1892
|
+
"required": true,
|
|
1893
|
+
"sensitivity": "public"
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
"key": "value",
|
|
1897
|
+
"title": "配置值",
|
|
1898
|
+
"widget": "json",
|
|
1899
|
+
"enum": null,
|
|
1900
|
+
"required": false,
|
|
1901
|
+
"sensitivity": "public"
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"key": "hot_reload",
|
|
1905
|
+
"title": "可热更新",
|
|
1906
|
+
"widget": "switch",
|
|
1907
|
+
"enum": null,
|
|
1908
|
+
"required": false,
|
|
1909
|
+
"sensitivity": "public"
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"key": "memo",
|
|
1913
|
+
"title": "备注",
|
|
1914
|
+
"widget": "text",
|
|
1915
|
+
"enum": null,
|
|
1916
|
+
"required": false,
|
|
1917
|
+
"sensitivity": "public"
|
|
1918
|
+
}
|
|
1919
|
+
],
|
|
1920
|
+
"file_metas": [
|
|
1921
|
+
{
|
|
1922
|
+
"key": "file_name",
|
|
1923
|
+
"title": "文件名",
|
|
1924
|
+
"widget": "text",
|
|
1925
|
+
"enum": null,
|
|
1926
|
+
"required": true,
|
|
1927
|
+
"sensitivity": "public"
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"key": "content_type",
|
|
1931
|
+
"title": "内容类型",
|
|
1932
|
+
"widget": "text",
|
|
1933
|
+
"enum": null,
|
|
1934
|
+
"required": false,
|
|
1935
|
+
"sensitivity": "public"
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"key": "size",
|
|
1939
|
+
"title": "大小",
|
|
1940
|
+
"widget": "number",
|
|
1941
|
+
"enum": null,
|
|
1942
|
+
"required": false,
|
|
1943
|
+
"sensitivity": "public"
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
"key": "checksum",
|
|
1947
|
+
"title": "校验和",
|
|
1948
|
+
"widget": "text",
|
|
1949
|
+
"enum": null,
|
|
1950
|
+
"required": false,
|
|
1951
|
+
"sensitivity": "public"
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"key": "usage",
|
|
1955
|
+
"title": "用途",
|
|
1956
|
+
"widget": "text",
|
|
1957
|
+
"enum": null,
|
|
1958
|
+
"required": false,
|
|
1959
|
+
"sensitivity": "public"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"key": "relation",
|
|
1963
|
+
"title": "关联",
|
|
1964
|
+
"widget": "json",
|
|
1965
|
+
"enum": null,
|
|
1966
|
+
"required": false,
|
|
1967
|
+
"sensitivity": "public"
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"key": "parsed_data",
|
|
1971
|
+
"title": "解析数据",
|
|
1972
|
+
"widget": "json",
|
|
1973
|
+
"enum": null,
|
|
1974
|
+
"required": false,
|
|
1975
|
+
"sensitivity": "public"
|
|
1976
|
+
}
|
|
1977
|
+
]
|
|
1978
|
+
} as const;
|