@gct-paas/api 0.1.4-dev.4 → 0.1.4-dev.6
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/dist/index.esm.min.js +4 -1
- package/dist/index.system.min.js +4 -1
- package/es/apaas/service/apis/api.service.d.ts +0 -4
- package/es/apaas/service/apis/app-global-settings.service.d.ts +0 -4
- package/es/apaas/service/apis/audit-log.service.d.ts +1 -1
- package/es/apaas/service/apis/category.service.d.ts +8 -8
- package/es/apaas/service/apis/edhr-instance.service.d.ts +4 -8
- package/es/apaas/service/apis/online-form-instance.service.d.ts +8 -0
- package/es/apaas/service/entities.d.ts +127 -1
- package/es/platform/service/api-config.mjs +6 -0
- package/es/platform/service/apis/api.service.d.ts +16 -1
- package/es/platform/service/apis/app.service.d.ts +0 -4
- package/es/platform/service/entities.d.ts +54 -6
- package/es/service/http.util.d.ts +7 -0
- package/es/service/http.util.mjs +8 -1
- package/es/service/index.mjs +2 -0
- package/es/service/request.client.d.ts +6 -0
- package/es/service/request.client.mjs +35 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/es/utils/native-http/native-http.d.ts +6 -0
- package/es/utils/native-http/native-http.mjs +63 -0
- package/package.json +2 -1
|
@@ -34,6 +34,10 @@ export interface getListQuery {
|
|
|
34
34
|
* 结束时间
|
|
35
35
|
*/
|
|
36
36
|
endTime?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 所属模块(实体、枚举、web页面)
|
|
39
|
+
*/
|
|
40
|
+
module?: string;
|
|
37
41
|
/**
|
|
38
42
|
* 应用名称
|
|
39
43
|
*/
|
|
@@ -104,10 +108,6 @@ export interface getListCompleteQuery {
|
|
|
104
108
|
*
|
|
105
109
|
*/
|
|
106
110
|
modifyUserName?: string;
|
|
107
|
-
/**
|
|
108
|
-
* 所属模块(实体、枚举、web页面 、view_model_module/视图模型模块 、data_model/数据模型模块、document_module/单据、pad_module/pad页面设计)
|
|
109
|
-
*/
|
|
110
|
-
module?: string;
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
*/
|
|
@@ -178,10 +178,6 @@ export interface getPageQuery {
|
|
|
178
178
|
*
|
|
179
179
|
*/
|
|
180
180
|
modifyUserName?: string;
|
|
181
|
-
/**
|
|
182
|
-
* 所属模块(实体、枚举、web页面 、view_model_module/视图模型模块 、data_model/数据模型模块、document_module/单据、pad_module/pad页面设计)
|
|
183
|
-
*/
|
|
184
|
-
module?: string;
|
|
185
181
|
/**
|
|
186
182
|
*
|
|
187
183
|
*/
|
|
@@ -220,6 +216,10 @@ export interface getPageListQuery {
|
|
|
220
216
|
* 结束时间
|
|
221
217
|
*/
|
|
222
218
|
endTime?: string;
|
|
219
|
+
/**
|
|
220
|
+
* 所属模块(实体、枚举、web页面)
|
|
221
|
+
*/
|
|
222
|
+
module?: string;
|
|
223
223
|
/**
|
|
224
224
|
* 应用名称
|
|
225
225
|
*/
|
|
@@ -91,10 +91,6 @@ export interface getPageListQuery {
|
|
|
91
91
|
* 更新人id
|
|
92
92
|
*/
|
|
93
93
|
modifyUserId?: string;
|
|
94
|
-
/**
|
|
95
|
-
* 模块类型
|
|
96
|
-
*/
|
|
97
|
-
module?: string;
|
|
98
94
|
/**
|
|
99
95
|
* 操作人
|
|
100
96
|
*/
|
|
@@ -145,10 +141,6 @@ export interface getReversePageListQuery {
|
|
|
145
141
|
* 工单id
|
|
146
142
|
*/
|
|
147
143
|
mfgOrderId?: string;
|
|
148
|
-
/**
|
|
149
|
-
* 模块类型
|
|
150
|
-
*/
|
|
151
|
-
module?: string;
|
|
152
144
|
/**
|
|
153
145
|
* 操作人
|
|
154
146
|
*/
|
|
@@ -157,6 +149,10 @@ export interface getReversePageListQuery {
|
|
|
157
149
|
* 操作人id
|
|
158
150
|
*/
|
|
159
151
|
operatorId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* 订单号
|
|
154
|
+
*/
|
|
155
|
+
orderNo?: string;
|
|
160
156
|
/**
|
|
161
157
|
* 页码
|
|
162
158
|
*/
|
|
@@ -301,6 +301,10 @@ export interface getPageListQuery {
|
|
|
301
301
|
* 状态
|
|
302
302
|
*/
|
|
303
303
|
instanceStatus?: string;
|
|
304
|
+
/**
|
|
305
|
+
* 状态不等于
|
|
306
|
+
*/
|
|
307
|
+
instanceStatusNe?: string;
|
|
304
308
|
/**
|
|
305
309
|
* 更新人id
|
|
306
310
|
*/
|
|
@@ -435,6 +439,10 @@ export interface getReverseTracePageListQuery {
|
|
|
435
439
|
* 填报人
|
|
436
440
|
*/
|
|
437
441
|
operatorId?: string;
|
|
442
|
+
/**
|
|
443
|
+
* 订单号
|
|
444
|
+
*/
|
|
445
|
+
orderNo?: string;
|
|
438
446
|
/**
|
|
439
447
|
* 页码
|
|
440
448
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2
2
|
export interface AccountConfig {
|
|
3
3
|
/**
|
|
4
|
-
* 应用类型 枚举(钉钉 DINGDING
|
|
4
|
+
* 应用类型 枚举 (钉钉 DINGDING,企微 QIYEWEIXIN,飞书 FEISHU,微软 MICROSOFT)
|
|
5
5
|
*
|
|
6
6
|
* @type string
|
|
7
7
|
*/
|
|
@@ -4178,6 +4178,12 @@ export interface DataTraceRequest {
|
|
|
4178
4178
|
* @type string
|
|
4179
4179
|
*/
|
|
4180
4180
|
module?: string;
|
|
4181
|
+
/**
|
|
4182
|
+
* 多个模块
|
|
4183
|
+
*
|
|
4184
|
+
* @type string[]
|
|
4185
|
+
*/
|
|
4186
|
+
modules?: string[];
|
|
4181
4187
|
/**
|
|
4182
4188
|
* 操作类型
|
|
4183
4189
|
*
|
|
@@ -5670,6 +5676,12 @@ export interface DocControlTaskTodoResponse {
|
|
|
5670
5676
|
version?: string;
|
|
5671
5677
|
}
|
|
5672
5678
|
export interface DocOutlineBase {
|
|
5679
|
+
/**
|
|
5680
|
+
* 基础单据id(DHR ID)
|
|
5681
|
+
*
|
|
5682
|
+
* @type string
|
|
5683
|
+
*/
|
|
5684
|
+
baseId?: string;
|
|
5673
5685
|
/**
|
|
5674
5686
|
*
|
|
5675
5687
|
*
|
|
@@ -9480,6 +9492,12 @@ export interface FieldMeta {
|
|
|
9480
9492
|
* @type string
|
|
9481
9493
|
*/
|
|
9482
9494
|
bindInfo?: string;
|
|
9495
|
+
/**
|
|
9496
|
+
* 业务字段类型
|
|
9497
|
+
*
|
|
9498
|
+
* @type string
|
|
9499
|
+
*/
|
|
9500
|
+
bizType?: string;
|
|
9483
9501
|
/**
|
|
9484
9502
|
*
|
|
9485
9503
|
*
|
|
@@ -9702,6 +9720,12 @@ export interface FieldMetaDTO {
|
|
|
9702
9720
|
* @type string
|
|
9703
9721
|
*/
|
|
9704
9722
|
bindInfo?: string;
|
|
9723
|
+
/**
|
|
9724
|
+
* 业务字段类型
|
|
9725
|
+
*
|
|
9726
|
+
* @type string
|
|
9727
|
+
*/
|
|
9728
|
+
bizType?: string;
|
|
9705
9729
|
/**
|
|
9706
9730
|
*
|
|
9707
9731
|
*
|
|
@@ -10218,6 +10242,12 @@ export interface FieldMetaVO {
|
|
|
10218
10242
|
* @type string
|
|
10219
10243
|
*/
|
|
10220
10244
|
bindInfo?: string;
|
|
10245
|
+
/**
|
|
10246
|
+
* 业务字段类型
|
|
10247
|
+
*
|
|
10248
|
+
* @type string
|
|
10249
|
+
*/
|
|
10250
|
+
bizType?: string;
|
|
10221
10251
|
/**
|
|
10222
10252
|
* 默认值
|
|
10223
10253
|
*
|
|
@@ -10382,6 +10412,12 @@ export interface FileResourceResponse {
|
|
|
10382
10412
|
url?: string;
|
|
10383
10413
|
}
|
|
10384
10414
|
export interface FileTaskDTO {
|
|
10415
|
+
/**
|
|
10416
|
+
* 是否包含半成品批次(当type为EDHR时使用,用于判断打印时是否需要打印半成品批次eDHR)
|
|
10417
|
+
*
|
|
10418
|
+
* @type boolean
|
|
10419
|
+
*/
|
|
10420
|
+
includeSemi?: boolean;
|
|
10385
10421
|
/**
|
|
10386
10422
|
* 模板实例id
|
|
10387
10423
|
*
|
|
@@ -13926,6 +13962,18 @@ export interface MessageRecordResponse {
|
|
|
13926
13962
|
* @type string
|
|
13927
13963
|
*/
|
|
13928
13964
|
resultMsg?: string;
|
|
13965
|
+
/**
|
|
13966
|
+
* 跳转配置: {"WEB":"菜单id","MOBILE":"菜单id","PAD":"菜单id"}
|
|
13967
|
+
*
|
|
13968
|
+
* @type string
|
|
13969
|
+
*/
|
|
13970
|
+
routerConfig?: string;
|
|
13971
|
+
/**
|
|
13972
|
+
* 跳转参数:由调用全局方法方传递
|
|
13973
|
+
*
|
|
13974
|
+
* @type string
|
|
13975
|
+
*/
|
|
13976
|
+
routerParams?: string;
|
|
13929
13977
|
/**
|
|
13930
13978
|
* 租户id
|
|
13931
13979
|
*
|
|
@@ -14050,6 +14098,12 @@ export interface MessageTmplRequest {
|
|
|
14050
14098
|
* @type string
|
|
14051
14099
|
*/
|
|
14052
14100
|
rangUser?: string;
|
|
14101
|
+
/**
|
|
14102
|
+
* 跳转配置: {"WEB":"菜单id","MOBILE":"菜单id","PAD":"菜单id"}
|
|
14103
|
+
*
|
|
14104
|
+
* @type string
|
|
14105
|
+
*/
|
|
14106
|
+
routerConfig?: string;
|
|
14053
14107
|
/**
|
|
14054
14108
|
* 租户id
|
|
14055
14109
|
*
|
|
@@ -14166,6 +14220,12 @@ export interface MessageTmplResponse {
|
|
|
14166
14220
|
* @type string
|
|
14167
14221
|
*/
|
|
14168
14222
|
pushType?: string;
|
|
14223
|
+
/**
|
|
14224
|
+
* 跳转配置: {"WEB":"菜单id","MOBILE":"菜单id","PAD":"菜单id"}
|
|
14225
|
+
*
|
|
14226
|
+
* @type string
|
|
14227
|
+
*/
|
|
14228
|
+
routerConfig?: string;
|
|
14169
14229
|
/**
|
|
14170
14230
|
* 租户id
|
|
14171
14231
|
*
|
|
@@ -14324,6 +14384,18 @@ export interface MessageTmplSendRequest {
|
|
|
14324
14384
|
* @type string
|
|
14325
14385
|
*/
|
|
14326
14386
|
rangUser?: string;
|
|
14387
|
+
/**
|
|
14388
|
+
*
|
|
14389
|
+
*
|
|
14390
|
+
* @type string
|
|
14391
|
+
*/
|
|
14392
|
+
routerConfig?: string;
|
|
14393
|
+
/**
|
|
14394
|
+
*
|
|
14395
|
+
*
|
|
14396
|
+
* @type string
|
|
14397
|
+
*/
|
|
14398
|
+
routerParams?: string;
|
|
14327
14399
|
/**
|
|
14328
14400
|
* 支持流程
|
|
14329
14401
|
*
|
|
@@ -17296,6 +17368,12 @@ export interface OnlineFormFieldMetaVO {
|
|
|
17296
17368
|
* @type string
|
|
17297
17369
|
*/
|
|
17298
17370
|
bindInfo?: string;
|
|
17371
|
+
/**
|
|
17372
|
+
* 业务字段类型
|
|
17373
|
+
*
|
|
17374
|
+
* @type string
|
|
17375
|
+
*/
|
|
17376
|
+
bizType?: string;
|
|
17299
17377
|
/**
|
|
17300
17378
|
* 默认值
|
|
17301
17379
|
*
|
|
@@ -18318,6 +18396,12 @@ export interface OnlineFormInstanceResponse {
|
|
|
18318
18396
|
* @type string
|
|
18319
18397
|
*/
|
|
18320
18398
|
designerJson?: string;
|
|
18399
|
+
/**
|
|
18400
|
+
*
|
|
18401
|
+
*
|
|
18402
|
+
* @type string
|
|
18403
|
+
*/
|
|
18404
|
+
direction?: string;
|
|
18321
18405
|
/**
|
|
18322
18406
|
*
|
|
18323
18407
|
*
|
|
@@ -18390,6 +18474,12 @@ export interface OnlineFormInstanceResponse {
|
|
|
18390
18474
|
* @type string
|
|
18391
18475
|
*/
|
|
18392
18476
|
formType?: string;
|
|
18477
|
+
/**
|
|
18478
|
+
*
|
|
18479
|
+
*
|
|
18480
|
+
* @type number
|
|
18481
|
+
*/
|
|
18482
|
+
height?: number;
|
|
18393
18483
|
/**
|
|
18394
18484
|
* 主键ID
|
|
18395
18485
|
*
|
|
@@ -18492,6 +18582,12 @@ export interface OnlineFormInstanceResponse {
|
|
|
18492
18582
|
* @type string
|
|
18493
18583
|
*/
|
|
18494
18584
|
operatorRange?: string;
|
|
18585
|
+
/**
|
|
18586
|
+
*
|
|
18587
|
+
*
|
|
18588
|
+
* @type string
|
|
18589
|
+
*/
|
|
18590
|
+
paperSize?: string;
|
|
18495
18591
|
/**
|
|
18496
18592
|
* 实例参数(业务扩展属性)
|
|
18497
18593
|
*
|
|
@@ -18630,6 +18726,12 @@ export interface OnlineFormInstanceResponse {
|
|
|
18630
18726
|
* @type string
|
|
18631
18727
|
*/
|
|
18632
18728
|
viewType?: string;
|
|
18729
|
+
/**
|
|
18730
|
+
*
|
|
18731
|
+
*
|
|
18732
|
+
* @type number
|
|
18733
|
+
*/
|
|
18734
|
+
width?: number;
|
|
18633
18735
|
}
|
|
18634
18736
|
export interface OnlineFormInstanceTmplRelationResponse {
|
|
18635
18737
|
/**
|
|
@@ -25978,6 +26080,24 @@ export interface ProcessPathResponse {
|
|
|
25978
26080
|
* @type string
|
|
25979
26081
|
*/
|
|
25980
26082
|
tmplId?: string;
|
|
26083
|
+
/**
|
|
26084
|
+
* 事务定义id
|
|
26085
|
+
*
|
|
26086
|
+
* @type string
|
|
26087
|
+
*/
|
|
26088
|
+
txnDefinitionId?: string;
|
|
26089
|
+
/**
|
|
26090
|
+
* 事务实例id
|
|
26091
|
+
*
|
|
26092
|
+
* @type string
|
|
26093
|
+
*/
|
|
26094
|
+
txnInstId?: string;
|
|
26095
|
+
/**
|
|
26096
|
+
* 事务实例状态
|
|
26097
|
+
*
|
|
26098
|
+
* @type string
|
|
26099
|
+
*/
|
|
26100
|
+
txnInstStatus?: string;
|
|
25981
26101
|
}
|
|
25982
26102
|
export interface ProcessPathUserRequest {
|
|
25983
26103
|
/**
|
|
@@ -35828,6 +35948,12 @@ export interface UserTenantDTO {
|
|
|
35828
35948
|
* @type string
|
|
35829
35949
|
*/
|
|
35830
35950
|
id?: string;
|
|
35951
|
+
/**
|
|
35952
|
+
* 是否最后登录租户,0:否 1:是
|
|
35953
|
+
*
|
|
35954
|
+
* @type number
|
|
35955
|
+
*/
|
|
35956
|
+
latestLogin?: number;
|
|
35831
35957
|
/**
|
|
35832
35958
|
* 直属上级id
|
|
35833
35959
|
*
|
|
@@ -5608,6 +5608,12 @@ export const apiConfig = [
|
|
|
5608
5608
|
path: "login-log/userLoginLogPage",
|
|
5609
5609
|
hasData: true
|
|
5610
5610
|
},
|
|
5611
|
+
{
|
|
5612
|
+
mode: "get",
|
|
5613
|
+
method: "getLoginSettingGet",
|
|
5614
|
+
path: "login/setting/get",
|
|
5615
|
+
hasQuery: true
|
|
5616
|
+
},
|
|
5611
5617
|
{
|
|
5612
5618
|
mode: "get",
|
|
5613
5619
|
method: "getLoginSsoOauth2Authorize",
|
|
@@ -28,6 +28,7 @@ import type {
|
|
|
28
28
|
TenantUserSearchRequest,
|
|
29
29
|
UserWithUserExtraDTO,
|
|
30
30
|
UserIdsDTO,
|
|
31
|
+
ResponseEntity,
|
|
31
32
|
RedirectView,
|
|
32
33
|
DataSourceUpdateRequest,
|
|
33
34
|
DatasourceExtDTO,
|
|
@@ -40,6 +41,7 @@ import type {
|
|
|
40
41
|
AppEffectiveLicense,
|
|
41
42
|
UserLoginLogPageRequest,
|
|
42
43
|
UserLoginLogDTO,
|
|
44
|
+
ThirdPartyLoginConfig,
|
|
43
45
|
ModelDTO,
|
|
44
46
|
消息设置VO,
|
|
45
47
|
SendEmailMessageRequest,
|
|
@@ -510,6 +512,12 @@ export interface getLicenseGetAppEffectiveLicenseQuery {
|
|
|
510
512
|
*/
|
|
511
513
|
env: string;
|
|
512
514
|
}
|
|
515
|
+
export interface getLoginSettingGetQuery {
|
|
516
|
+
/**
|
|
517
|
+
* code
|
|
518
|
+
*/
|
|
519
|
+
code: string;
|
|
520
|
+
}
|
|
513
521
|
export interface getLoginSsoOauth2AuthorizeQuery {
|
|
514
522
|
/**
|
|
515
523
|
* 授权码
|
|
@@ -1141,7 +1149,7 @@ export interface ApiService {
|
|
|
1141
1149
|
postAppUserSaveList(
|
|
1142
1150
|
query: postAppUserSaveListQuery,
|
|
1143
1151
|
config?: Partial<AxiosRequestConfig>,
|
|
1144
|
-
): Promise<
|
|
1152
|
+
): Promise<ResponseEntity>;
|
|
1145
1153
|
/**
|
|
1146
1154
|
* 修改
|
|
1147
1155
|
*/
|
|
@@ -1261,6 +1269,13 @@ export interface ApiService {
|
|
|
1261
1269
|
data: UserLoginLogPageRequest,
|
|
1262
1270
|
config?: Partial<AxiosRequestConfig>,
|
|
1263
1271
|
): Promise<IPage<UserLoginLogDTO>>;
|
|
1272
|
+
/**
|
|
1273
|
+
* 重定向到微软登录页
|
|
1274
|
+
*/
|
|
1275
|
+
getLoginSettingGet(
|
|
1276
|
+
query: getLoginSettingGetQuery,
|
|
1277
|
+
config?: Partial<AxiosRequestConfig>,
|
|
1278
|
+
): Promise<ThirdPartyLoginConfig>;
|
|
1264
1279
|
/**
|
|
1265
1280
|
* 泛微OA认证地址
|
|
1266
1281
|
*/
|
|
@@ -7345,6 +7345,12 @@ export interface FileTaskResponse {
|
|
|
7345
7345
|
* @type string
|
|
7346
7346
|
*/
|
|
7347
7347
|
name?: string;
|
|
7348
|
+
/**
|
|
7349
|
+
*
|
|
7350
|
+
*
|
|
7351
|
+
* @type IObject
|
|
7352
|
+
*/
|
|
7353
|
+
params?: IObject;
|
|
7348
7354
|
/**
|
|
7349
7355
|
* 关联数据id(edhr实模板ID)
|
|
7350
7356
|
*
|
|
@@ -7827,6 +7833,18 @@ export interface InternalMessageResponse {
|
|
|
7827
7833
|
* @type string
|
|
7828
7834
|
*/
|
|
7829
7835
|
receiverId?: string;
|
|
7836
|
+
/**
|
|
7837
|
+
* 跳转配置: {"WEB":"菜单id","MOBILE":"菜单id","PAD":"菜单id"}
|
|
7838
|
+
*
|
|
7839
|
+
* @type string
|
|
7840
|
+
*/
|
|
7841
|
+
routerConfig?: string;
|
|
7842
|
+
/**
|
|
7843
|
+
* 跳转参数:由调用全局方法方传递
|
|
7844
|
+
*
|
|
7845
|
+
* @type string
|
|
7846
|
+
*/
|
|
7847
|
+
routerParams?: string;
|
|
7830
7848
|
/**
|
|
7831
7849
|
* 是否支持跳转
|
|
7832
7850
|
*
|
|
@@ -11016,6 +11034,12 @@ export interface OrgAddOrUpdateUserRequest {
|
|
|
11016
11034
|
username?: string;
|
|
11017
11035
|
}
|
|
11018
11036
|
export interface OrgBaseInfo {
|
|
11037
|
+
/**
|
|
11038
|
+
*
|
|
11039
|
+
*
|
|
11040
|
+
* @type string
|
|
11041
|
+
*/
|
|
11042
|
+
createTime?: string;
|
|
11019
11043
|
/**
|
|
11020
11044
|
*
|
|
11021
11045
|
*
|
|
@@ -11046,6 +11070,12 @@ export interface OrgBaseInfo {
|
|
|
11046
11070
|
* @type string
|
|
11047
11071
|
*/
|
|
11048
11072
|
parentId?: string;
|
|
11073
|
+
/**
|
|
11074
|
+
*
|
|
11075
|
+
*
|
|
11076
|
+
* @type string
|
|
11077
|
+
*/
|
|
11078
|
+
type?: string;
|
|
11049
11079
|
}
|
|
11050
11080
|
export interface OrgConfig {
|
|
11051
11081
|
/**
|
|
@@ -14144,6 +14174,12 @@ export interface PnDataset {
|
|
|
14144
14174
|
* @type number
|
|
14145
14175
|
*/
|
|
14146
14176
|
deleted?: number;
|
|
14177
|
+
/**
|
|
14178
|
+
*
|
|
14179
|
+
*
|
|
14180
|
+
* @type string
|
|
14181
|
+
*/
|
|
14182
|
+
designSql?: string;
|
|
14147
14183
|
/**
|
|
14148
14184
|
*
|
|
14149
14185
|
*
|
|
@@ -14324,6 +14360,12 @@ export interface PnDatasetRequest {
|
|
|
14324
14360
|
* @type string
|
|
14325
14361
|
*/
|
|
14326
14362
|
databaseType?: string;
|
|
14363
|
+
/**
|
|
14364
|
+
* 设计的sql - 可包含注释
|
|
14365
|
+
*
|
|
14366
|
+
* @type string
|
|
14367
|
+
*/
|
|
14368
|
+
designSql?: string;
|
|
14327
14369
|
/**
|
|
14328
14370
|
* 文件地址
|
|
14329
14371
|
*
|
|
@@ -14422,6 +14464,12 @@ export interface PnDatasetResponse {
|
|
|
14422
14464
|
* @type string
|
|
14423
14465
|
*/
|
|
14424
14466
|
databaseType?: string;
|
|
14467
|
+
/**
|
|
14468
|
+
* 设计的sql - 可包含注释
|
|
14469
|
+
*
|
|
14470
|
+
* @type string
|
|
14471
|
+
*/
|
|
14472
|
+
designSql?: string;
|
|
14425
14473
|
/**
|
|
14426
14474
|
* 完整的sql
|
|
14427
14475
|
*
|
|
@@ -19866,6 +19914,12 @@ export interface UserBaseReq {
|
|
|
19866
19914
|
* @type string
|
|
19867
19915
|
*/
|
|
19868
19916
|
password?: string;
|
|
19917
|
+
/**
|
|
19918
|
+
*
|
|
19919
|
+
*
|
|
19920
|
+
* @type string
|
|
19921
|
+
*/
|
|
19922
|
+
referer?: string;
|
|
19869
19923
|
/**
|
|
19870
19924
|
*
|
|
19871
19925
|
*
|
|
@@ -20282,12 +20336,6 @@ export interface UserExtraResponse {
|
|
|
20282
20336
|
* @type string
|
|
20283
20337
|
*/
|
|
20284
20338
|
id?: string;
|
|
20285
|
-
/**
|
|
20286
|
-
* 是否最近登录租户
|
|
20287
|
-
*
|
|
20288
|
-
* @type number
|
|
20289
|
-
*/
|
|
20290
|
-
latestLogin?: number;
|
|
20291
20339
|
/**
|
|
20292
20340
|
* 直属上级
|
|
20293
20341
|
*
|
|
@@ -6,6 +6,13 @@ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
6
6
|
* @class HttpUtil
|
|
7
7
|
*/
|
|
8
8
|
export declare class HttpUtil {
|
|
9
|
+
/**
|
|
10
|
+
* Axios 实例,供外部使用和挂载中间件
|
|
11
|
+
*
|
|
12
|
+
* @static
|
|
13
|
+
* @type {AxiosInstance}
|
|
14
|
+
*/
|
|
15
|
+
static _instance: AxiosInstance;
|
|
9
16
|
/**
|
|
10
17
|
* 挂载中间件
|
|
11
18
|
*
|
package/es/service/http.util.mjs
CHANGED
|
@@ -3,6 +3,13 @@ import { ContentTypeEnum } from "./http.enum.mjs";
|
|
|
3
3
|
import { BackendError } from "./http.error.mjs";
|
|
4
4
|
const instance = axios.create();
|
|
5
5
|
export class HttpUtil {
|
|
6
|
+
/**
|
|
7
|
+
* Axios 实例,供外部使用和挂载中间件
|
|
8
|
+
*
|
|
9
|
+
* @static
|
|
10
|
+
* @type {AxiosInstance}
|
|
11
|
+
*/
|
|
12
|
+
static _instance = instance;
|
|
6
13
|
/**
|
|
7
14
|
* 挂载中间件
|
|
8
15
|
*
|
|
@@ -10,7 +17,7 @@ export class HttpUtil {
|
|
|
10
17
|
* @param {(_axios: AxiosInstance) => void} fn 中间件函数
|
|
11
18
|
*/
|
|
12
19
|
static use(fn) {
|
|
13
|
-
fn(
|
|
20
|
+
fn(this._instance);
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* GET 请求方法
|
package/es/service/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { apiConfig as aPaasConfig } from "../apaas/index.mjs";
|
|
2
2
|
import { apiConfig as platformConfig } from "../platform/index.mjs";
|
|
3
3
|
import { ApiManage } from "./api-manage.mjs";
|
|
4
|
+
import { installHttpUtil } from "./request.client.mjs";
|
|
4
5
|
export const api = {
|
|
5
6
|
apaas: new ApiManage("/gct-apaas/api", aPaasConfig),
|
|
6
7
|
platform: new ApiManage("/gct-platform/api", platformConfig)
|
|
7
8
|
};
|
|
9
|
+
installHttpUtil();
|
|
8
10
|
export {
|
|
9
11
|
ResultEnum,
|
|
10
12
|
RequestEnum,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NativeHTTP } from "../utils/index.mjs";
|
|
2
|
+
import { HttpUtil } from "./http.util.mjs";
|
|
3
|
+
export function installHttpUtil() {
|
|
4
|
+
if (window.location.host !== "appassets.androidplatform.net") {
|
|
5
|
+
console.debug("\u5F53\u524D\u73AF\u5883\u975E Android\uFF0C\u5DF2\u8DF3\u8FC7 HTTP \u5DE5\u5177\u7C7B\u5B89\u88C5");
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const nativeAdapter = async (config) => {
|
|
9
|
+
const response = await NativeHTTP.request(config);
|
|
10
|
+
return response;
|
|
11
|
+
};
|
|
12
|
+
HttpUtil._instance.defaults.adapter = nativeAdapter;
|
|
13
|
+
const errorHandler = (error) => {
|
|
14
|
+
if (error?.response?.status === 401) {
|
|
15
|
+
console.log("\u767B\u5F55\u4FE1\u606F\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55");
|
|
16
|
+
} else {
|
|
17
|
+
console.log("\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");
|
|
18
|
+
}
|
|
19
|
+
return Promise.reject(error);
|
|
20
|
+
};
|
|
21
|
+
HttpUtil._instance.interceptors.request.use((config) => {
|
|
22
|
+
config.headers["App-Tag"] = "__platform__";
|
|
23
|
+
return config;
|
|
24
|
+
}, errorHandler);
|
|
25
|
+
HttpUtil._instance.interceptors.response.use((response) => {
|
|
26
|
+
if (response.data.code === 200) {
|
|
27
|
+
return response.data.data;
|
|
28
|
+
}
|
|
29
|
+
const errorMessageMode = response.config?.errorMessageMode;
|
|
30
|
+
if (errorMessageMode !== "none") {
|
|
31
|
+
console.log(response.data.message);
|
|
32
|
+
}
|
|
33
|
+
return Promise.reject(response.data);
|
|
34
|
+
}, errorHandler);
|
|
35
|
+
}
|
package/es/utils/index.d.ts
CHANGED
package/es/utils/index.mjs
CHANGED