shcp-api-lib 1.0.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/README.md +74 -0
- package/dist/index.d.ts +5660 -0
- package/dist/index.esm.js +2954 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +3038 -0
- package/dist/index.js.map +1 -0
- package/dist/types/src/api/app-client-api.d.ts +12 -0
- package/dist/types/src/api/app-client-page-config-api.d.ts +5 -0
- package/dist/types/src/api/app-client-setting-api.d.ts +5 -0
- package/dist/types/src/api/common-dict-api.d.ts +40 -0
- package/dist/types/src/api/common-file-api.d.ts +5 -0
- package/dist/types/src/api/common-right-api.d.ts +60 -0
- package/dist/types/src/api/consumer-api.d.ts +39 -0
- package/dist/types/src/api/consumer-bind-api.d.ts +15 -0
- package/dist/types/src/api/consumer-device-api.d.ts +24 -0
- package/dist/types/src/api/consumer-favorite-api.d.ts +8 -0
- package/dist/types/src/api/device-api.d.ts +19 -0
- package/dist/types/src/api/device-user-api.d.ts +29 -0
- package/dist/types/src/api/disease-care-right-api.d.ts +22 -0
- package/dist/types/src/api/health-common-api.d.ts +15 -0
- package/dist/types/src/api/health-metric-api.d.ts +9 -0
- package/dist/types/src/api/health-profile-api.d.ts +8 -0
- package/dist/types/src/api/health-self-assess-api.d.ts +8 -0
- package/dist/types/src/api/health-study-right-api.d.ts +23 -0
- package/dist/types/src/api/health-tool-api.d.ts +14 -0
- package/dist/types/src/api/help-center.d.ts +4 -0
- package/dist/types/src/api/im-user-api.d.ts +7 -0
- package/dist/types/src/api/index.d.ts +32 -0
- package/dist/types/src/api/km-article-api.d.ts +9 -0
- package/dist/types/src/api/km-form-api.d.ts +10 -0
- package/dist/types/src/api/km-form-rule-relation-api.d.ts +6 -0
- package/dist/types/src/api/login-api.d.ts +18 -0
- package/dist/types/src/api/marketing-api.d.ts +16 -0
- package/dist/types/src/api/message-record-api.d.ts +7 -0
- package/dist/types/src/api/mine-api.d.ts +8 -0
- package/dist/types/src/api/right-qrcode-api.d.ts +9 -0
- package/dist/types/src/api/right-service-config-api.d.ts +18 -0
- package/dist/types/src/api/system-right-api.d.ts +17 -0
- package/dist/types/src/api/user-group-api.d.ts +11 -0
- package/dist/types/src/constants/km-const.d.ts +59 -0
- package/dist/types/src/constants/metric.d.ts +17 -0
- package/dist/types/src/constants/qiniuUploader.d.ts +49 -0
- package/dist/types/src/constants/shcp-common.d.ts +428 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/shcp-api-sdk.d.ts +26 -0
- package/dist/types/src/type/model/app-client-model.d.ts +138 -0
- package/dist/types/src/type/model/app-client-setting-model.d.ts +46 -0
- package/dist/types/src/type/model/blade-system-model.d.ts +34 -0
- package/dist/types/src/type/model/common-dict-model.d.ts +100 -0
- package/dist/types/src/type/model/common-file-model.d.ts +10 -0
- package/dist/types/src/type/model/common-model.d.ts +9 -0
- package/dist/types/src/type/model/common-right-model.d.ts +929 -0
- package/dist/types/src/type/model/consumer-bind-model.d.ts +175 -0
- package/dist/types/src/type/model/consumer-device-model.d.ts +114 -0
- package/dist/types/src/type/model/consumer-favorite-model.d.ts +105 -0
- package/dist/types/src/type/model/consumer-model.d.ts +214 -0
- package/dist/types/src/type/model/device-model.d.ts +295 -0
- package/dist/types/src/type/model/device-user-model.d.ts +53 -0
- package/dist/types/src/type/model/health-care-config-model.d.ts +301 -0
- package/dist/types/src/type/model/health-metric-model.d.ts +181 -0
- package/dist/types/src/type/model/health-profile-model.d.ts +83 -0
- package/dist/types/src/type/model/health-self-assess-model.d.ts +35 -0
- package/dist/types/src/type/model/health-tool-model.d.ts +105 -0
- package/dist/types/src/type/model/im-user-model.d.ts +44 -0
- package/dist/types/src/type/model/index.d.ts +30 -0
- package/dist/types/src/type/model/km-article-model.d.ts +275 -0
- package/dist/types/src/type/model/km-form-model.d.ts +745 -0
- package/dist/types/src/type/model/km-form-rule-relation-model.d.ts +31 -0
- package/dist/types/src/type/model/login-model.d.ts +90 -0
- package/dist/types/src/type/model/marketing-model.d.ts +142 -0
- package/dist/types/src/type/model/message-record-model.d.ts +59 -0
- package/dist/types/src/type/model/mine-model.d.ts +100 -0
- package/dist/types/src/type/model/right-qrcode-model.d.ts +143 -0
- package/dist/types/src/type/model/right-service-config-model.d.ts +2 -0
- package/dist/types/src/type/model/system-right-model.d.ts +134 -0
- package/dist/types/src/type/model/user-group-model.d.ts +45 -0
- package/dist/types/src/type/net-types.d.ts +37 -0
- package/package.json +47 -0
@@ -0,0 +1,295 @@
|
|
1
|
+
import { DeviceType, DeviceStatus } from '../../constants/shcp-common';
|
2
|
+
/**
|
3
|
+
* 健康设备查询请求
|
4
|
+
*/
|
5
|
+
export interface DeviceQuery {
|
6
|
+
/**
|
7
|
+
* 设备id
|
8
|
+
*/
|
9
|
+
id?: number;
|
10
|
+
/**
|
11
|
+
* 设备id集合
|
12
|
+
*/
|
13
|
+
ids?: number[];
|
14
|
+
/**
|
15
|
+
* 所属租户ID
|
16
|
+
*/
|
17
|
+
tenantId?: string;
|
18
|
+
/**
|
19
|
+
* 设备类型
|
20
|
+
*/
|
21
|
+
type?: DeviceType;
|
22
|
+
/**
|
23
|
+
* 设备名称
|
24
|
+
*/
|
25
|
+
name?: string;
|
26
|
+
/**
|
27
|
+
* 设备品牌
|
28
|
+
*/
|
29
|
+
brand?: string;
|
30
|
+
/**
|
31
|
+
* 设备型号
|
32
|
+
*/
|
33
|
+
model?: string;
|
34
|
+
/**
|
35
|
+
* 设备版本号
|
36
|
+
*/
|
37
|
+
version?: string;
|
38
|
+
/**
|
39
|
+
* 设备状态
|
40
|
+
*/
|
41
|
+
status?: DeviceStatus;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* 创建租户设备请求
|
45
|
+
*/
|
46
|
+
export interface DeviceCreateRequest {
|
47
|
+
/**
|
48
|
+
* 租户设备所属租户ID
|
49
|
+
*/
|
50
|
+
tenantId: string;
|
51
|
+
/**
|
52
|
+
* 租户设备名称
|
53
|
+
*/
|
54
|
+
name: string;
|
55
|
+
/**
|
56
|
+
* 设备品牌
|
57
|
+
*/
|
58
|
+
brand: string;
|
59
|
+
/**
|
60
|
+
* 设备型号
|
61
|
+
*/
|
62
|
+
model?: string;
|
63
|
+
/**
|
64
|
+
* 设备版本号
|
65
|
+
*/
|
66
|
+
version?: string;
|
67
|
+
/**
|
68
|
+
* 租户设备图标
|
69
|
+
*/
|
70
|
+
icon: string;
|
71
|
+
/**
|
72
|
+
* 租户设备描述
|
73
|
+
*/
|
74
|
+
remark?: string;
|
75
|
+
/**
|
76
|
+
* 租户设备类型
|
77
|
+
*/
|
78
|
+
type: DeviceType;
|
79
|
+
/**
|
80
|
+
* 租户设备状态
|
81
|
+
*/
|
82
|
+
status: DeviceStatus;
|
83
|
+
/**
|
84
|
+
* 租户设备供应商(数据来源)
|
85
|
+
*/
|
86
|
+
vendor?: string;
|
87
|
+
/**
|
88
|
+
* 租户设备相关配置(如三方的appid和key)
|
89
|
+
*/
|
90
|
+
settings?: string;
|
91
|
+
}
|
92
|
+
/**
|
93
|
+
* 创建租户设备请求
|
94
|
+
*/
|
95
|
+
export interface DeviceUpdateRequest {
|
96
|
+
/**
|
97
|
+
* 租户设备ID
|
98
|
+
*/
|
99
|
+
id: number;
|
100
|
+
/**
|
101
|
+
* 租户设备所属租户ID
|
102
|
+
*/
|
103
|
+
tenantId: string;
|
104
|
+
/**
|
105
|
+
* 租户设备名称
|
106
|
+
*/
|
107
|
+
name: string;
|
108
|
+
/**
|
109
|
+
* 设备型号
|
110
|
+
*/
|
111
|
+
model?: string;
|
112
|
+
/**
|
113
|
+
* 设备版本号
|
114
|
+
*/
|
115
|
+
version?: string;
|
116
|
+
/**
|
117
|
+
* 租户设备图标
|
118
|
+
*/
|
119
|
+
icon: string;
|
120
|
+
/**
|
121
|
+
* 租户设备描述
|
122
|
+
*/
|
123
|
+
remark?: string;
|
124
|
+
/**
|
125
|
+
* 租户设备类型
|
126
|
+
*/
|
127
|
+
type: DeviceType;
|
128
|
+
/**
|
129
|
+
* 租户设备状态
|
130
|
+
*/
|
131
|
+
status: DeviceStatus;
|
132
|
+
/**
|
133
|
+
* 租户设备供应商(数据来源)
|
134
|
+
*/
|
135
|
+
vendor?: string;
|
136
|
+
/**
|
137
|
+
* 租户设备相关配置(如三方的appid和key)
|
138
|
+
*/
|
139
|
+
settings?: string;
|
140
|
+
}
|
141
|
+
/**
|
142
|
+
* 创建租户设备请求
|
143
|
+
*/
|
144
|
+
export interface DeviceDeleteRequest {
|
145
|
+
/**
|
146
|
+
* 租户设备ID
|
147
|
+
*/
|
148
|
+
idList: number[];
|
149
|
+
}
|
150
|
+
/**
|
151
|
+
* 华为手表设备相关配置
|
152
|
+
*/
|
153
|
+
export interface HuaWeiWatchConfig {
|
154
|
+
/**
|
155
|
+
* 华为数据服务器地址
|
156
|
+
*/
|
157
|
+
serverDomain?: string;
|
158
|
+
/**
|
159
|
+
* 访问华为数据服务的appId
|
160
|
+
*/
|
161
|
+
appId?: string;
|
162
|
+
/**
|
163
|
+
* 访问华为数据服务的appSecret
|
164
|
+
*/
|
165
|
+
appSecret?: string;
|
166
|
+
/**
|
167
|
+
* 要采集的指标的配置
|
168
|
+
*/
|
169
|
+
metrics?: HuaWeiWatchMetric[];
|
170
|
+
}
|
171
|
+
/**
|
172
|
+
* 华为手表指标配置
|
173
|
+
*/
|
174
|
+
export interface HuaWeiWatchMetric {
|
175
|
+
/**
|
176
|
+
* 是否启用
|
177
|
+
*/
|
178
|
+
enabled?: boolean;
|
179
|
+
/**
|
180
|
+
* 指标的类别
|
181
|
+
*/
|
182
|
+
category?: HuaWeiWatchMetricCategory;
|
183
|
+
/**
|
184
|
+
* 指标的查询频度
|
185
|
+
*/
|
186
|
+
frequency?: string;
|
187
|
+
/**
|
188
|
+
* 指标字段的标签映射
|
189
|
+
*/
|
190
|
+
tags?: Record<string, number>;
|
191
|
+
}
|
192
|
+
/**
|
193
|
+
* 华为手表指标类别
|
194
|
+
*/
|
195
|
+
export declare enum HuaWeiWatchMetricCategory {
|
196
|
+
BloodPressure = "bp",
|
197
|
+
BloodFat = "bf",
|
198
|
+
BloodSugar = "bs",
|
199
|
+
Sleep = "sleep_standard",
|
200
|
+
SPO2 = "spo2",
|
201
|
+
HeartRate = "heart_rate",
|
202
|
+
BodyTemperature = "tw",
|
203
|
+
SportSingle = "sport_single",
|
204
|
+
Sport = "sport",
|
205
|
+
Stress = "stress",
|
206
|
+
Unknown = "unknown"
|
207
|
+
}
|
208
|
+
/**
|
209
|
+
* 租户设备信息
|
210
|
+
*/
|
211
|
+
export interface DeviceDTO {
|
212
|
+
/**
|
213
|
+
* 设备id
|
214
|
+
*/
|
215
|
+
id?: number;
|
216
|
+
/**
|
217
|
+
* 设备所属租户ID
|
218
|
+
*/
|
219
|
+
tenantId?: string;
|
220
|
+
/**
|
221
|
+
* 设备名称
|
222
|
+
*/
|
223
|
+
name?: string;
|
224
|
+
/**
|
225
|
+
* 品牌
|
226
|
+
*/
|
227
|
+
brand?: string;
|
228
|
+
/**
|
229
|
+
* 设备型号 如:GT5
|
230
|
+
*/
|
231
|
+
model?: string;
|
232
|
+
/**
|
233
|
+
* 设备版本号 如:5G 4G
|
234
|
+
*/
|
235
|
+
version?: string;
|
236
|
+
/**
|
237
|
+
* 权益图标URL地址
|
238
|
+
*/
|
239
|
+
icon?: string;
|
240
|
+
/**
|
241
|
+
* 设备描述
|
242
|
+
*/
|
243
|
+
remark?: string;
|
244
|
+
/**
|
245
|
+
* 设备类型
|
246
|
+
*/
|
247
|
+
type?: DeviceType;
|
248
|
+
/**
|
249
|
+
* 设备状态
|
250
|
+
*/
|
251
|
+
status?: DeviceStatus;
|
252
|
+
/**
|
253
|
+
* 设备供应商
|
254
|
+
*/
|
255
|
+
vendor?: string;
|
256
|
+
/**
|
257
|
+
* 租户设备相关配置, JSON格式,具体类型参考: DeviceConfig
|
258
|
+
*/
|
259
|
+
setting?: string;
|
260
|
+
}
|
261
|
+
/**
|
262
|
+
* 华为手表设备上下文
|
263
|
+
*/
|
264
|
+
export interface HuaWeiWatch {
|
265
|
+
/**
|
266
|
+
* 授权链接
|
267
|
+
*/
|
268
|
+
authorUrl?: string;
|
269
|
+
/**
|
270
|
+
* 健康服务任务id
|
271
|
+
*/
|
272
|
+
taskId?: number;
|
273
|
+
}
|
274
|
+
/**
|
275
|
+
* 设备复制请求
|
276
|
+
*/
|
277
|
+
export interface DeviceCopyRequest {
|
278
|
+
/**
|
279
|
+
* 模版租户ID
|
280
|
+
*/
|
281
|
+
templateTenantId: string;
|
282
|
+
/**
|
283
|
+
* 新租户ID
|
284
|
+
*/
|
285
|
+
newTenantId: string;
|
286
|
+
}
|
287
|
+
/**
|
288
|
+
* 设备复制响应
|
289
|
+
*/
|
290
|
+
export interface DeviceCopyResponse {
|
291
|
+
/**
|
292
|
+
* 设备id映射
|
293
|
+
*/
|
294
|
+
deviceIdMapping: Record<number, number>;
|
295
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
export interface DeviceUserCreateRequest {
|
2
|
+
appClientId: number;
|
3
|
+
loginAccount: string;
|
4
|
+
loginPassword: string;
|
5
|
+
nickname: string;
|
6
|
+
avatar: string;
|
7
|
+
mobile: string;
|
8
|
+
gender: number;
|
9
|
+
}
|
10
|
+
export interface DeviceUserQuery {
|
11
|
+
loginAccount?: string;
|
12
|
+
appClientId?: string;
|
13
|
+
id?: number | string;
|
14
|
+
}
|
15
|
+
export interface DeviceUserDTO {
|
16
|
+
appClientId: number;
|
17
|
+
loginAccount: string;
|
18
|
+
loginPassword: string;
|
19
|
+
nickname: string;
|
20
|
+
avatar: string;
|
21
|
+
mobile: string;
|
22
|
+
gender: number;
|
23
|
+
tenantId: string;
|
24
|
+
status: number;
|
25
|
+
id: number;
|
26
|
+
}
|
27
|
+
export interface DeviceUserLoginRequest {
|
28
|
+
encryptedData?: string;
|
29
|
+
iv?: string;
|
30
|
+
jsCode: string;
|
31
|
+
avatarUrl: string;
|
32
|
+
province?: string;
|
33
|
+
city?: string;
|
34
|
+
country?: string;
|
35
|
+
gender: number;
|
36
|
+
language?: string;
|
37
|
+
nickName: string;
|
38
|
+
rawData?: string;
|
39
|
+
signature: string;
|
40
|
+
mobile?: string;
|
41
|
+
id?: number;
|
42
|
+
appClientId?: number;
|
43
|
+
}
|
44
|
+
export interface DeviceUserUpdateRequest {
|
45
|
+
id: number | string;
|
46
|
+
appClientId?: number;
|
47
|
+
loginAccount?: string;
|
48
|
+
loginPassword?: string;
|
49
|
+
nickname?: string;
|
50
|
+
avatar?: string;
|
51
|
+
mobile?: string;
|
52
|
+
gender?: number;
|
53
|
+
}
|
@@ -0,0 +1,301 @@
|
|
1
|
+
import { GroupJoinType, HealthServiceType, PlanExecMethod, PlanExecType, StudyType, VisitType } from '../../constants/shcp-common';
|
2
|
+
export interface RightServiceConfigDTO {
|
3
|
+
id?: number;
|
4
|
+
tenantId?: string;
|
5
|
+
rightId: number;
|
6
|
+
serviceType: HealthServiceType;
|
7
|
+
}
|
8
|
+
export interface DiseaseCareConfigDTO extends RightServiceConfigDTO {
|
9
|
+
diseaseName: string;
|
10
|
+
assessmentConfigs: AssessmentConfig[];
|
11
|
+
groupingConfig: GroupingConfig;
|
12
|
+
careConfigs: CareConfig[];
|
13
|
+
} /**
|
14
|
+
* 课题研究权益的服务配置
|
15
|
+
*/
|
16
|
+
export interface HealthStudyConfigDTO extends RightServiceConfigDTO {
|
17
|
+
/**
|
18
|
+
* 课题名称
|
19
|
+
*/
|
20
|
+
topicName?: string;
|
21
|
+
/**
|
22
|
+
* 课题介绍
|
23
|
+
*/
|
24
|
+
topicIntroduce?: string;
|
25
|
+
/**
|
26
|
+
* 纳排标准
|
27
|
+
*/
|
28
|
+
acceptCriteria?: string;
|
29
|
+
/**
|
30
|
+
* 课题研究附件URL
|
31
|
+
*/
|
32
|
+
studyAttachment?: string;
|
33
|
+
/**
|
34
|
+
* 课题研究附件名称
|
35
|
+
*/
|
36
|
+
studyAttachmentName?: string;
|
37
|
+
/**
|
38
|
+
* 课题研究类型,如:单中心模式、多中心模式
|
39
|
+
*/
|
40
|
+
studyType?: StudyType;
|
41
|
+
/**
|
42
|
+
* 分组加入方式,如:随机入组、手动指定入组
|
43
|
+
*/
|
44
|
+
joinType?: GroupJoinType;
|
45
|
+
/**
|
46
|
+
* 评估方案配置
|
47
|
+
*/
|
48
|
+
crfFormList?: AssessConfigDTO[];
|
49
|
+
/**
|
50
|
+
* 用户分组方案配置
|
51
|
+
*/
|
52
|
+
groupingConfig?: GroupingConfigDTO;
|
53
|
+
/**
|
54
|
+
* 每组的管理方案配置
|
55
|
+
*/
|
56
|
+
careConfigs?: CareConfig[];
|
57
|
+
}
|
58
|
+
export interface AssessmentConfig {
|
59
|
+
name: string;
|
60
|
+
formId: number;
|
61
|
+
formName: string;
|
62
|
+
ruleId: number;
|
63
|
+
sort: number;
|
64
|
+
consumerReminderTimeAfterStart?: string;
|
65
|
+
others?: {
|
66
|
+
[key: string]: any;
|
67
|
+
};
|
68
|
+
}
|
69
|
+
export interface GroupingConfig {
|
70
|
+
ruleId: number;
|
71
|
+
groups: Group[];
|
72
|
+
others?: {
|
73
|
+
[key: string]: any;
|
74
|
+
};
|
75
|
+
}
|
76
|
+
export interface Group {
|
77
|
+
id: number;
|
78
|
+
name: string;
|
79
|
+
remark: string;
|
80
|
+
}
|
81
|
+
export interface CareConfig {
|
82
|
+
groupId: number;
|
83
|
+
startTimeOffset: string;
|
84
|
+
followUpConfig: FollowUpConfigDTO;
|
85
|
+
returnVisitConfig: ReturnVisitConfigDTO;
|
86
|
+
educationConfig: EducationConfigDTO;
|
87
|
+
metricMonitorConfig: MetricMonitorConfigDTO;
|
88
|
+
adviceConfig: AdviceConfigDTO;
|
89
|
+
}
|
90
|
+
export interface FollowUpConfigDTO {
|
91
|
+
plans: FollowUpPlan[];
|
92
|
+
consumerReminderEnabled?: boolean;
|
93
|
+
consumerReminderTimeBeforeStart?: string;
|
94
|
+
consumerReminderTimeAfterStart?: string;
|
95
|
+
consumerNoticeAfterDone?: boolean;
|
96
|
+
others?: {
|
97
|
+
[key: string]: any;
|
98
|
+
};
|
99
|
+
}
|
100
|
+
export interface FollowUpPlan {
|
101
|
+
name: string;
|
102
|
+
formId: number;
|
103
|
+
formName: string;
|
104
|
+
ruleId?: number;
|
105
|
+
visitType: VisitType;
|
106
|
+
execMethod: PlanExecMethod;
|
107
|
+
execTimeConfig: ExecTimeConfig;
|
108
|
+
}
|
109
|
+
export interface ReturnVisitConfigDTO {
|
110
|
+
execSuggestionArticleId: number | string;
|
111
|
+
execTimeConfig: ExecTimeConfig;
|
112
|
+
consumerReminderEnabled?: boolean;
|
113
|
+
consumerReminderTimeBeforeStart?: string;
|
114
|
+
consumerReminderTimeAfterStart?: string;
|
115
|
+
consumerNoticeAfterDone?: boolean;
|
116
|
+
}
|
117
|
+
export interface MetricMonitorConfigDTO {
|
118
|
+
plans: MetricMonitorPlan[];
|
119
|
+
others?: {
|
120
|
+
[key: string]: any;
|
121
|
+
};
|
122
|
+
}
|
123
|
+
export interface MetricMonitorPlan {
|
124
|
+
name: string;
|
125
|
+
targetMetrics: Metric[];
|
126
|
+
metricTemplateFormName: string;
|
127
|
+
metricTemplateFormId: string;
|
128
|
+
execTimeConfig: ExecTimeConfig;
|
129
|
+
formId: string;
|
130
|
+
formName: string;
|
131
|
+
}
|
132
|
+
export interface ExecTimeConfig {
|
133
|
+
execType: PlanExecType;
|
134
|
+
execFrequency: string;
|
135
|
+
execCount: number;
|
136
|
+
execDuration: string;
|
137
|
+
execTimePoints: string[];
|
138
|
+
}
|
139
|
+
export interface Metric {
|
140
|
+
name: string;
|
141
|
+
displayName: string;
|
142
|
+
tagId: string;
|
143
|
+
expectValue?: number | null;
|
144
|
+
expectScope?: string | null;
|
145
|
+
}
|
146
|
+
export interface AdviceConfigDTO {
|
147
|
+
adviceConfigArticleId: number;
|
148
|
+
}
|
149
|
+
export interface GuideArticle {
|
150
|
+
articleId: number;
|
151
|
+
articleTitle: string;
|
152
|
+
execTimePoint: string;
|
153
|
+
}
|
154
|
+
export interface NewsArticleTag {
|
155
|
+
tagId: number;
|
156
|
+
tagName: string;
|
157
|
+
}
|
158
|
+
export interface EducationConfigDTO {
|
159
|
+
manualArticleRootCategoryId: number | string;
|
160
|
+
manualArticleRootCategoryName?: string;
|
161
|
+
guideArticles: GuideArticle[];
|
162
|
+
newsArticleTags: NewsArticleTag[];
|
163
|
+
newsArticleExecTimeConfig: ExecTimeConfig;
|
164
|
+
}
|
165
|
+
/**
|
166
|
+
* 评估配置
|
167
|
+
*/
|
168
|
+
export interface AssessConfigDTO {
|
169
|
+
/**
|
170
|
+
* 评估任务名称
|
171
|
+
*/
|
172
|
+
name?: string;
|
173
|
+
/**
|
174
|
+
* 关联的评估表单ID
|
175
|
+
*/
|
176
|
+
formId?: number;
|
177
|
+
/**
|
178
|
+
* 关联的评估表单名称 注: 冗余字段
|
179
|
+
*/
|
180
|
+
formName?: string;
|
181
|
+
/**
|
182
|
+
* 关联的评估规则ID
|
183
|
+
*/
|
184
|
+
ruleId?: number;
|
185
|
+
/**
|
186
|
+
* 评估任务排序,可以按顺序给用户推送
|
187
|
+
*/
|
188
|
+
sort?: number;
|
189
|
+
/**
|
190
|
+
* 每次评估任务开始后的提醒时间,默认: 第7天 如: P7D(第七天), P2M(第2月), P1Y(年)
|
191
|
+
*/
|
192
|
+
consumerReminderTimeAfterStart?: string;
|
193
|
+
/**
|
194
|
+
* 评估任务的其他配置,比如:推送的消息模板
|
195
|
+
*/
|
196
|
+
others?: Record<string, any>;
|
197
|
+
}
|
198
|
+
/**
|
199
|
+
* 用户分组方案配置
|
200
|
+
*/
|
201
|
+
export interface GroupingConfigDTO {
|
202
|
+
/**
|
203
|
+
* 分组使用的规则ID
|
204
|
+
*/
|
205
|
+
ruleId?: number;
|
206
|
+
/**
|
207
|
+
* 分组信息
|
208
|
+
*/
|
209
|
+
groups?: Group[];
|
210
|
+
/**
|
211
|
+
* 其他配置
|
212
|
+
*/
|
213
|
+
others?: Record<string, any>;
|
214
|
+
}
|
215
|
+
/**
|
216
|
+
* 权益服务配置查询
|
217
|
+
*/
|
218
|
+
export interface RightServiceConfigQuery {
|
219
|
+
/**
|
220
|
+
* 权益服务配置ID
|
221
|
+
*/
|
222
|
+
id?: number | string;
|
223
|
+
/**
|
224
|
+
* 所属的权益ID
|
225
|
+
*/
|
226
|
+
rightId?: number | string;
|
227
|
+
/**
|
228
|
+
* 所属的权益Ids
|
229
|
+
*/
|
230
|
+
rightIds?: (number | string)[];
|
231
|
+
/**
|
232
|
+
* 关联的健管服务类型
|
233
|
+
*/
|
234
|
+
serviceType?: HealthServiceType;
|
235
|
+
}
|
236
|
+
/**
|
237
|
+
* 健康咨询类配置
|
238
|
+
*/
|
239
|
+
export interface HealthConsultConfigDTO extends RightServiceConfigDTO {
|
240
|
+
/**
|
241
|
+
* 咨询工具页面链接的类型,取值: localPage/wxMiniProgram/h5Page
|
242
|
+
*/
|
243
|
+
linkType?: string;
|
244
|
+
/**
|
245
|
+
* 咨询工具对应的页面地址
|
246
|
+
*/
|
247
|
+
linkUrl?: string;
|
248
|
+
/**
|
249
|
+
* 其他配置信息
|
250
|
+
*/
|
251
|
+
others?: Record<string, any>;
|
252
|
+
/**
|
253
|
+
* FastGPT AI智能体
|
254
|
+
*/
|
255
|
+
fastAgent?: FastAgent;
|
256
|
+
}
|
257
|
+
/**
|
258
|
+
* FastGPT AI智能体
|
259
|
+
*/
|
260
|
+
export interface FastAgent {
|
261
|
+
/**
|
262
|
+
* apiKey
|
263
|
+
*/
|
264
|
+
apiKey?: string;
|
265
|
+
/**
|
266
|
+
* 服务器地址
|
267
|
+
*/
|
268
|
+
serverAddress?: string;
|
269
|
+
/**
|
270
|
+
* appId
|
271
|
+
*/
|
272
|
+
appId?: string;
|
273
|
+
/**
|
274
|
+
* 会话时长(单位:分钟)
|
275
|
+
*/
|
276
|
+
sessionTime?: number;
|
277
|
+
/**
|
278
|
+
* 是否展示「引用文献」
|
279
|
+
*/
|
280
|
+
showReference?: boolean;
|
281
|
+
/**
|
282
|
+
* 是否展示「猜你想问」
|
283
|
+
*/
|
284
|
+
showGuess?: boolean;
|
285
|
+
/**
|
286
|
+
* 是否展示「推理过程」
|
287
|
+
*/
|
288
|
+
showInference?: boolean;
|
289
|
+
/**
|
290
|
+
* 历史记录展示条数
|
291
|
+
*/
|
292
|
+
historyCount?: number;
|
293
|
+
/**
|
294
|
+
* 提问字数
|
295
|
+
*/
|
296
|
+
questionCount?: number;
|
297
|
+
/**
|
298
|
+
* 是否支持「文件上传」
|
299
|
+
*/
|
300
|
+
supportFile?: boolean;
|
301
|
+
}
|