@gct-paas/api 0.1.6-dev.6 → 0.1.6-dev.7
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 +1 -0
- package/es/apaas/service/api-config.mjs +452 -5
- package/es/apaas/service/apis/app-global-settings.service.d.ts +0 -4
- package/es/apaas/service/apis/app-org.service.d.ts +0 -4
- package/es/apaas/service/apis/approve.service.d.ts +54 -0
- package/es/apaas/service/apis/audit-log.service.d.ts +7 -0
- package/es/apaas/service/apis/category.service.d.ts +8 -0
- package/es/apaas/service/apis/data-source.service.d.ts +4 -0
- package/es/apaas/service/apis/detail-page.service.d.ts +96 -0
- package/es/apaas/service/apis/dhr.service.d.ts +2 -2
- package/es/apaas/service/apis/doc-control-started.service.d.ts +76 -1
- package/es/apaas/service/apis/doc-control-task-todo.service.d.ts +12 -0
- package/es/apaas/service/apis/edhr-instance.service.d.ts +16 -0
- package/es/apaas/service/apis/edhr-tmpl.service.d.ts +18 -5
- package/es/apaas/service/apis/enum-model-field.service.d.ts +8 -0
- package/es/apaas/service/apis/excel.service.d.ts +6 -2
- package/es/apaas/service/apis/field-meta.service.d.ts +21 -0
- package/es/apaas/service/apis/file.service.d.ts +4 -0
- package/es/apaas/service/apis/inspection-category.service.d.ts +84 -0
- package/es/apaas/service/apis/label.service.d.ts +11 -3
- package/es/apaas/service/apis/med-pro.service.d.ts +108 -0
- package/es/apaas/service/apis/medPro.service.d.ts +49 -21
- package/es/apaas/service/apis/model-meta.service.d.ts +15 -1
- package/es/apaas/service/apis/model-method.service.d.ts +19 -1
- package/es/apaas/service/apis/online-form-instance.service.d.ts +78 -0
- package/es/apaas/service/apis/online-form-tmpl-export.service.d.ts +29 -0
- package/es/apaas/service/apis/online-form-tmpl.service.d.ts +77 -0
- package/es/apaas/service/apis/online-form.service.d.ts +8 -1
- package/es/apaas/service/apis/process-task-done.service.d.ts +28 -1
- package/es/apaas/service/apis/process-task-todo.service.d.ts +44 -1
- package/es/apaas/service/apis/product-release-category.service.d.ts +84 -0
- package/es/apaas/service/apis/ss.service.d.ts +8 -0
- package/es/apaas/service/apis/transaction.service.d.ts +157 -0
- package/es/apaas/service/apis/user.service.d.ts +31 -0
- package/es/apaas/service/entities.d.ts +3159 -76
- package/es/apaas/service/index.d.ts +14 -0
- package/es/ipaas/service/api-config.mjs +29 -5
- package/es/ipaas/service/apis/camel.service.d.ts +18 -5
- package/es/ipaas/service/apis/flow.service.d.ts +77 -1
- package/es/ipaas/service/apis/runtime.service.d.ts +13 -0
- package/es/ipaas/service/entities.d.ts +168 -0
- package/es/platform/service/api-config.mjs +48 -2
- package/es/platform/service/apis/api.service.d.ts +52 -1
- package/es/platform/service/apis/bi-app.service.d.ts +4 -3
- package/es/platform/service/apis/file-task.service.d.ts +13 -0
- package/es/platform/service/apis/invoke-log.service.d.ts +17 -1
- package/es/platform/service/apis/license.service.d.ts +18 -0
- package/es/platform/service/apis/login-log.service.d.ts +13 -0
- package/es/platform/service/apis/plat.service.d.ts +7 -0
- package/es/platform/service/entities.d.ts +529 -4
- package/es/service/api-manage.mjs +2 -2
- package/es/service/api-service.d.ts +13 -0
- package/es/service/api-service.interface.d.ts +6 -9
- package/es/service/api-service.mjs +42 -17
- package/es/service/http.util.d.ts +8 -1
- package/es/service/http.util.mjs +22 -4
- package/es/service/index.mjs +1 -3
- package/es/types/index.d.ts +27 -0
- package/es/utils/index.d.ts +7 -0
- package/es/utils/index.mjs +6 -0
- package/package.json +1 -1
- package/dist/gct-api.esm.min.js +0 -1
- package/dist/gct-api.system.min.js +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
ProcessTaskApproveHisQueryRequest,
|
|
4
|
+
ProcessTaskDoneApproveHisResponse,
|
|
5
|
+
ProcessTaskDoneResponse,
|
|
6
|
+
} from '../entities';
|
|
3
7
|
|
|
4
8
|
export interface getPageListQuery {
|
|
5
9
|
/**
|
|
@@ -14,6 +18,10 @@ export interface getPageListQuery {
|
|
|
14
18
|
* edhr模板id
|
|
15
19
|
*/
|
|
16
20
|
edhrTmplId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 创建时间 - 结束
|
|
23
|
+
*/
|
|
24
|
+
endCreateTime?: string;
|
|
17
25
|
/**
|
|
18
26
|
* 待办:任务接收/已办:任务审核-结束时间
|
|
19
27
|
*/
|
|
@@ -82,6 +90,10 @@ export interface getPageListQuery {
|
|
|
82
90
|
* 是否显示表单变更数据
|
|
83
91
|
*/
|
|
84
92
|
showChange?: number;
|
|
93
|
+
/**
|
|
94
|
+
* 显示表单流程数据
|
|
95
|
+
*/
|
|
96
|
+
showFormProcess?: boolean;
|
|
85
97
|
/**
|
|
86
98
|
* 排序字段
|
|
87
99
|
*/
|
|
@@ -90,6 +102,10 @@ export interface getPageListQuery {
|
|
|
90
102
|
* 排序方式:ASC/DESC, 不传默认 ASC
|
|
91
103
|
*/
|
|
92
104
|
sortType?: string;
|
|
105
|
+
/**
|
|
106
|
+
* 创建时间 - 开始
|
|
107
|
+
*/
|
|
108
|
+
startCreateTime?: string;
|
|
93
109
|
/**
|
|
94
110
|
* 汇总人ID
|
|
95
111
|
*/
|
|
@@ -102,12 +118,23 @@ export interface getPageListQuery {
|
|
|
102
118
|
* 任务类型
|
|
103
119
|
*/
|
|
104
120
|
taskType?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
taskTypeList?: string[];
|
|
105
125
|
/**
|
|
106
126
|
* 表单任务名称
|
|
107
127
|
*/
|
|
108
128
|
title?: string;
|
|
109
129
|
}
|
|
110
130
|
export interface ProcessTaskDoneService {
|
|
131
|
+
/**
|
|
132
|
+
* 连审批流程记录表分页列表
|
|
133
|
+
*/
|
|
134
|
+
postApproveHisPageList(
|
|
135
|
+
data: ProcessTaskApproveHisQueryRequest,
|
|
136
|
+
config?: Partial<AxiosRequestConfig>,
|
|
137
|
+
): Promise<IPage<ProcessTaskDoneApproveHisResponse>>;
|
|
111
138
|
/**
|
|
112
139
|
* 分页列表
|
|
113
140
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
ProcessTaskTodoResponse,
|
|
4
|
+
ProcessTaskApproveHisQueryRequest,
|
|
5
|
+
ProcessTaskTodoApproveHisResponse,
|
|
6
|
+
} from '../entities';
|
|
3
7
|
|
|
4
8
|
export interface getAllUserPageListQuery {
|
|
5
9
|
/**
|
|
@@ -14,6 +18,10 @@ export interface getAllUserPageListQuery {
|
|
|
14
18
|
* edhr模板id
|
|
15
19
|
*/
|
|
16
20
|
edhrTmplId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 创建时间 - 结束
|
|
23
|
+
*/
|
|
24
|
+
endCreateTime?: string;
|
|
17
25
|
/**
|
|
18
26
|
* 待办:任务接收/已办:任务审核-结束时间
|
|
19
27
|
*/
|
|
@@ -82,6 +90,10 @@ export interface getAllUserPageListQuery {
|
|
|
82
90
|
* 是否显示表单变更数据
|
|
83
91
|
*/
|
|
84
92
|
showChange?: number;
|
|
93
|
+
/**
|
|
94
|
+
* 显示表单流程数据
|
|
95
|
+
*/
|
|
96
|
+
showFormProcess?: boolean;
|
|
85
97
|
/**
|
|
86
98
|
* 排序字段
|
|
87
99
|
*/
|
|
@@ -90,6 +102,10 @@ export interface getAllUserPageListQuery {
|
|
|
90
102
|
* 排序方式:ASC/DESC, 不传默认 ASC
|
|
91
103
|
*/
|
|
92
104
|
sortType?: string;
|
|
105
|
+
/**
|
|
106
|
+
* 创建时间 - 开始
|
|
107
|
+
*/
|
|
108
|
+
startCreateTime?: string;
|
|
93
109
|
/**
|
|
94
110
|
* 汇总人ID
|
|
95
111
|
*/
|
|
@@ -102,6 +118,10 @@ export interface getAllUserPageListQuery {
|
|
|
102
118
|
* 任务类型
|
|
103
119
|
*/
|
|
104
120
|
taskType?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
taskTypeList?: string[];
|
|
105
125
|
/**
|
|
106
126
|
* 表单任务名称
|
|
107
127
|
*/
|
|
@@ -120,6 +140,10 @@ export interface getPageListQuery {
|
|
|
120
140
|
* edhr模板id
|
|
121
141
|
*/
|
|
122
142
|
edhrTmplId?: string;
|
|
143
|
+
/**
|
|
144
|
+
* 创建时间 - 结束
|
|
145
|
+
*/
|
|
146
|
+
endCreateTime?: string;
|
|
123
147
|
/**
|
|
124
148
|
* 待办:任务接收/已办:任务审核-结束时间
|
|
125
149
|
*/
|
|
@@ -188,6 +212,10 @@ export interface getPageListQuery {
|
|
|
188
212
|
* 是否显示表单变更数据
|
|
189
213
|
*/
|
|
190
214
|
showChange?: number;
|
|
215
|
+
/**
|
|
216
|
+
* 显示表单流程数据
|
|
217
|
+
*/
|
|
218
|
+
showFormProcess?: boolean;
|
|
191
219
|
/**
|
|
192
220
|
* 排序字段
|
|
193
221
|
*/
|
|
@@ -196,6 +224,10 @@ export interface getPageListQuery {
|
|
|
196
224
|
* 排序方式:ASC/DESC, 不传默认 ASC
|
|
197
225
|
*/
|
|
198
226
|
sortType?: string;
|
|
227
|
+
/**
|
|
228
|
+
* 创建时间 - 开始
|
|
229
|
+
*/
|
|
230
|
+
startCreateTime?: string;
|
|
199
231
|
/**
|
|
200
232
|
* 汇总人ID
|
|
201
233
|
*/
|
|
@@ -208,6 +240,10 @@ export interface getPageListQuery {
|
|
|
208
240
|
* 任务类型
|
|
209
241
|
*/
|
|
210
242
|
taskType?: string;
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
*/
|
|
246
|
+
taskTypeList?: string[];
|
|
211
247
|
/**
|
|
212
248
|
* 表单任务名称
|
|
213
249
|
*/
|
|
@@ -221,6 +257,13 @@ export interface ProcessTaskTodoService {
|
|
|
221
257
|
query: getAllUserPageListQuery,
|
|
222
258
|
config?: Partial<AxiosRequestConfig>,
|
|
223
259
|
): Promise<IPage<ProcessTaskTodoResponse>>;
|
|
260
|
+
/**
|
|
261
|
+
* 连审批流程记录表分页列表
|
|
262
|
+
*/
|
|
263
|
+
postApproveHisPageList(
|
|
264
|
+
data: ProcessTaskApproveHisQueryRequest,
|
|
265
|
+
config?: Partial<AxiosRequestConfig>,
|
|
266
|
+
): Promise<IPage<ProcessTaskTodoApproveHisResponse>>;
|
|
224
267
|
/**
|
|
225
268
|
* 分页列表
|
|
226
269
|
*/
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type {
|
|
3
|
+
ProductReleaseCategoryRequest,
|
|
4
|
+
CategoryDragDTO,
|
|
5
|
+
ResponseEntity,
|
|
6
|
+
ProductReleaseCategoryResponse,
|
|
7
|
+
} from '../entities';
|
|
8
|
+
|
|
9
|
+
export interface deleteQuery {
|
|
10
|
+
/**
|
|
11
|
+
* 删除的分类id
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface getInfoQuery {
|
|
16
|
+
/**
|
|
17
|
+
* id
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
export interface getPageListQuery {
|
|
22
|
+
/**
|
|
23
|
+
* 页码
|
|
24
|
+
*/
|
|
25
|
+
pageNo?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 每页数据条数
|
|
28
|
+
*/
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface putIdPathParams {
|
|
32
|
+
id: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ProductReleaseCategoryService {
|
|
35
|
+
/**
|
|
36
|
+
* 保存
|
|
37
|
+
*/
|
|
38
|
+
post(
|
|
39
|
+
data: ProductReleaseCategoryRequest,
|
|
40
|
+
config?: Partial<AxiosRequestConfig>,
|
|
41
|
+
): Promise<string>;
|
|
42
|
+
/**
|
|
43
|
+
* 分类删除
|
|
44
|
+
*/
|
|
45
|
+
delete(
|
|
46
|
+
query: deleteQuery,
|
|
47
|
+
config?: Partial<AxiosRequestConfig>,
|
|
48
|
+
): Promise<string>;
|
|
49
|
+
/**
|
|
50
|
+
* 拖拽
|
|
51
|
+
*/
|
|
52
|
+
putDrag(
|
|
53
|
+
data: CategoryDragDTO,
|
|
54
|
+
config?: Partial<AxiosRequestConfig>,
|
|
55
|
+
): Promise<ResponseEntity>;
|
|
56
|
+
/**
|
|
57
|
+
* 详情
|
|
58
|
+
*/
|
|
59
|
+
getInfo(
|
|
60
|
+
query: getInfoQuery,
|
|
61
|
+
config?: Partial<AxiosRequestConfig>,
|
|
62
|
+
): Promise<ProductReleaseCategoryResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* 列表
|
|
65
|
+
*/
|
|
66
|
+
getList(
|
|
67
|
+
config?: Partial<AxiosRequestConfig>,
|
|
68
|
+
): Promise<ProductReleaseCategoryResponse[]>;
|
|
69
|
+
/**
|
|
70
|
+
* 分页列表
|
|
71
|
+
*/
|
|
72
|
+
getPageList(
|
|
73
|
+
query: getPageListQuery,
|
|
74
|
+
config?: Partial<AxiosRequestConfig>,
|
|
75
|
+
): Promise<IPage<ProductReleaseCategoryResponse>>;
|
|
76
|
+
/**
|
|
77
|
+
* 修改
|
|
78
|
+
*/
|
|
79
|
+
putId(
|
|
80
|
+
path: putIdPathParams,
|
|
81
|
+
data: ProductReleaseCategoryRequest,
|
|
82
|
+
config?: Partial<AxiosRequestConfig>,
|
|
83
|
+
): Promise<string>;
|
|
84
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import type { AxiosRequestConfig } from 'axios';
|
|
3
|
+
import type { ExcelValidateResponse } from '../entities';
|
|
4
|
+
|
|
3
5
|
export interface postUploadExcelQuery {
|
|
4
6
|
/**
|
|
5
7
|
* headerRowIndex
|
|
@@ -22,4 +24,10 @@ export interface SsService {
|
|
|
22
24
|
query: postUploadExcelQuery,
|
|
23
25
|
config?: Partial<AxiosRequestConfig>,
|
|
24
26
|
): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* zip上传解析
|
|
29
|
+
*/
|
|
30
|
+
postUploadZip(
|
|
31
|
+
config?: Partial<AxiosRequestConfig>,
|
|
32
|
+
): Promise<ExcelValidateResponse>;
|
|
25
33
|
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type {
|
|
3
|
+
TransactionRequest,
|
|
4
|
+
TransactionResponse,
|
|
5
|
+
TransactionDTO,
|
|
6
|
+
} from '../entities';
|
|
7
|
+
|
|
8
|
+
export interface deleteQuery {
|
|
9
|
+
/**
|
|
10
|
+
* 删除的id,多个按','分割
|
|
11
|
+
*/
|
|
12
|
+
ids: string;
|
|
13
|
+
}
|
|
14
|
+
export interface postCopyVersionIdPathParams {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface getGetVersionByIdQuery {
|
|
18
|
+
/**
|
|
19
|
+
* id
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface getInfoQuery {
|
|
24
|
+
/**
|
|
25
|
+
* id
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
29
|
+
export interface getListVersionByIdQuery {
|
|
30
|
+
/**
|
|
31
|
+
* baseId
|
|
32
|
+
*/
|
|
33
|
+
baseId: string;
|
|
34
|
+
/**
|
|
35
|
+
* 根据名称搜索
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface getPageListQuery {
|
|
40
|
+
/**
|
|
41
|
+
* 查询条件
|
|
42
|
+
*/
|
|
43
|
+
keyword?: string;
|
|
44
|
+
/**
|
|
45
|
+
* 页码
|
|
46
|
+
*/
|
|
47
|
+
pageNo?: number;
|
|
48
|
+
/**
|
|
49
|
+
* 每页数据条数
|
|
50
|
+
*/
|
|
51
|
+
pageSize?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface deleteRemoveVersionByIdQuery {
|
|
54
|
+
/**
|
|
55
|
+
* 删除的id
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
}
|
|
59
|
+
export interface putUpdateVersionByIdIdPathParams {
|
|
60
|
+
id: string;
|
|
61
|
+
}
|
|
62
|
+
export interface putIdPathParams {
|
|
63
|
+
id: string;
|
|
64
|
+
}
|
|
65
|
+
export interface TransactionService {
|
|
66
|
+
/**
|
|
67
|
+
* 保存
|
|
68
|
+
*/
|
|
69
|
+
post(
|
|
70
|
+
data: TransactionRequest,
|
|
71
|
+
config?: Partial<AxiosRequestConfig>,
|
|
72
|
+
): Promise<string>;
|
|
73
|
+
/**
|
|
74
|
+
* 删除父
|
|
75
|
+
*/
|
|
76
|
+
delete(
|
|
77
|
+
query: deleteQuery,
|
|
78
|
+
config?: Partial<AxiosRequestConfig>,
|
|
79
|
+
): Promise<string>;
|
|
80
|
+
/**
|
|
81
|
+
* 复制
|
|
82
|
+
*/
|
|
83
|
+
postCopy(
|
|
84
|
+
data: TransactionRequest,
|
|
85
|
+
config?: Partial<AxiosRequestConfig>,
|
|
86
|
+
): Promise<string>;
|
|
87
|
+
/**
|
|
88
|
+
* 复制版本
|
|
89
|
+
*/
|
|
90
|
+
postCopyVersionId(
|
|
91
|
+
path: postCopyVersionIdPathParams,
|
|
92
|
+
data: TransactionRequest,
|
|
93
|
+
config?: Partial<AxiosRequestConfig>,
|
|
94
|
+
): Promise<string>;
|
|
95
|
+
/**
|
|
96
|
+
* 根据id查子
|
|
97
|
+
*/
|
|
98
|
+
getGetVersionById(
|
|
99
|
+
query: getGetVersionByIdQuery,
|
|
100
|
+
config?: Partial<AxiosRequestConfig>,
|
|
101
|
+
): Promise<TransactionResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* 详情
|
|
104
|
+
*/
|
|
105
|
+
getInfo(
|
|
106
|
+
query: getInfoQuery,
|
|
107
|
+
config?: Partial<AxiosRequestConfig>,
|
|
108
|
+
): Promise<TransactionResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* 列表
|
|
111
|
+
*/
|
|
112
|
+
getList(config?: Partial<AxiosRequestConfig>): Promise<TransactionResponse[]>;
|
|
113
|
+
/**
|
|
114
|
+
* 根据父baseId 查所有版本
|
|
115
|
+
*/
|
|
116
|
+
getListVersionById(
|
|
117
|
+
query: getListVersionByIdQuery,
|
|
118
|
+
config?: Partial<AxiosRequestConfig>,
|
|
119
|
+
): Promise<TransactionResponse[]>;
|
|
120
|
+
/**
|
|
121
|
+
* 分页列表
|
|
122
|
+
*/
|
|
123
|
+
getPageList(
|
|
124
|
+
query: getPageListQuery,
|
|
125
|
+
config?: Partial<AxiosRequestConfig>,
|
|
126
|
+
): Promise<IPage<TransactionDTO>>;
|
|
127
|
+
/**
|
|
128
|
+
* 删除版本
|
|
129
|
+
*/
|
|
130
|
+
deleteRemoveVersionById(
|
|
131
|
+
query: deleteRemoveVersionByIdQuery,
|
|
132
|
+
config?: Partial<AxiosRequestConfig>,
|
|
133
|
+
): Promise<string>;
|
|
134
|
+
/**
|
|
135
|
+
* 保存版本
|
|
136
|
+
*/
|
|
137
|
+
postSaveVersion(
|
|
138
|
+
data: TransactionRequest,
|
|
139
|
+
config?: Partial<AxiosRequestConfig>,
|
|
140
|
+
): Promise<string>;
|
|
141
|
+
/**
|
|
142
|
+
* 修改版本
|
|
143
|
+
*/
|
|
144
|
+
putUpdateVersionByIdId(
|
|
145
|
+
path: putUpdateVersionByIdIdPathParams,
|
|
146
|
+
data: TransactionRequest,
|
|
147
|
+
config?: Partial<AxiosRequestConfig>,
|
|
148
|
+
): Promise<string>;
|
|
149
|
+
/**
|
|
150
|
+
* 修改
|
|
151
|
+
*/
|
|
152
|
+
putId(
|
|
153
|
+
path: putIdPathParams,
|
|
154
|
+
data: TransactionRequest,
|
|
155
|
+
config?: Partial<AxiosRequestConfig>,
|
|
156
|
+
): Promise<string>;
|
|
157
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { UserInfo } from '../entities';
|
|
3
|
+
|
|
4
|
+
export interface getInfoQuery {
|
|
5
|
+
/**
|
|
6
|
+
* userId
|
|
7
|
+
*/
|
|
8
|
+
userId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface getInfosQuery {
|
|
11
|
+
/**
|
|
12
|
+
* 用户id,以英文逗号分割:id,id,id
|
|
13
|
+
*/
|
|
14
|
+
userIds: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UserService {
|
|
17
|
+
/**
|
|
18
|
+
* 获取用户信息
|
|
19
|
+
*/
|
|
20
|
+
getInfo(
|
|
21
|
+
query: getInfoQuery,
|
|
22
|
+
config?: Partial<AxiosRequestConfig>,
|
|
23
|
+
): Promise<UserInfo>;
|
|
24
|
+
/**
|
|
25
|
+
* 获取用户信息列表
|
|
26
|
+
*/
|
|
27
|
+
getInfos(
|
|
28
|
+
query: getInfosQuery,
|
|
29
|
+
config?: Partial<AxiosRequestConfig>,
|
|
30
|
+
): Promise<UserInfo[]>;
|
|
31
|
+
}
|