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.
Files changed (78) hide show
  1. package/README.md +74 -0
  2. package/dist/index.d.ts +5660 -0
  3. package/dist/index.esm.js +2954 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/index.js +3038 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/types/src/api/app-client-api.d.ts +12 -0
  8. package/dist/types/src/api/app-client-page-config-api.d.ts +5 -0
  9. package/dist/types/src/api/app-client-setting-api.d.ts +5 -0
  10. package/dist/types/src/api/common-dict-api.d.ts +40 -0
  11. package/dist/types/src/api/common-file-api.d.ts +5 -0
  12. package/dist/types/src/api/common-right-api.d.ts +60 -0
  13. package/dist/types/src/api/consumer-api.d.ts +39 -0
  14. package/dist/types/src/api/consumer-bind-api.d.ts +15 -0
  15. package/dist/types/src/api/consumer-device-api.d.ts +24 -0
  16. package/dist/types/src/api/consumer-favorite-api.d.ts +8 -0
  17. package/dist/types/src/api/device-api.d.ts +19 -0
  18. package/dist/types/src/api/device-user-api.d.ts +29 -0
  19. package/dist/types/src/api/disease-care-right-api.d.ts +22 -0
  20. package/dist/types/src/api/health-common-api.d.ts +15 -0
  21. package/dist/types/src/api/health-metric-api.d.ts +9 -0
  22. package/dist/types/src/api/health-profile-api.d.ts +8 -0
  23. package/dist/types/src/api/health-self-assess-api.d.ts +8 -0
  24. package/dist/types/src/api/health-study-right-api.d.ts +23 -0
  25. package/dist/types/src/api/health-tool-api.d.ts +14 -0
  26. package/dist/types/src/api/help-center.d.ts +4 -0
  27. package/dist/types/src/api/im-user-api.d.ts +7 -0
  28. package/dist/types/src/api/index.d.ts +32 -0
  29. package/dist/types/src/api/km-article-api.d.ts +9 -0
  30. package/dist/types/src/api/km-form-api.d.ts +10 -0
  31. package/dist/types/src/api/km-form-rule-relation-api.d.ts +6 -0
  32. package/dist/types/src/api/login-api.d.ts +18 -0
  33. package/dist/types/src/api/marketing-api.d.ts +16 -0
  34. package/dist/types/src/api/message-record-api.d.ts +7 -0
  35. package/dist/types/src/api/mine-api.d.ts +8 -0
  36. package/dist/types/src/api/right-qrcode-api.d.ts +9 -0
  37. package/dist/types/src/api/right-service-config-api.d.ts +18 -0
  38. package/dist/types/src/api/system-right-api.d.ts +17 -0
  39. package/dist/types/src/api/user-group-api.d.ts +11 -0
  40. package/dist/types/src/constants/km-const.d.ts +59 -0
  41. package/dist/types/src/constants/metric.d.ts +17 -0
  42. package/dist/types/src/constants/qiniuUploader.d.ts +49 -0
  43. package/dist/types/src/constants/shcp-common.d.ts +428 -0
  44. package/dist/types/src/index.d.ts +4 -0
  45. package/dist/types/src/shcp-api-sdk.d.ts +26 -0
  46. package/dist/types/src/type/model/app-client-model.d.ts +138 -0
  47. package/dist/types/src/type/model/app-client-setting-model.d.ts +46 -0
  48. package/dist/types/src/type/model/blade-system-model.d.ts +34 -0
  49. package/dist/types/src/type/model/common-dict-model.d.ts +100 -0
  50. package/dist/types/src/type/model/common-file-model.d.ts +10 -0
  51. package/dist/types/src/type/model/common-model.d.ts +9 -0
  52. package/dist/types/src/type/model/common-right-model.d.ts +929 -0
  53. package/dist/types/src/type/model/consumer-bind-model.d.ts +175 -0
  54. package/dist/types/src/type/model/consumer-device-model.d.ts +114 -0
  55. package/dist/types/src/type/model/consumer-favorite-model.d.ts +105 -0
  56. package/dist/types/src/type/model/consumer-model.d.ts +214 -0
  57. package/dist/types/src/type/model/device-model.d.ts +295 -0
  58. package/dist/types/src/type/model/device-user-model.d.ts +53 -0
  59. package/dist/types/src/type/model/health-care-config-model.d.ts +301 -0
  60. package/dist/types/src/type/model/health-metric-model.d.ts +181 -0
  61. package/dist/types/src/type/model/health-profile-model.d.ts +83 -0
  62. package/dist/types/src/type/model/health-self-assess-model.d.ts +35 -0
  63. package/dist/types/src/type/model/health-tool-model.d.ts +105 -0
  64. package/dist/types/src/type/model/im-user-model.d.ts +44 -0
  65. package/dist/types/src/type/model/index.d.ts +30 -0
  66. package/dist/types/src/type/model/km-article-model.d.ts +275 -0
  67. package/dist/types/src/type/model/km-form-model.d.ts +745 -0
  68. package/dist/types/src/type/model/km-form-rule-relation-model.d.ts +31 -0
  69. package/dist/types/src/type/model/login-model.d.ts +90 -0
  70. package/dist/types/src/type/model/marketing-model.d.ts +142 -0
  71. package/dist/types/src/type/model/message-record-model.d.ts +59 -0
  72. package/dist/types/src/type/model/mine-model.d.ts +100 -0
  73. package/dist/types/src/type/model/right-qrcode-model.d.ts +143 -0
  74. package/dist/types/src/type/model/right-service-config-model.d.ts +2 -0
  75. package/dist/types/src/type/model/system-right-model.d.ts +134 -0
  76. package/dist/types/src/type/model/user-group-model.d.ts +45 -0
  77. package/dist/types/src/type/net-types.d.ts +37 -0
  78. package/package.json +47 -0
package/dist/index.js ADDED
@@ -0,0 +1,3038 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * 华为手表指标类别
5
+ */
6
+ exports.HuaWeiWatchMetricCategory = void 0;
7
+ (function (HuaWeiWatchMetricCategory) {
8
+ HuaWeiWatchMetricCategory["BloodPressure"] = "bp";
9
+ HuaWeiWatchMetricCategory["BloodFat"] = "bf";
10
+ HuaWeiWatchMetricCategory["BloodSugar"] = "bs";
11
+ HuaWeiWatchMetricCategory["Sleep"] = "sleep_standard";
12
+ HuaWeiWatchMetricCategory["SPO2"] = "spo2";
13
+ HuaWeiWatchMetricCategory["HeartRate"] = "heart_rate";
14
+ HuaWeiWatchMetricCategory["BodyTemperature"] = "tw";
15
+ HuaWeiWatchMetricCategory["SportSingle"] = "sport_single";
16
+ HuaWeiWatchMetricCategory["Sport"] = "sport";
17
+ HuaWeiWatchMetricCategory["Stress"] = "stress";
18
+ HuaWeiWatchMetricCategory["Unknown"] = "unknown";
19
+ })(exports.HuaWeiWatchMetricCategory || (exports.HuaWeiWatchMetricCategory = {}));
20
+
21
+ exports.AggregateType = void 0;
22
+ (function (AggregateType) {
23
+ AggregateType[AggregateType["BY_COUNT"] = 1] = "BY_COUNT";
24
+ AggregateType[AggregateType["BY_DAY"] = 2] = "BY_DAY";
25
+ AggregateType[AggregateType["BY_HOUR"] = 3] = "BY_HOUR";
26
+ AggregateType[AggregateType["Unknown"] = 99] = "Unknown";
27
+ })(exports.AggregateType || (exports.AggregateType = {}));
28
+
29
+ exports.ErrCode = void 0;
30
+ (function (ErrCode) {
31
+ ErrCode[ErrCode["ERR_OK"] = 200] = "ERR_OK";
32
+ ErrCode[ErrCode["ERR_NETWORK_TIMEOUT"] = 1] = "ERR_NETWORK_TIMEOUT";
33
+ ErrCode[ErrCode["ERR_MEANINGLESS"] = -1] = "ERR_MEANINGLESS";
34
+ })(exports.ErrCode || (exports.ErrCode = {}));
35
+ exports.Status = void 0;
36
+ (function (Status) {
37
+ Status[Status["SUCCESS"] = 0] = "SUCCESS";
38
+ Status[Status["ERROR"] = 1] = "ERROR";
39
+ Status[Status["LOADING"] = 2] = "LOADING";
40
+ })(exports.Status || (exports.Status = {}));
41
+ class Resource {
42
+ constructor(status, code, data, msg) {
43
+ this.status = status;
44
+ this.data = data;
45
+ this.code = code;
46
+ this.msg = msg;
47
+ }
48
+ static success(data, msg) {
49
+ return new Resource(exports.Status.SUCCESS, Resource.getCode(data), data, msg || Resource.getMessage(msg));
50
+ }
51
+ static loading(data) {
52
+ return new Resource(exports.Status.LOADING, 0, data);
53
+ }
54
+ static error(errCode, data, message) {
55
+ return new Resource(exports.Status.ERROR, errCode, data, message || Resource.getMessage(data));
56
+ }
57
+ static getCode(data) {
58
+ let code = exports.ErrCode.ERR_OK;
59
+ if (data && data instanceof Object && 'code' in data) {
60
+ const temp = Number(data.code);
61
+ code = temp || code;
62
+ }
63
+ return code;
64
+ }
65
+ static getMessage(data) {
66
+ let message = '';
67
+ if (data && data instanceof Object && 'msg' in data) {
68
+ message = data.msg ? data.msg : message;
69
+ }
70
+ return message;
71
+ }
72
+ }
73
+ function checkResponse(response) {
74
+ return response && (Number(response?.code) === 0 || Number(response?.code) === 200);
75
+ }
76
+ function commonProccessResponse(data) {
77
+ if (checkResponse(data)) {
78
+ return Resource.success(data?.data, data?.msg);
79
+ }
80
+ else {
81
+ return Resource.error(data?.code ? data?.code : exports.ErrCode.ERR_MEANINGLESS, null, data?.msg);
82
+ }
83
+ }
84
+
85
+ var MetricScopeValueType;
86
+ (function (MetricScopeValueType) {
87
+ MetricScopeValueType[MetricScopeValueType["GreaterThan"] = 1] = "GreaterThan";
88
+ MetricScopeValueType[MetricScopeValueType["LessThan"] = 2] = "LessThan";
89
+ MetricScopeValueType[MetricScopeValueType["GreaterThanOrEqual"] = 3] = "GreaterThanOrEqual";
90
+ MetricScopeValueType[MetricScopeValueType["LessThanOrEqual"] = 4] = "LessThanOrEqual";
91
+ })(MetricScopeValueType || (MetricScopeValueType = {}));
92
+ [
93
+ { value: MetricScopeValueType.GreaterThan, label: '大于' },
94
+ { value: MetricScopeValueType.LessThan, label: '小于' },
95
+ { value: MetricScopeValueType.GreaterThanOrEqual, label: '大于等于' },
96
+ { value: MetricScopeValueType.LessThanOrEqual, label: '小于等于' },
97
+ ];
98
+ const REG = /^([\[\(])\s*(-?∞|-?\d+(\.\d+)?)\s*,\s*(-?∞|-?\d+(\.\d+)?)\s*([\]\)])$/;
99
+ function formatMathInterval(interval, placehold = '正常值', append = 'mmHg') {
100
+ // 移除空格
101
+ interval = interval.trim();
102
+ // 提取边界符和数值
103
+ const match = interval.match(REG);
104
+ if (!match) {
105
+ throw new Error('输入格式不正确');
106
+ }
107
+ const [, leftBracket, lower, _, upper, __, rightBracket] = match;
108
+ let lowerPart = '';
109
+ let upperPart = '';
110
+ // 根据左括号确定下界表达式
111
+ if (lower !== '-∞') {
112
+ lowerPart = lower + append + (leftBracket === '[' ? `≤${placehold}` : `<${placehold}`);
113
+ }
114
+ // 根据右括号确定上界表达式
115
+ if (upper !== '∞') {
116
+ upperPart = (rightBracket === ']' ? '≤' : '<') + upper + append;
117
+ }
118
+ // 如果有上下界,拼接完整表达式;否则只显示单边
119
+ if (lowerPart && upperPart) {
120
+ return `${lowerPart}${upperPart}`;
121
+ }
122
+ else if (lowerPart) {
123
+ return lowerPart;
124
+ }
125
+ else if (upperPart) {
126
+ return `${placehold}${upperPart}`;
127
+ }
128
+ throw new Error('无效区间');
129
+ }
130
+
131
+ exports.ShcpUserType = void 0;
132
+ (function (ShcpUserType) {
133
+ ShcpUserType[ShcpUserType["Consumer"] = 1] = "Consumer";
134
+ ShcpUserType[ShcpUserType["DeviceUser"] = 2] = "DeviceUser";
135
+ ShcpUserType[ShcpUserType["TenantUser"] = 3] = "TenantUser";
136
+ ShcpUserType[ShcpUserType["System"] = 4] = "System";
137
+ ShcpUserType[ShcpUserType["Unknown"] = 99] = "Unknown";
138
+ })(exports.ShcpUserType || (exports.ShcpUserType = {}));
139
+ exports.Gender = void 0;
140
+ (function (Gender) {
141
+ Gender[Gender["Male"] = 1] = "Male";
142
+ Gender[Gender["Female"] = 2] = "Female";
143
+ Gender[Gender["unknown"] = 99] = "unknown";
144
+ })(exports.Gender || (exports.Gender = {}));
145
+ const GenderOptions = [
146
+ { value: exports.Gender.Male, label: '男' },
147
+ { value: exports.Gender.Female, label: '女' },
148
+ { value: exports.Gender.unknown, label: '未知' },
149
+ ];
150
+ exports.MemberListType = void 0;
151
+ (function (MemberListType) {
152
+ MemberListType[MemberListType["Doctor"] = 1] = "Doctor";
153
+ MemberListType[MemberListType["Patient"] = 2] = "Patient";
154
+ })(exports.MemberListType || (exports.MemberListType = {}));
155
+ const MemberListTypeMap = {
156
+ [exports.MemberListType.Doctor]: { label: '医生管理组' },
157
+ [exports.MemberListType.Patient]: { label: '用户群' },
158
+ };
159
+ exports.MetricValueType = void 0;
160
+ (function (MetricValueType) {
161
+ MetricValueType[MetricValueType["Exact"] = 1] = "Exact";
162
+ MetricValueType[MetricValueType["Scope"] = 2] = "Scope";
163
+ })(exports.MetricValueType || (exports.MetricValueType = {}));
164
+ const MetricValueTypeOptions = [
165
+ { value: exports.MetricValueType.Exact, label: '值' },
166
+ { value: exports.MetricValueType.Scope, label: '范围值' },
167
+ ];
168
+ function formatMetricData(metric) {
169
+ if (metric.expectScope) {
170
+ try {
171
+ return formatMathInterval(metric.expectScope, '正常值', metric.displayName);
172
+ }
173
+ catch (e) { }
174
+ }
175
+ if (metric.expectValue) {
176
+ return `正常值为${metric.expectValue}${metric.displayName}`;
177
+ }
178
+ }
179
+ /**
180
+ * 权益类型枚举
181
+ */
182
+ exports.RightType = void 0;
183
+ (function (RightType) {
184
+ RightType[RightType["Dynamic"] = 1] = "Dynamic";
185
+ RightType[RightType["Static"] = 2] = "Static";
186
+ RightType[RightType["Unknown"] = 99] = "Unknown";
187
+ })(exports.RightType || (exports.RightType = {}));
188
+ /**
189
+ * 健管服务类型枚举
190
+ */
191
+ exports.HealthServiceType = void 0;
192
+ (function (HealthServiceType) {
193
+ HealthServiceType[HealthServiceType["DiseaseCare"] = 1] = "DiseaseCare";
194
+ HealthServiceType[HealthServiceType["HealthStudy"] = 2] = "HealthStudy";
195
+ HealthServiceType[HealthServiceType["HealthProfile"] = 3] = "HealthProfile";
196
+ HealthServiceType[HealthServiceType["HealthAnalysis"] = 4] = "HealthAnalysis";
197
+ HealthServiceType[HealthServiceType["HealthJournal"] = 5] = "HealthJournal";
198
+ HealthServiceType[HealthServiceType["HealthConsult"] = 6] = "HealthConsult";
199
+ HealthServiceType[HealthServiceType["HealthScreening"] = 7] = "HealthScreening";
200
+ HealthServiceType[HealthServiceType["HealthSelfAssess"] = 8] = "HealthSelfAssess";
201
+ HealthServiceType[HealthServiceType["HealthTool"] = 9] = "HealthTool";
202
+ HealthServiceType[HealthServiceType["HealthGreenChannel"] = 10] = "HealthGreenChannel";
203
+ HealthServiceType[HealthServiceType["Health3rdParty"] = 11] = "Health3rdParty";
204
+ HealthServiceType[HealthServiceType["Unknown"] = 99] = "Unknown";
205
+ })(exports.HealthServiceType || (exports.HealthServiceType = {}));
206
+ const HealthServiceTypeOptions = [
207
+ { value: exports.HealthServiceType.DiseaseCare, label: '疾病管理服务' },
208
+ { value: exports.HealthServiceType.HealthStudy, label: '课题研究服务' },
209
+ { value: exports.HealthServiceType.HealthProfile, label: '健康档案服务' },
210
+ { value: exports.HealthServiceType.HealthAnalysis, label: '健康分析服务' },
211
+ { value: exports.HealthServiceType.HealthJournal, label: '健康期刊服务' },
212
+ { value: exports.HealthServiceType.HealthConsult, label: '健康咨询服务' },
213
+ { value: exports.HealthServiceType.HealthScreening, label: '健康筛查服务' },
214
+ { value: exports.HealthServiceType.HealthSelfAssess, label: '健康自测服务' },
215
+ { value: exports.HealthServiceType.HealthTool, label: '健康工具服务' },
216
+ { value: exports.HealthServiceType.HealthGreenChannel, label: '健康绿通服务' },
217
+ { value: exports.HealthServiceType.Health3rdParty, label: '三方集成服务' },
218
+ { value: exports.HealthServiceType.Unknown, label: '未知服务' },
219
+ ];
220
+ exports.AppPlatformType = void 0;
221
+ (function (AppPlatformType) {
222
+ AppPlatformType[AppPlatformType["Android"] = 1] = "Android";
223
+ AppPlatformType[AppPlatformType["IOS"] = 2] = "IOS";
224
+ AppPlatformType[AppPlatformType["Weixin"] = 3] = "Weixin";
225
+ AppPlatformType[AppPlatformType["Alipay"] = 4] = "Alipay";
226
+ AppPlatformType[AppPlatformType["H5"] = 5] = "H5";
227
+ AppPlatformType[AppPlatformType["Harmony"] = 6] = "Harmony";
228
+ AppPlatformType[AppPlatformType["Unknown"] = 9] = "Unknown";
229
+ })(exports.AppPlatformType || (exports.AppPlatformType = {}));
230
+ const ShcpUserTypeOptions = [
231
+ { value: exports.ShcpUserType.Consumer, label: 'C端消费用户' },
232
+ { value: exports.ShcpUserType.DeviceUser, label: 'C端设备用户' },
233
+ { value: exports.ShcpUserType.TenantUser, label: '租户端用户' },
234
+ { value: exports.ShcpUserType.System, label: '系统' },
235
+ { value: exports.ShcpUserType.Unknown, label: '未知' },
236
+ ];
237
+ exports.ConsumerMarkType = void 0;
238
+ (function (ConsumerMarkType) {
239
+ ConsumerMarkType[ConsumerMarkType["Lost"] = 1] = "Lost";
240
+ ConsumerMarkType[ConsumerMarkType["Exit"] = 2] = "Exit";
241
+ ConsumerMarkType[ConsumerMarkType["Reject"] = 3] = "Reject";
242
+ ConsumerMarkType[ConsumerMarkType["Deceased"] = 4] = "Deceased";
243
+ ConsumerMarkType[ConsumerMarkType["Other"] = 5] = "Other";
244
+ ConsumerMarkType[ConsumerMarkType["Unknown"] = 99] = "Unknown";
245
+ })(exports.ConsumerMarkType || (exports.ConsumerMarkType = {}));
246
+ const ConsumerMarkTypeOptions = [
247
+ { value: exports.ConsumerMarkType.Lost, label: '失去联系' },
248
+ { value: exports.ConsumerMarkType.Exit, label: '退出管理' },
249
+ { value: exports.ConsumerMarkType.Reject, label: '拒绝配合' },
250
+ { value: exports.ConsumerMarkType.Deceased, label: '已死亡' },
251
+ { value: exports.ConsumerMarkType.Other, label: '其他' },
252
+ { value: exports.ConsumerMarkType.Unknown, label: '未知' },
253
+ ];
254
+ exports.MessageChannelType = void 0;
255
+ (function (MessageChannelType) {
256
+ MessageChannelType[MessageChannelType["SMS"] = 1] = "SMS";
257
+ MessageChannelType[MessageChannelType["CONSUMER_APP_CARD"] = 2] = "CONSUMER_APP_CARD";
258
+ MessageChannelType[MessageChannelType["TENANT_APP_CARD"] = 3] = "TENANT_APP_CARD";
259
+ MessageChannelType[MessageChannelType["CONSUMER_APP_NOTICE"] = 4] = "CONSUMER_APP_NOTICE";
260
+ MessageChannelType[MessageChannelType["TENANT_APP_NOTICE"] = 5] = "TENANT_APP_NOTICE";
261
+ MessageChannelType[MessageChannelType["TENANT_WEB_NOTICE"] = 6] = "TENANT_WEB_NOTICE";
262
+ MessageChannelType[MessageChannelType["WECHAT"] = 7] = "WECHAT";
263
+ MessageChannelType[MessageChannelType["DING_TALK"] = 8] = "DING_TALK";
264
+ MessageChannelType[MessageChannelType["EMAIL"] = 9] = "EMAIL";
265
+ MessageChannelType[MessageChannelType["Unknown"] = 99] = "Unknown";
266
+ })(exports.MessageChannelType || (exports.MessageChannelType = {}));
267
+ const MessageChannelTypeOptions = [
268
+ { value: exports.MessageChannelType.SMS, label: '短信消息' },
269
+ { value: exports.MessageChannelType.CONSUMER_APP_CARD, label: 'C端APP卡片消息' },
270
+ { value: exports.MessageChannelType.TENANT_APP_CARD, label: '租户端APP卡片消息' },
271
+ { value: exports.MessageChannelType.CONSUMER_APP_NOTICE, label: 'C端APP站内信' },
272
+ { value: exports.MessageChannelType.TENANT_APP_NOTICE, label: '租户APP站内信' },
273
+ { value: exports.MessageChannelType.TENANT_WEB_NOTICE, label: '租户Web端站内信' },
274
+ { value: exports.MessageChannelType.WECHAT, label: '微信消息' },
275
+ { value: exports.MessageChannelType.DING_TALK, label: '钉钉消息' },
276
+ { value: exports.MessageChannelType.EMAIL, label: '邮件' },
277
+ { value: exports.MessageChannelType.Unknown, label: '未知' },
278
+ ];
279
+ exports.ServiceFlowStatus = void 0;
280
+ (function (ServiceFlowStatus) {
281
+ ServiceFlowStatus[ServiceFlowStatus["New"] = 1] = "New";
282
+ ServiceFlowStatus[ServiceFlowStatus["Started"] = 2] = "Started";
283
+ ServiceFlowStatus[ServiceFlowStatus["Running"] = 4] = "Running";
284
+ ServiceFlowStatus[ServiceFlowStatus["Success"] = 10] = "Success";
285
+ ServiceFlowStatus[ServiceFlowStatus["Cancelled"] = 11] = "Cancelled";
286
+ ServiceFlowStatus[ServiceFlowStatus["Terminated"] = 12] = "Terminated";
287
+ ServiceFlowStatus[ServiceFlowStatus["Failed"] = 13] = "Failed";
288
+ ServiceFlowStatus[ServiceFlowStatus["Unknown"] = 99] = "Unknown";
289
+ })(exports.ServiceFlowStatus || (exports.ServiceFlowStatus = {}));
290
+ const DiseaseCareServiceFlowStatusOptions = [
291
+ {
292
+ value: exports.ServiceFlowStatus.New,
293
+ label: '待推送',
294
+ },
295
+ {
296
+ value: exports.ServiceFlowStatus.Started,
297
+ label: '疾病待评估',
298
+ },
299
+ {
300
+ value: exports.ServiceFlowStatus.Running,
301
+ label: '方案执行中',
302
+ },
303
+ {
304
+ value: exports.ServiceFlowStatus.Success,
305
+ label: '方案已完成',
306
+ },
307
+ // {
308
+ // value: ServiceFlowStatus.Cancelled,
309
+ // label: "已取消",
310
+ // },
311
+ {
312
+ value: exports.ServiceFlowStatus.Terminated,
313
+ label: '方案已终止',
314
+ },
315
+ {
316
+ value: exports.ServiceFlowStatus.Failed,
317
+ label: '执行失败',
318
+ },
319
+ {
320
+ value: exports.ServiceFlowStatus.Unknown,
321
+ label: '未知',
322
+ },
323
+ ];
324
+ const HealthStudyServiceFlowStatusOptions = [
325
+ // {
326
+ // value: ServiceFlowStatus.New,
327
+ // label: "新建",
328
+ // },
329
+ {
330
+ value: exports.ServiceFlowStatus.Started,
331
+ label: '待分组',
332
+ },
333
+ {
334
+ value: exports.ServiceFlowStatus.Running,
335
+ label: '方案执行中',
336
+ },
337
+ {
338
+ value: exports.ServiceFlowStatus.Success,
339
+ label: '课题已完成',
340
+ },
341
+ // {
342
+ // value: ServiceFlowStatus.Cancelled,
343
+ // label: "已取消",
344
+ // },
345
+ {
346
+ value: exports.ServiceFlowStatus.Terminated,
347
+ label: '课题已终止',
348
+ },
349
+ {
350
+ value: exports.ServiceFlowStatus.Failed,
351
+ label: '执行失败',
352
+ },
353
+ {
354
+ value: exports.ServiceFlowStatus.Unknown,
355
+ label: '未知',
356
+ },
357
+ ];
358
+ /**
359
+ * DiseaseCare相关的任务种类
360
+ */
361
+ exports.ServiceTaskCategory = void 0;
362
+ (function (ServiceTaskCategory) {
363
+ // DiseaseCare相关的任务种类
364
+ ServiceTaskCategory["DiseaseCareAssessTask"] = "DiseaseCare.AssessTask";
365
+ ServiceTaskCategory["DiseaseCareGroupingTask"] = "DiseaseCare.GroupingTask";
366
+ ServiceTaskCategory["DiseaseCareFollowUpTask"] = "DiseaseCare.FollowUpTask";
367
+ ServiceTaskCategory["DiseaseCareFollowUpAdverseEventTask"] = "DiseaseCare.AdverseEventTask";
368
+ ServiceTaskCategory["DiseaseCareReturnVisitTask"] = "DiseaseCare.ReturnVisitTask";
369
+ ServiceTaskCategory["DiseaseCareEducationGuideTask"] = "DiseaseCare.EducationGuideTask";
370
+ ServiceTaskCategory["DiseaseCareEducationNewsTask"] = "DiseaseCare.EducationNewsTask";
371
+ ServiceTaskCategory["DiseaseCareMetricMonitorTask"] = "DiseaseCare.MetricMonitorTask";
372
+ // HealthStudy相关的任务种类
373
+ ServiceTaskCategory["HealthStudyGroupingTask"] = "HealthStudy.GroupingTask";
374
+ ServiceTaskCategory["HealthStudyFollowUpBaseTask"] = "HealthStudy.FollowUpBaseTask";
375
+ ServiceTaskCategory["HealthStudyFollowUpCRFTask"] = "HealthStudy.FollowUpCRFTask";
376
+ ServiceTaskCategory["HealthStudyReturnVisitTask"] = "HealthStudy.ReturnVisitTask";
377
+ ServiceTaskCategory["HealthStudyEducationGuideTask"] = "HealthStudy.EducationGuideTask";
378
+ ServiceTaskCategory["HealthStudyEducationNewsTask"] = "HealthStudy.EducationNewsTask";
379
+ ServiceTaskCategory["HealthStudyMetricMonitorTask"] = "HealthStudy.MetricMonitorTask";
380
+ ServiceTaskCategory["HealthStudyFollowUpAdverseEventTask"] = "HealthStudy.AdverseEventTask";
381
+ ServiceTaskCategory["HealthStudyFollowUpUnscheduledTask"] = "HealthStudy.UnscheduledTask";
382
+ ServiceTaskCategory["HealthStudyFollowUpEndOfStudyTask"] = "HealthStudy.EndOfStudyTask";
383
+ ServiceTaskCategory["HealthStudyFollowUpTerminationOutcomeTask"] = "HealthStudy.TerminationOutcomeTask";
384
+ // HealthSelfAssess相关的任务种类
385
+ ServiceTaskCategory["HealthSelfAssessmentTask"] = "HealthSelfAssessment.AssessmentTask";
386
+ // HealthTool 相关的任务种类
387
+ ServiceTaskCategory["HealthToolTask"] = "HealthTool.ToolTask";
388
+ // HealthProfile相关的任务种类
389
+ ServiceTaskCategory["HealthProfileDiaryTask"] = "HealthProfile.DiaryTask";
390
+ ServiceTaskCategory["HealthProfileBaseProfileTask"] = "HealthProfile.BaseProfileTask";
391
+ ServiceTaskCategory["HealthProfileReportPhysicalExamTask"] = "HealthProfile.ReportPhysicalExamTask";
392
+ ServiceTaskCategory["HealthProfileReportOutpatientTask"] = "HealthProfile.ReportOutpatientTask";
393
+ ServiceTaskCategory["HealthProfileReportInpatientTask"] = "HealthProfile.ReportInpatientTask";
394
+ ServiceTaskCategory["HealthProfileReportLabTask"] = "HealthProfile.ReportLabTask";
395
+ ServiceTaskCategory["DiseaseCareAdverseEventTask"] = "DiseaseCare.AdverseEventTask";
396
+ ServiceTaskCategory["HealthConsultChatTask"] = "HealthConsult.ChatTask";
397
+ // HealthDevice相关的任务种类
398
+ ServiceTaskCategory["HealthDeviceHuaWeiWatchDataQueryTask"] = "HealthDevice.HuaWeiWatchDataQueryTask";
399
+ // HealthProfile相关的任务种类
400
+ ServiceTaskCategory["Unknown"] = "UNKNOWN";
401
+ })(exports.ServiceTaskCategory || (exports.ServiceTaskCategory = {}));
402
+ exports.ServiceTaskStatus = void 0;
403
+ (function (ServiceTaskStatus) {
404
+ ServiceTaskStatus[ServiceTaskStatus["New"] = 1] = "New";
405
+ ServiceTaskStatus[ServiceTaskStatus["Pushed"] = 2] = "Pushed";
406
+ ServiceTaskStatus[ServiceTaskStatus["Expired"] = 3] = "Expired";
407
+ ServiceTaskStatus[ServiceTaskStatus["Success"] = 10] = "Success";
408
+ ServiceTaskStatus[ServiceTaskStatus["Cancelled"] = 11] = "Cancelled";
409
+ ServiceTaskStatus[ServiceTaskStatus["Terminated"] = 12] = "Terminated";
410
+ ServiceTaskStatus[ServiceTaskStatus["Failed"] = 13] = "Failed";
411
+ ServiceTaskStatus[ServiceTaskStatus["Unknown"] = 99] = "Unknown";
412
+ })(exports.ServiceTaskStatus || (exports.ServiceTaskStatus = {}));
413
+ const ServiceTaskStatusOptions = [
414
+ {
415
+ value: exports.ServiceTaskStatus.New,
416
+ label: '待推送',
417
+ },
418
+ {
419
+ value: exports.ServiceTaskStatus.Pushed,
420
+ label: '待执行',
421
+ },
422
+ {
423
+ value: exports.ServiceTaskStatus.Expired,
424
+ label: '已过期',
425
+ },
426
+ {
427
+ value: exports.ServiceTaskStatus.Success,
428
+ label: '已完成',
429
+ },
430
+ {
431
+ value: exports.ServiceTaskStatus.Cancelled,
432
+ label: '已忽略',
433
+ },
434
+ {
435
+ value: exports.ServiceTaskStatus.Terminated,
436
+ label: '已终止',
437
+ },
438
+ {
439
+ value: exports.ServiceTaskStatus.Failed,
440
+ label: '已失败',
441
+ },
442
+ {
443
+ value: exports.ServiceTaskStatus.Unknown,
444
+ label: '未知',
445
+ },
446
+ ];
447
+ const InterviewServiceTaskStatusOptions = [
448
+ {
449
+ value: exports.ServiceTaskStatus.New,
450
+ label: '待推送',
451
+ },
452
+ {
453
+ value: exports.ServiceTaskStatus.Pushed,
454
+ label: '待复诊',
455
+ },
456
+ {
457
+ value: exports.ServiceTaskStatus.Expired,
458
+ label: '已过期',
459
+ },
460
+ {
461
+ value: exports.ServiceTaskStatus.Success,
462
+ label: '已复诊',
463
+ },
464
+ {
465
+ value: exports.ServiceTaskStatus.Cancelled,
466
+ label: '已忽略',
467
+ },
468
+ {
469
+ value: exports.ServiceTaskStatus.Terminated,
470
+ label: '已终止',
471
+ },
472
+ {
473
+ value: exports.ServiceTaskStatus.Failed,
474
+ label: '已失败',
475
+ },
476
+ {
477
+ value: exports.ServiceTaskStatus.Unknown,
478
+ label: '未知',
479
+ },
480
+ ];
481
+ exports.MarketingTaskStatus = void 0;
482
+ (function (MarketingTaskStatus) {
483
+ MarketingTaskStatus[MarketingTaskStatus["Pending"] = 1] = "Pending";
484
+ MarketingTaskStatus[MarketingTaskStatus["Executing"] = 2] = "Executing";
485
+ MarketingTaskStatus[MarketingTaskStatus["Executed"] = 3] = "Executed";
486
+ MarketingTaskStatus[MarketingTaskStatus["Paused"] = 4] = "Paused";
487
+ MarketingTaskStatus[MarketingTaskStatus["Failed"] = 5] = "Failed";
488
+ MarketingTaskStatus[MarketingTaskStatus["Success"] = 6] = "Success";
489
+ MarketingTaskStatus[MarketingTaskStatus["Stopped"] = 7] = "Stopped";
490
+ MarketingTaskStatus[MarketingTaskStatus["Unknown"] = 99] = "Unknown";
491
+ })(exports.MarketingTaskStatus || (exports.MarketingTaskStatus = {}));
492
+ const MarketingTaskStatusOptions = [
493
+ { value: exports.MarketingTaskStatus.Pending, label: '待审核' },
494
+ { value: exports.MarketingTaskStatus.Executing, label: '待执行' },
495
+ { value: exports.MarketingTaskStatus.Executed, label: '执行中' },
496
+ { value: exports.MarketingTaskStatus.Paused, label: '暂停中' },
497
+ { value: exports.MarketingTaskStatus.Failed, label: '执行失败' },
498
+ { value: exports.MarketingTaskStatus.Success, label: '执行成功' },
499
+ { value: exports.MarketingTaskStatus.Stopped, label: '手动终止' },
500
+ { value: exports.MarketingTaskStatus.Unknown, label: '未知' },
501
+ ];
502
+ exports.MarketingTaskLogStatus = void 0;
503
+ (function (MarketingTaskLogStatus) {
504
+ MarketingTaskLogStatus[MarketingTaskLogStatus["Success"] = 1] = "Success";
505
+ MarketingTaskLogStatus[MarketingTaskLogStatus["Failed"] = 2] = "Failed";
506
+ MarketingTaskLogStatus[MarketingTaskLogStatus["Unknown"] = 3] = "Unknown";
507
+ })(exports.MarketingTaskLogStatus || (exports.MarketingTaskLogStatus = {}));
508
+ const MarketingTaskLogStatusOptions = [
509
+ { value: exports.MarketingTaskLogStatus.Success, label: '成功' },
510
+ { value: exports.MarketingTaskLogStatus.Failed, label: '失败' },
511
+ { value: exports.MarketingTaskLogStatus.Unknown, label: '未知' },
512
+ ];
513
+ exports.MessageStyle = void 0;
514
+ (function (MessageStyle) {
515
+ MessageStyle[MessageStyle["SportYellow"] = 1] = "SportYellow";
516
+ MessageStyle[MessageStyle["DietBlue"] = 2] = "DietBlue";
517
+ MessageStyle[MessageStyle["FormPurple"] = 3] = "FormPurple";
518
+ MessageStyle[MessageStyle["NoticeBlue"] = 4] = "NoticeBlue";
519
+ MessageStyle[MessageStyle["WarnRed"] = 5] = "WarnRed";
520
+ MessageStyle[MessageStyle["MedicationGreen"] = 6] = "MedicationGreen";
521
+ MessageStyle[MessageStyle["ArticleBlue"] = 7] = "ArticleBlue";
522
+ MessageStyle[MessageStyle["Unknown"] = 99] = "Unknown";
523
+ })(exports.MessageStyle || (exports.MessageStyle = {}));
524
+ const MessageStyleOptions = [
525
+ { value: exports.MessageStyle.SportYellow, label: '运动黄', icon: 'https://qiniu.gxxsh.cn/card-yd.png' },
526
+ { value: exports.MessageStyle.DietBlue, label: '饮食蓝', icon: 'https://qiniu.gxxsh.cn/card-ys.png' },
527
+ { value: exports.MessageStyle.FormPurple, label: '量表紫', icon: 'https://qiniu.gxxsh.cn/card-pg.png' },
528
+ { value: exports.MessageStyle.NoticeBlue, label: '通知蓝', icon: 'https://qiniu.gxxsh.cn/card-tz.png' },
529
+ { value: exports.MessageStyle.WarnRed, label: '预警红', icon: 'https://qiniu.gxxsh.cn/card-yj.png' },
530
+ {
531
+ value: exports.MessageStyle.MedicationGreen,
532
+ label: '用药绿',
533
+ icon: 'https://qiniu.gxxsh.cn/card-yy.png',
534
+ },
535
+ { value: exports.MessageStyle.ArticleBlue, label: '文章蓝' },
536
+ { value: exports.MessageStyle.Unknown, label: '未知' },
537
+ ];
538
+ exports.MessageBizCategory = void 0;
539
+ (function (MessageBizCategory) {
540
+ MessageBizCategory[MessageBizCategory["HealthTask"] = 1] = "HealthTask";
541
+ MessageBizCategory[MessageBizCategory["HealthWarn"] = 2] = "HealthWarn";
542
+ MessageBizCategory[MessageBizCategory["HealthDailyLearning"] = 3] = "HealthDailyLearning";
543
+ MessageBizCategory[MessageBizCategory["HealthRecommend"] = 4] = "HealthRecommend";
544
+ MessageBizCategory[MessageBizCategory["HealthTaskExpire"] = 5] = "HealthTaskExpire";
545
+ MessageBizCategory[MessageBizCategory["SystemNotice"] = 6] = "SystemNotice";
546
+ MessageBizCategory[MessageBizCategory["TeamNotice"] = 7] = "TeamNotice";
547
+ MessageBizCategory[MessageBizCategory["Unknown"] = 99] = "Unknown";
548
+ })(exports.MessageBizCategory || (exports.MessageBizCategory = {}));
549
+ const MessageBizCategoryOptions = [
550
+ { value: exports.MessageBizCategory.HealthTask, label: '健康闹钟' },
551
+ { value: exports.MessageBizCategory.HealthWarn, label: '健康预警' },
552
+ { value: exports.MessageBizCategory.HealthDailyLearning, label: '每天学健康' },
553
+ { value: exports.MessageBizCategory.HealthRecommend, label: '健康优品推荐' },
554
+ { value: exports.MessageBizCategory.HealthTaskExpire, label: '任务过期提醒' },
555
+ { value: exports.MessageBizCategory.SystemNotice, label: '系统通知' },
556
+ { value: exports.MessageBizCategory.TeamNotice, label: '团队通知' },
557
+ { value: exports.MessageBizCategory.Unknown, label: '未知' },
558
+ ];
559
+ exports.MessageActionLabel = void 0;
560
+ (function (MessageActionLabel) {
561
+ MessageActionLabel[MessageActionLabel["FILL_IN"] = 1] = "FILL_IN";
562
+ MessageActionLabel[MessageActionLabel["CHECK_IN"] = 2] = "CHECK_IN";
563
+ MessageActionLabel[MessageActionLabel["CHECK_OUT"] = 3] = "CHECK_OUT";
564
+ MessageActionLabel[MessageActionLabel["CHECK_ASSESSMENT"] = 4] = "CHECK_ASSESSMENT";
565
+ MessageActionLabel[MessageActionLabel["Unknown"] = 99] = "Unknown";
566
+ })(exports.MessageActionLabel || (exports.MessageActionLabel = {}));
567
+ const MessageActionLabelOptions = [
568
+ { value: exports.MessageActionLabel.FILL_IN, label: '去采集' },
569
+ { value: exports.MessageActionLabel.CHECK_IN, label: '去打卡' },
570
+ { value: exports.MessageActionLabel.CHECK_OUT, label: '去查看' },
571
+ { value: exports.MessageActionLabel.CHECK_ASSESSMENT, label: '去评估' },
572
+ { value: exports.MessageActionLabel.Unknown, label: '未知' },
573
+ ];
574
+ exports.ConsumerRightStatus = void 0;
575
+ (function (ConsumerRightStatus) {
576
+ ConsumerRightStatus[ConsumerRightStatus["Valid"] = 1] = "Valid";
577
+ ConsumerRightStatus[ConsumerRightStatus["Frozen"] = 2] = "Frozen";
578
+ ConsumerRightStatus[ConsumerRightStatus["Expired"] = 3] = "Expired";
579
+ ConsumerRightStatus[ConsumerRightStatus["Unknown"] = 99] = "Unknown";
580
+ })(exports.ConsumerRightStatus || (exports.ConsumerRightStatus = {}));
581
+ const ConsumerRightStatusOptions = [
582
+ { value: exports.ConsumerRightStatus.Valid, label: '有效' },
583
+ { value: exports.ConsumerRightStatus.Frozen, label: '冻结' },
584
+ { value: exports.ConsumerRightStatus.Expired, label: '过期' },
585
+ { value: exports.ConsumerRightStatus.Unknown, label: '未知' },
586
+ ];
587
+ /**
588
+ * 应用分类
589
+ */
590
+ exports.AppCategory = void 0;
591
+ (function (AppCategory) {
592
+ AppCategory[AppCategory["ActivityNotice"] = 1] = "ActivityNotice";
593
+ AppCategory[AppCategory["HealthScreening"] = 2] = "HealthScreening";
594
+ AppCategory[AppCategory["HealthJournal"] = 3] = "HealthJournal";
595
+ AppCategory[AppCategory["ServiceRecommend"] = 4] = "ServiceRecommend";
596
+ AppCategory[AppCategory["Unknown"] = 99] = "Unknown";
597
+ })(exports.AppCategory || (exports.AppCategory = {}));
598
+ const AppCategoryOptions = [
599
+ { value: exports.AppCategory.ActivityNotice, label: '活动通知' },
600
+ { value: exports.AppCategory.HealthScreening, label: '筛查' },
601
+ { value: exports.AppCategory.HealthJournal, label: '期刊' },
602
+ { value: exports.AppCategory.ServiceRecommend, label: '服务推荐' },
603
+ // { value: AppCategory.Unknown, label: "未知" },
604
+ ];
605
+ /**
606
+ * 发送方式
607
+ */
608
+ exports.DeliveryMethod = void 0;
609
+ (function (DeliveryMethod) {
610
+ DeliveryMethod[DeliveryMethod["SMS"] = 1] = "SMS";
611
+ DeliveryMethod[DeliveryMethod["MiniProgramCard"] = 2] = "MiniProgramCard";
612
+ DeliveryMethod[DeliveryMethod["Unknown"] = 99] = "Unknown";
613
+ })(exports.DeliveryMethod || (exports.DeliveryMethod = {}));
614
+ const DeliveryMethodOptions = [
615
+ { value: exports.DeliveryMethod.SMS, label: '短信' },
616
+ { value: exports.DeliveryMethod.MiniProgramCard, label: '小程序卡片' },
617
+ // { value: DeliveryMethod.Unknown, label: "未知" },
618
+ ];
619
+ exports.PlanExecMethod = void 0;
620
+ (function (PlanExecMethod) {
621
+ PlanExecMethod[PlanExecMethod["FaceToFace"] = 1] = "FaceToFace";
622
+ PlanExecMethod[PlanExecMethod["Phone"] = 2] = "Phone";
623
+ PlanExecMethod[PlanExecMethod["ConsumerClient"] = 3] = "ConsumerClient";
624
+ })(exports.PlanExecMethod || (exports.PlanExecMethod = {}));
625
+ const PlanExecMethodOptions = [
626
+ { value: exports.PlanExecMethod.ConsumerClient, label: '随访卡片' },
627
+ { value: exports.PlanExecMethod.FaceToFace, label: '面对面随访' },
628
+ { value: exports.PlanExecMethod.Phone, label: '电话随访' },
629
+ ];
630
+ const HealthStudyPlanExecMethodOptions = [
631
+ { value: exports.PlanExecMethod.ConsumerClient, label: '访视卡片' },
632
+ { value: exports.PlanExecMethod.FaceToFace, label: '面对面访视' },
633
+ { value: exports.PlanExecMethod.Phone, label: '电话访视' },
634
+ ];
635
+ exports.PlanExecType = void 0;
636
+ (function (PlanExecType) {
637
+ PlanExecType[PlanExecType["Periodic"] = 1] = "Periodic";
638
+ PlanExecType[PlanExecType["Times"] = 2] = "Times";
639
+ })(exports.PlanExecType || (exports.PlanExecType = {}));
640
+ const PlanExecTypeOptions = [
641
+ {
642
+ value: exports.PlanExecType.Periodic,
643
+ label: '周期随访',
644
+ },
645
+ {
646
+ value: exports.PlanExecType.Times,
647
+ label: '按次随访',
648
+ },
649
+ ];
650
+ function getPlanExecLabel(type) {
651
+ return PlanExecTypeOptions.find((it) => it.value === type)?.label;
652
+ }
653
+ exports.VisitType = void 0;
654
+ (function (VisitType) {
655
+ VisitType[VisitType["BASELINE"] = 1] = "BASELINE";
656
+ VisitType[VisitType["CRF"] = 2] = "CRF";
657
+ VisitType[VisitType["UNSCHEDULED"] = 3] = "UNSCHEDULED";
658
+ VisitType[VisitType["END_OF_STUDY"] = 4] = "END_OF_STUDY";
659
+ VisitType[VisitType["TERMINATION_OUTCOME"] = 5] = "TERMINATION_OUTCOME";
660
+ VisitType[VisitType["ADVERSE_EVENT"] = 6] = "ADVERSE_EVENT";
661
+ VisitType[VisitType["FOLLOW_UP"] = 7] = "FOLLOW_UP";
662
+ VisitType[VisitType["Unknown"] = 99] = "Unknown";
663
+ })(exports.VisitType || (exports.VisitType = {}));
664
+ const VisitTypeOptions = [
665
+ {
666
+ value: exports.VisitType.BASELINE,
667
+ label: '基线访视',
668
+ },
669
+ {
670
+ value: exports.VisitType.CRF,
671
+ label: '访视CRF',
672
+ },
673
+ {
674
+ value: exports.VisitType.UNSCHEDULED,
675
+ label: '非计划访视',
676
+ },
677
+ {
678
+ value: exports.VisitType.END_OF_STUDY,
679
+ label: '结局时间表',
680
+ },
681
+ {
682
+ value: exports.VisitType.TERMINATION_OUTCOME,
683
+ label: '随访终止结果',
684
+ },
685
+ {
686
+ value: exports.VisitType.ADVERSE_EVENT,
687
+ label: '不良事件',
688
+ },
689
+ {
690
+ value: exports.VisitType.FOLLOW_UP,
691
+ label: '随访记录',
692
+ },
693
+ {
694
+ value: exports.VisitType.Unknown,
695
+ label: '未知',
696
+ },
697
+ ];
698
+ exports.MetricExceptionStatus = void 0;
699
+ (function (MetricExceptionStatus) {
700
+ MetricExceptionStatus[MetricExceptionStatus["Untreated"] = 1] = "Untreated";
701
+ MetricExceptionStatus[MetricExceptionStatus["Processed"] = 2] = "Processed";
702
+ MetricExceptionStatus[MetricExceptionStatus["Ignored"] = 3] = "Ignored";
703
+ MetricExceptionStatus[MetricExceptionStatus["Expired"] = 4] = "Expired";
704
+ MetricExceptionStatus[MetricExceptionStatus["ExecutionFailed"] = 5] = "ExecutionFailed";
705
+ MetricExceptionStatus[MetricExceptionStatus["Unknown"] = 99] = "Unknown";
706
+ })(exports.MetricExceptionStatus || (exports.MetricExceptionStatus = {}));
707
+ const MetricExceptionStatusOptions = [
708
+ { value: exports.MetricExceptionStatus.Untreated, label: '待处理' },
709
+ { value: exports.MetricExceptionStatus.Processed, label: '已处理' },
710
+ { value: exports.MetricExceptionStatus.Ignored, label: '已忽略' },
711
+ { value: exports.MetricExceptionStatus.Expired, label: '已过期' },
712
+ { value: exports.MetricExceptionStatus.ExecutionFailed, label: '执行失败' },
713
+ { value: exports.MetricExceptionStatus.Unknown, label: '未知' },
714
+ ];
715
+ exports.MetricExceptionLevel = void 0;
716
+ (function (MetricExceptionLevel) {
717
+ MetricExceptionLevel[MetricExceptionLevel["High"] = 1] = "High";
718
+ MetricExceptionLevel[MetricExceptionLevel["Middle"] = 2] = "Middle";
719
+ MetricExceptionLevel[MetricExceptionLevel["Low"] = 3] = "Low";
720
+ MetricExceptionLevel[MetricExceptionLevel["Unknown"] = 99] = "Unknown";
721
+ })(exports.MetricExceptionLevel || (exports.MetricExceptionLevel = {}));
722
+ const MetricExceptionLevelOptions = [
723
+ { value: exports.MetricExceptionLevel.High, label: '高' },
724
+ { value: exports.MetricExceptionLevel.Middle, label: '中' },
725
+ { value: exports.MetricExceptionLevel.Low, label: '低' },
726
+ { value: exports.MetricExceptionLevel.Unknown, label: '未知' },
727
+ ];
728
+ exports.GroupJoinType = void 0;
729
+ (function (GroupJoinType) {
730
+ GroupJoinType[GroupJoinType["Random"] = 1] = "Random";
731
+ GroupJoinType[GroupJoinType["Manual"] = 3] = "Manual";
732
+ GroupJoinType[GroupJoinType["Unknown"] = 99] = "Unknown";
733
+ })(exports.GroupJoinType || (exports.GroupJoinType = {}));
734
+ const GroupJoinTypeOptions = [
735
+ { value: exports.GroupJoinType.Random, label: '随机入组' },
736
+ { value: exports.GroupJoinType.Manual, label: '手动指定入组' },
737
+ ];
738
+ exports.FileType = void 0;
739
+ (function (FileType) {
740
+ FileType[FileType["TEXT"] = 1] = "TEXT";
741
+ FileType[FileType["DOCUMENT"] = 2] = "DOCUMENT";
742
+ FileType[FileType["PDF"] = 3] = "PDF";
743
+ FileType[FileType["SPREADSHEET"] = 4] = "SPREADSHEET";
744
+ FileType[FileType["IMAGE"] = 5] = "IMAGE";
745
+ FileType[FileType["AUDIO"] = 6] = "AUDIO";
746
+ FileType[FileType["VIDEO"] = 7] = "VIDEO";
747
+ FileType[FileType["ARCHIVE"] = 8] = "ARCHIVE";
748
+ FileType[FileType["UNKNOWN"] = 99] = "UNKNOWN";
749
+ })(exports.FileType || (exports.FileType = {}));
750
+ const FileTypeOptions = [
751
+ { value: exports.FileType.TEXT, label: '文本文件' },
752
+ { value: exports.FileType.DOCUMENT, label: '文档' },
753
+ { value: exports.FileType.PDF, label: '文档' },
754
+ { value: exports.FileType.SPREADSHEET, label: '电子表格' },
755
+ { value: exports.FileType.IMAGE, label: '图像文件' },
756
+ { value: exports.FileType.AUDIO, label: '音频文件' },
757
+ { value: exports.FileType.VIDEO, label: '视频文件' },
758
+ { value: exports.FileType.ARCHIVE, label: '压缩文件' },
759
+ { value: exports.FileType.UNKNOWN, label: '未知文件类型' },
760
+ ];
761
+ exports.HealthRecordType = void 0;
762
+ (function (HealthRecordType) {
763
+ HealthRecordType[HealthRecordType["PhysicalExamReport"] = 1] = "PhysicalExamReport";
764
+ HealthRecordType[HealthRecordType["OutpatientRecord"] = 2] = "OutpatientRecord";
765
+ HealthRecordType[HealthRecordType["InpatientRecord"] = 3] = "InpatientRecord";
766
+ HealthRecordType[HealthRecordType["LabReport"] = 4] = "LabReport";
767
+ HealthRecordType[HealthRecordType["Unknown"] = 99] = "Unknown";
768
+ })(exports.HealthRecordType || (exports.HealthRecordType = {}));
769
+ const HealthRecordTypeOptions = [
770
+ { value: exports.HealthRecordType.PhysicalExamReport, label: '体检报告' },
771
+ { value: exports.HealthRecordType.OutpatientRecord, label: '门诊病历' },
772
+ { value: exports.HealthRecordType.InpatientRecord, label: '住院病历' },
773
+ { value: exports.HealthRecordType.LabReport, label: '化验检验报告' },
774
+ { value: exports.HealthRecordType.Unknown, label: '未知' },
775
+ ];
776
+ exports.MessageActionStatus = void 0;
777
+ (function (MessageActionStatus) {
778
+ MessageActionStatus[MessageActionStatus["Undone"] = 1] = "Undone";
779
+ MessageActionStatus[MessageActionStatus["Doing"] = 2] = "Doing";
780
+ MessageActionStatus[MessageActionStatus["Done"] = 3] = "Done";
781
+ MessageActionStatus[MessageActionStatus["Unknown"] = 99] = "Unknown";
782
+ })(exports.MessageActionStatus || (exports.MessageActionStatus = {}));
783
+ exports.MessageStatus = void 0;
784
+ (function (MessageStatus) {
785
+ MessageStatus[MessageStatus["Unsent"] = 1] = "Unsent";
786
+ MessageStatus[MessageStatus["Sending"] = 2] = "Sending";
787
+ MessageStatus[MessageStatus["Sent"] = 3] = "Sent";
788
+ MessageStatus[MessageStatus["Failed"] = 4] = "Failed";
789
+ MessageStatus[MessageStatus["Unread"] = 5] = "Unread";
790
+ MessageStatus[MessageStatus["Read"] = 6] = "Read";
791
+ MessageStatus[MessageStatus["Unknown"] = 99] = "Unknown";
792
+ })(exports.MessageStatus || (exports.MessageStatus = {}));
793
+ exports.DeviceType = void 0;
794
+ (function (DeviceType) {
795
+ DeviceType[DeviceType["HuaWeiWatch"] = 1] = "HuaWeiWatch";
796
+ DeviceType[DeviceType["PulseOximetry"] = 2] = "PulseOximetry";
797
+ DeviceType[DeviceType["Unknown"] = 99] = "Unknown";
798
+ })(exports.DeviceType || (exports.DeviceType = {}));
799
+ const DeviceTypeOptions = [
800
+ { value: exports.DeviceType.HuaWeiWatch, label: '华为手表' },
801
+ { value: exports.DeviceType.PulseOximetry, label: '指脉仪' },
802
+ { value: exports.DeviceType.Unknown, label: '未知' },
803
+ ];
804
+ exports.DeviceStatus = void 0;
805
+ (function (DeviceStatus) {
806
+ DeviceStatus[DeviceStatus["Valid"] = 1] = "Valid";
807
+ DeviceStatus[DeviceStatus["Invalid"] = 2] = "Invalid";
808
+ DeviceStatus[DeviceStatus["Unknown"] = 99] = "Unknown";
809
+ })(exports.DeviceStatus || (exports.DeviceStatus = {}));
810
+ const DeviceStatusOptions = [
811
+ { value: exports.DeviceStatus.Valid, label: '有效' },
812
+ { value: exports.DeviceStatus.Invalid, label: '无效' },
813
+ { value: exports.DeviceStatus.Unknown, label: '未知' },
814
+ ];
815
+ exports.ConsumerDeviceStatus = void 0;
816
+ (function (ConsumerDeviceStatus) {
817
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Binding"] = 1] = "Binding";
818
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Bound"] = 2] = "Bound";
819
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Unbound"] = 3] = "Unbound";
820
+ ConsumerDeviceStatus[ConsumerDeviceStatus["BoundFailed"] = 4] = "BoundFailed";
821
+ ConsumerDeviceStatus[ConsumerDeviceStatus["Unknown"] = 99] = "Unknown";
822
+ })(exports.ConsumerDeviceStatus || (exports.ConsumerDeviceStatus = {}));
823
+ const ConsumerDeviceStatusOptions = [
824
+ { value: exports.ConsumerDeviceStatus.Binding, label: '绑定中' },
825
+ { value: exports.ConsumerDeviceStatus.Bound, label: '绑定成功' },
826
+ { value: exports.ConsumerDeviceStatus.Unbound, label: '已解绑' },
827
+ { value: exports.ConsumerDeviceStatus.BoundFailed, label: '绑定失败' },
828
+ { value: exports.ConsumerDeviceStatus.Unknown, label: '未知' },
829
+ ];
830
+ /**
831
+ * 课题研究类型
832
+ */
833
+ exports.StudyType = void 0;
834
+ (function (StudyType) {
835
+ StudyType[StudyType["SingleMode"] = 1] = "SingleMode";
836
+ StudyType[StudyType["MultiMode"] = 2] = "MultiMode";
837
+ StudyType[StudyType["Unknown"] = 99] = "Unknown";
838
+ })(exports.StudyType || (exports.StudyType = {}));
839
+
840
+ class _ShcpApiSdk {
841
+ init(config) {
842
+ this.config = config;
843
+ }
844
+ request(options) {
845
+ if (!this.config) {
846
+ throw new Error('ShcpApiSdk not initialized');
847
+ }
848
+ const { request } = this.config;
849
+ return request(options);
850
+ }
851
+ getApiSuffix() {
852
+ if (!this.config) {
853
+ throw new Error('ShcpApiSdk not initialized');
854
+ }
855
+ const { apiSuffix } = this.config;
856
+ if (typeof apiSuffix === 'function') {
857
+ return apiSuffix();
858
+ }
859
+ return apiSuffix;
860
+ }
861
+ }
862
+ const ShcpApiSdk = new _ShcpApiSdk();
863
+
864
+ class AppClientApi {
865
+ // 查询单个(按ID)
866
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/detail
867
+ static getDetail(data) {
868
+ return ShcpApiSdk.request({
869
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/detail`,
870
+ method: 'post',
871
+ data,
872
+ });
873
+ }
874
+ // 查询单个(按条件)
875
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/get
876
+ static get(data) {
877
+ return ShcpApiSdk.request({
878
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/get`,
879
+ method: 'post',
880
+ data,
881
+ });
882
+ }
883
+ // 查询列表
884
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list
885
+ static getList(data) {
886
+ return ShcpApiSdk.request({
887
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list`,
888
+ method: 'post',
889
+ data,
890
+ });
891
+ }
892
+ // 查询列表(capp彩蛋使用)
893
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/specialList
894
+ static getSpecialList(data) {
895
+ return ShcpApiSdk.request({
896
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/specialList`,
897
+ method: 'post',
898
+ data,
899
+ });
900
+ }
901
+ // 复制
902
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/copy
903
+ static copy(data) {
904
+ return ShcpApiSdk.request({
905
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/copy`,
906
+ method: 'post',
907
+ data,
908
+ });
909
+ }
910
+ // 更新复制配置
911
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/updateCopyConfig
912
+ static updateCopyConfig(data) {
913
+ return ShcpApiSdk.request({
914
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/updateCopyConfig`,
915
+ method: 'post',
916
+ data,
917
+ });
918
+ }
919
+ }
920
+
921
+ class AppClientPageConfigApi {
922
+ // 查询列表
923
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/list
924
+ static getList(data) {
925
+ return ShcpApiSdk.request({
926
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/list`,
927
+ method: 'post',
928
+ data,
929
+ });
930
+ }
931
+ }
932
+
933
+ class AppClientSettingApi {
934
+ // 查询单个
935
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/setting/get
936
+ static get(data) {
937
+ return ShcpApiSdk.request({
938
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/setting/get`,
939
+ method: 'post',
940
+ data,
941
+ });
942
+ }
943
+ }
944
+
945
+ class CommonDictApi {
946
+ // 查询单个详情
947
+ // URL: /api/blade-system/dict/detail
948
+ static getDetail(data) {
949
+ return ShcpApiSdk.request({
950
+ url: '/api/blade-system/dict/detail',
951
+ method: 'get',
952
+ params: data,
953
+ });
954
+ }
955
+ /**
956
+ * 列表
957
+ * URL: /api/blade-system/dict/list
958
+ */
959
+ static getList(data) {
960
+ return ShcpApiSdk.request({
961
+ url: '/api/blade-system/dict/list',
962
+ method: 'get',
963
+ params: data,
964
+ });
965
+ }
966
+ /**
967
+ * 获取字典树形结构
968
+ * URL: /api/blade-system/dict/tree
969
+ */
970
+ static getTree() {
971
+ return ShcpApiSdk.request({
972
+ url: '/api/blade-system/dict/tree',
973
+ method: 'get',
974
+ });
975
+ }
976
+ /**
977
+ * 获取字典树形结构
978
+ * URL: /api/blade-system/dict/parent-tree
979
+ */
980
+ static getParentTree() {
981
+ return ShcpApiSdk.request({
982
+ url: '/api/blade-system/dict/parent-tree',
983
+ method: 'get',
984
+ });
985
+ }
986
+ /**
987
+ * 获取字典
988
+ * URL: /api/blade-system/dict/dictionary
989
+ */
990
+ static getDictionary(code) {
991
+ return ShcpApiSdk.request({
992
+ url: '/api/blade-system/dict/dictionary',
993
+ method: 'get',
994
+ params: { code },
995
+ });
996
+ }
997
+ /**
998
+ * 获取字典树
999
+ * URL: /api/blade-system/dict/dictionary-tree
1000
+ */
1001
+ static getDictionaryTree(code) {
1002
+ return ShcpApiSdk.request({
1003
+ url: '/api/blade-system/dict/dictionary-tree',
1004
+ method: 'get',
1005
+ params: { code },
1006
+ });
1007
+ }
1008
+ /**
1009
+ * 字典键值列表
1010
+ * URL: /api/blade-system/dict/select
1011
+ */
1012
+ static getSelect() {
1013
+ return ShcpApiSdk.request({
1014
+ url: '/api/blade-system/dict/select',
1015
+ method: 'get',
1016
+ });
1017
+ }
1018
+ /**
1019
+ * 字典全列表
1020
+ * URL: /api/blade-system/dict/select-all
1021
+ */
1022
+ static getSelectAll() {
1023
+ return ShcpApiSdk.request({
1024
+ url: '/api/blade-system/dict/select-all',
1025
+ method: 'get',
1026
+ });
1027
+ }
1028
+ }
1029
+
1030
+ class CommonRightApi {
1031
+ // 获取权益列表
1032
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/right/list
1033
+ static getRightList(data) {
1034
+ return ShcpApiSdk.request({
1035
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/right/list`,
1036
+ method: 'post',
1037
+ data,
1038
+ });
1039
+ }
1040
+ // 服务流程分页查询
1041
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page
1042
+ static flowPage(data) {
1043
+ data.detailMode = true;
1044
+ return ShcpApiSdk.request({
1045
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page`,
1046
+ method: 'post',
1047
+ data,
1048
+ params: {
1049
+ current: data.current,
1050
+ size: data.size,
1051
+ },
1052
+ });
1053
+ }
1054
+ // 服务任务分页查询
1055
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page
1056
+ static taskPage(data) {
1057
+ data.detailMode = true;
1058
+ return ShcpApiSdk.request({
1059
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page`,
1060
+ method: 'post',
1061
+ data,
1062
+ params: {
1063
+ current: data.current,
1064
+ size: data.size,
1065
+ },
1066
+ });
1067
+ }
1068
+ //服务流程.列表查询
1069
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/list
1070
+ static listServiceFlow(query) {
1071
+ return ShcpApiSdk.request({
1072
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/list`,
1073
+ method: 'post',
1074
+ data: query,
1075
+ });
1076
+ }
1077
+ // 服务流程配置详情
1078
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/config/detail
1079
+ static detailServiceFlowConfig(flowId) {
1080
+ return ShcpApiSdk.request({
1081
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/config/detail`,
1082
+ method: 'post',
1083
+ params: { flowId },
1084
+ });
1085
+ }
1086
+ // 服务任务用户分页查询
1087
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/user/page
1088
+ static pageServiceTaskUser(data) {
1089
+ return ShcpApiSdk.request({
1090
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/user/page`,
1091
+ method: 'post',
1092
+ data,
1093
+ params: {
1094
+ current: data.current,
1095
+ size: data.size,
1096
+ },
1097
+ });
1098
+ }
1099
+ /**
1100
+ * 任务维度
1101
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page
1102
+ */
1103
+ static metricExceptionPage(data) {
1104
+ data.detailMode = true;
1105
+ return ShcpApiSdk.request({
1106
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page`,
1107
+ method: 'post',
1108
+ data,
1109
+ params: {
1110
+ current: data.current,
1111
+ size: data.size,
1112
+ },
1113
+ });
1114
+ }
1115
+ /**
1116
+ * 用户维度
1117
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page
1118
+ */
1119
+ static metricExceptionUserPage(data) {
1120
+ data.detailMode = true;
1121
+ return ShcpApiSdk.request({
1122
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page`,
1123
+ method: 'post',
1124
+ data,
1125
+ params: {
1126
+ current: data.current,
1127
+ size: data.size,
1128
+ },
1129
+ });
1130
+ }
1131
+ /**
1132
+ * 任务维度
1133
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/update
1134
+ */
1135
+ static updateMetricException(data) {
1136
+ return ShcpApiSdk.request({
1137
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/update`,
1138
+ method: 'post',
1139
+ data,
1140
+ });
1141
+ }
1142
+ // 通用任务启动
1143
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/${serviceTypeEnName}/start
1144
+ static commonTaskStart(serviceTypeEnName, data) {
1145
+ return ShcpApiSdk.request({
1146
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/${serviceTypeEnName}/start`,
1147
+ method: 'post',
1148
+ data,
1149
+ });
1150
+ }
1151
+ /**
1152
+ * 服务流程.单个查询(按ID)
1153
+ * URL: /api/shcp-healthcare/serviceFlow/detail
1154
+ */
1155
+ static detailServiceFlow(id) {
1156
+ return ShcpApiSdk.request({
1157
+ url: '/api/shcp-healthcare/serviceFlow/detail',
1158
+ method: 'post',
1159
+ params: { id },
1160
+ });
1161
+ }
1162
+ /**
1163
+ * 服务流程配置.列表查询
1164
+ * URL: /api/shcp-healthcare/serviceFlow/config/list
1165
+ */
1166
+ static listServiceFlowConfig(data) {
1167
+ return ShcpApiSdk.request({
1168
+ url: '/api/shcp-healthcare/serviceFlow/config/list',
1169
+ method: 'post',
1170
+ data,
1171
+ });
1172
+ }
1173
+ /**
1174
+ * 服务任务.单个查询(按ID)
1175
+ * URL: /api/shcp-healthcare/serviceTask/detail
1176
+ */
1177
+ static detailServiceTask(id) {
1178
+ return ShcpApiSdk.request({
1179
+ url: '/api/shcp-healthcare/serviceTask/detail',
1180
+ method: 'post',
1181
+ params: { id },
1182
+ });
1183
+ }
1184
+ /**
1185
+ * 服务任务.单个查询(按条件)
1186
+ * URL: /api/shcp-healthcare/serviceTask/get
1187
+ */
1188
+ static getServiceTask(data) {
1189
+ return ShcpApiSdk.request({
1190
+ url: '/api/shcp-healthcare/serviceTask/get',
1191
+ method: 'post',
1192
+ data,
1193
+ });
1194
+ }
1195
+ /**
1196
+ * 服务任务.列表查询
1197
+ * URL: /api/shcp-healthcare/serviceTask/list
1198
+ */
1199
+ static listServiceTask(data) {
1200
+ return ShcpApiSdk.request({
1201
+ url: '/api/shcp-healthcare/serviceTask/list',
1202
+ method: 'post',
1203
+ data,
1204
+ });
1205
+ }
1206
+ /**
1207
+ * 服务任务.删除
1208
+ * URL: /api/shcp-healthcare/serviceTask/delete
1209
+ */
1210
+ static deleteServiceTask(data) {
1211
+ return ShcpApiSdk.request({
1212
+ url: '/api/shcp-healthcare/serviceTask/delete',
1213
+ method: 'post',
1214
+ data,
1215
+ });
1216
+ }
1217
+ }
1218
+
1219
+ class ConsumerApi {
1220
+ // 获取医生列表
1221
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/listDoctor
1222
+ static getDoctorList(data) {
1223
+ return ShcpApiSdk.request({
1224
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/listDoctor`,
1225
+ method: 'post',
1226
+ data,
1227
+ });
1228
+ }
1229
+ // 获取成员分页
1230
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/page
1231
+ static getMemberPage(data) {
1232
+ return ShcpApiSdk.request({
1233
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/page`,
1234
+ method: 'post',
1235
+ data,
1236
+ params: { current: data.current, size: data.size },
1237
+ });
1238
+ }
1239
+ // 批量新增
1240
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/create
1241
+ static batchCreateMember(data) {
1242
+ return ShcpApiSdk.request({
1243
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/create`,
1244
+ method: 'post',
1245
+ data,
1246
+ });
1247
+ }
1248
+ // 列表查询成员
1249
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/list
1250
+ static listMember(data) {
1251
+ return ShcpApiSdk.request({
1252
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/list`,
1253
+ method: 'post',
1254
+ data,
1255
+ });
1256
+ }
1257
+ // 更新成员
1258
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/update
1259
+ static updateMember(data) {
1260
+ return ShcpApiSdk.request({
1261
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/member/update`,
1262
+ method: 'post',
1263
+ data,
1264
+ });
1265
+ }
1266
+ // 获取组详情
1267
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/detail
1268
+ static getGroupDetail(id) {
1269
+ return ShcpApiSdk.request({
1270
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/detail`,
1271
+ method: 'post',
1272
+ data: { id },
1273
+ });
1274
+ }
1275
+ // 获取组分页
1276
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/page
1277
+ static getGroupPage(data) {
1278
+ return ShcpApiSdk.request({
1279
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/page`,
1280
+ method: 'post',
1281
+ data: data,
1282
+ params: { current: data.current, size: data.size },
1283
+ });
1284
+ }
1285
+ // 根据ID列表查询
1286
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/listByIds
1287
+ static getListByIds(data) {
1288
+ return ShcpApiSdk.request({
1289
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/listByIds`,
1290
+ method: 'post',
1291
+ data,
1292
+ });
1293
+ }
1294
+ // 获取树形结构
1295
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/tree
1296
+ static getTree(data) {
1297
+ return ShcpApiSdk.request({
1298
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/tree`,
1299
+ method: 'get',
1300
+ params: { id: data.rootId },
1301
+ });
1302
+ }
1303
+ // 更新组
1304
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/update
1305
+ static updateGroup(data) {
1306
+ return ShcpApiSdk.request({
1307
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/update`,
1308
+ method: 'post',
1309
+ data,
1310
+ });
1311
+ }
1312
+ // 创建组
1313
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/create
1314
+ static createGroup(data) {
1315
+ return ShcpApiSdk.request({
1316
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/create`,
1317
+ method: 'post',
1318
+ data,
1319
+ });
1320
+ }
1321
+ // 删除组
1322
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/delete
1323
+ static deleteGroup(data) {
1324
+ return ShcpApiSdk.request({
1325
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/group/delete`,
1326
+ method: 'post',
1327
+ data,
1328
+ });
1329
+ }
1330
+ // 更新消费者
1331
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/update
1332
+ static update(data) {
1333
+ return ShcpApiSdk.request({
1334
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/update`,
1335
+ method: 'post',
1336
+ data,
1337
+ });
1338
+ }
1339
+ // 创建消费者
1340
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/create
1341
+ static create(data) {
1342
+ return ShcpApiSdk.request({
1343
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/create`,
1344
+ method: 'post',
1345
+ data,
1346
+ custom: {
1347
+ verify: (data) => {
1348
+ return data.code === 200 || data.code === 201;
1349
+ },
1350
+ },
1351
+ });
1352
+ }
1353
+ // 查询消费者列表
1354
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/list
1355
+ static list(data) {
1356
+ return ShcpApiSdk.request({
1357
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/list`,
1358
+ method: 'post',
1359
+ data,
1360
+ });
1361
+ }
1362
+ // 查询单个消费者
1363
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/get
1364
+ static get(data) {
1365
+ return ShcpApiSdk.request({
1366
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/get`,
1367
+ method: 'post',
1368
+ data,
1369
+ });
1370
+ }
1371
+ // 查询消费用户权益
1372
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/detail
1373
+ static getRightDetail(id) {
1374
+ return ShcpApiSdk.request({
1375
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/detail`,
1376
+ method: 'post',
1377
+ params: { id },
1378
+ });
1379
+ }
1380
+ // 查询消费用户权益
1381
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/get
1382
+ static getRight(data) {
1383
+ return ShcpApiSdk.request({
1384
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/get`,
1385
+ method: 'post',
1386
+ data,
1387
+ });
1388
+ }
1389
+ // 查询消费用户权益
1390
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/list
1391
+ static getRightList(data) {
1392
+ return ShcpApiSdk.request({
1393
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/list`,
1394
+ method: 'post',
1395
+ data,
1396
+ });
1397
+ }
1398
+ // 查询消费用户权益
1399
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/page
1400
+ static getRightPage(data) {
1401
+ return ShcpApiSdk.request({
1402
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/page`,
1403
+ method: 'post',
1404
+ data,
1405
+ params: {
1406
+ current: data.current,
1407
+ size: data.size,
1408
+ },
1409
+ });
1410
+ }
1411
+ // 创建消费用户权益
1412
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/create
1413
+ static createRight(data) {
1414
+ return ShcpApiSdk.request({
1415
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/create`,
1416
+ method: 'post',
1417
+ data,
1418
+ });
1419
+ }
1420
+ // 批量创建消费用户权益
1421
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/batchCreate
1422
+ static batchCreateRight(data) {
1423
+ return ShcpApiSdk.request({
1424
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/batchCreate`,
1425
+ method: 'post',
1426
+ data,
1427
+ });
1428
+ }
1429
+ // 删除消费用户权益
1430
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/delete
1431
+ static deleteRight(data) {
1432
+ return ShcpApiSdk.request({
1433
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumerRight/delete`,
1434
+ method: 'post',
1435
+ data,
1436
+ });
1437
+ }
1438
+ }
1439
+ const crudConsumerGroupApi = {
1440
+ edit: ConsumerApi.updateGroup,
1441
+ add: ConsumerApi.createGroup,
1442
+ list: ConsumerApi.getTree,
1443
+ del: ConsumerApi.deleteGroup,
1444
+ };
1445
+ const crudConsumerApi = {
1446
+ edit: ConsumerApi.update,
1447
+ add: ConsumerApi.create,
1448
+ };
1449
+
1450
+ class ConsumerBindApi {
1451
+ // 更改
1452
+ // URL: /api/shcp-consumer/consumerBind/update
1453
+ static update(data) {
1454
+ return ShcpApiSdk.request({
1455
+ url: '/api/shcp-consumer/consumerBind/update',
1456
+ method: 'post',
1457
+ data,
1458
+ });
1459
+ }
1460
+ // 新增
1461
+ // URL: /api/shcp-consumer/consumerBind/bind
1462
+ static create(data) {
1463
+ return ShcpApiSdk.request({
1464
+ url: '/api/shcp-consumer/consumerBind/bind',
1465
+ method: 'post',
1466
+ data,
1467
+ });
1468
+ }
1469
+ // 删除
1470
+ // URL: /api/shcp-consumer/consumerBind/delete
1471
+ static delete(data) {
1472
+ return ShcpApiSdk.request({
1473
+ url: '/api/shcp-consumer/consumerBind/delete',
1474
+ method: 'post',
1475
+ data,
1476
+ });
1477
+ }
1478
+ // 设备用户绑定的消费用户列表
1479
+ // URL: /api/shcp-consumer/consumerBind/list
1480
+ static getList(params) {
1481
+ return ShcpApiSdk.request({
1482
+ url: '/api/shcp-consumer/consumerBind/list',
1483
+ method: 'get',
1484
+ params,
1485
+ });
1486
+ }
1487
+ // 发送绑定用户验证码
1488
+ // URL: /api/shcp-consumer/consumerBind/sendSMSCode
1489
+ static sendSMSCode(params) {
1490
+ return ShcpApiSdk.request({
1491
+ url: '/api/shcp-consumer/consumerBind/sendSMSCode',
1492
+ method: 'get',
1493
+ params,
1494
+ });
1495
+ }
1496
+ // 验证码校验
1497
+ // URL: /api/shcp-consumer/consumerBind/verifySMSCode
1498
+ static verifySMSCode(params) {
1499
+ return ShcpApiSdk.request({
1500
+ url: '/api/shcp-consumer/consumerBind/verifySMSCode',
1501
+ method: 'get',
1502
+ params,
1503
+ });
1504
+ }
1505
+ // 激活
1506
+ // URL: /api/shcp-consumer/consumerBind/active
1507
+ static active(data) {
1508
+ return ShcpApiSdk.request({
1509
+ url: '/api/shcp-consumer/consumerBind/active',
1510
+ method: 'post',
1511
+ data,
1512
+ });
1513
+ }
1514
+ // 单个查询
1515
+ // URL: /api/shcp-consumer/consumerBind/get
1516
+ static get(params) {
1517
+ return ShcpApiSdk.request({
1518
+ url: '/api/shcp-consumer/consumerBind/get',
1519
+ method: 'get',
1520
+ params,
1521
+ });
1522
+ }
1523
+ }
1524
+
1525
+ class ConsumerDeviceApi {
1526
+ /**
1527
+ * 消费用户与租户设备建立绑定关系
1528
+ * URL: /api/shcp-consumer/consumerDevice/bind
1529
+ */
1530
+ static bind(data) {
1531
+ return ShcpApiSdk.request({
1532
+ url: '/api/shcp-consumer/consumerDevice/bind',
1533
+ method: 'post',
1534
+ data,
1535
+ });
1536
+ }
1537
+ /**
1538
+ * 解除消费用户与租户设备绑定关系
1539
+ * URL: /api/shcp-consumer/consumerDevice/unbound
1540
+ */
1541
+ static unbound(data) {
1542
+ return ShcpApiSdk.request({
1543
+ url: '/api/shcp-consumer/consumerDevice/unbound',
1544
+ method: 'post',
1545
+ data,
1546
+ });
1547
+ }
1548
+ /**
1549
+ * 查询消费用户绑定的设备列表
1550
+ * URL: /api/shcp-consumer/consumerDevice/list
1551
+ */
1552
+ static list(data) {
1553
+ return ShcpApiSdk.request({
1554
+ url: '/api/shcp-consumer/consumerDevice/list',
1555
+ method: 'post',
1556
+ data,
1557
+ });
1558
+ }
1559
+ /**
1560
+ * 查询消费用户绑定的设备列表
1561
+ * URL: /api/shcp-consumer/consumerDevice/get
1562
+ */
1563
+ static get(data) {
1564
+ return ShcpApiSdk.request({
1565
+ url: '/api/shcp-consumer/consumerDevice/get',
1566
+ method: 'post',
1567
+ data,
1568
+ });
1569
+ }
1570
+ }
1571
+
1572
+ class ConsumerFavoriteApi {
1573
+ // 消费用户收藏列表
1574
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/page
1575
+ static getPage(data) {
1576
+ return ShcpApiSdk.request({
1577
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/page`,
1578
+ method: 'get',
1579
+ data,
1580
+ params: {
1581
+ current: data.current,
1582
+ size: data.size,
1583
+ },
1584
+ });
1585
+ }
1586
+ // 创建消费用户收藏
1587
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/create
1588
+ static create(data) {
1589
+ return ShcpApiSdk.request({
1590
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/create`,
1591
+ method: 'post',
1592
+ data,
1593
+ });
1594
+ }
1595
+ // 检查是否收藏
1596
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/checkFavorite
1597
+ static checkFavorite(params) {
1598
+ return ShcpApiSdk.request({
1599
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/checkFavorite`,
1600
+ method: 'get',
1601
+ params,
1602
+ });
1603
+ }
1604
+ // 取消收藏
1605
+ // URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/delete
1606
+ static delete(data) {
1607
+ return ShcpApiSdk.request({
1608
+ url: `/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/favorite/delete`,
1609
+ method: 'post',
1610
+ data,
1611
+ });
1612
+ }
1613
+ }
1614
+
1615
+ class DeviceApi {
1616
+ /**
1617
+ * 查询租户下所有设备
1618
+ * URL: /api/blade-system/device/list
1619
+ */
1620
+ static list(data) {
1621
+ return ShcpApiSdk.request({
1622
+ url: '/api/blade-system/device/list',
1623
+ method: 'post',
1624
+ data,
1625
+ });
1626
+ }
1627
+ /**
1628
+ * 查询租户下单个设备信息
1629
+ * URL: /api/blade-system/device/get
1630
+ */
1631
+ static get(data) {
1632
+ return ShcpApiSdk.request({
1633
+ url: '/api/blade-system/device/get',
1634
+ method: 'post',
1635
+ data,
1636
+ });
1637
+ }
1638
+ /**
1639
+ * 复制租户设备
1640
+ * URL: /api/blade-system/device/copy
1641
+ */
1642
+ static copy(data) {
1643
+ return ShcpApiSdk.request({
1644
+ url: '/api/blade-system/device/copy',
1645
+ method: 'post',
1646
+ data,
1647
+ });
1648
+ }
1649
+ }
1650
+
1651
+ class DeviceUserApi {
1652
+ /**
1653
+ * 查询设备用户详情
1654
+ * URL: /api/shcp-consumer/consumerDeviceUser/detail
1655
+ */
1656
+ static detail(data) {
1657
+ return ShcpApiSdk.request({
1658
+ url: '/api/shcp-consumer/consumerDeviceUser/detail',
1659
+ method: 'post',
1660
+ data,
1661
+ });
1662
+ }
1663
+ /**
1664
+ * 更改设备用户
1665
+ * URL: /api/shcp-consumer/consumerDeviceUser/update
1666
+ */
1667
+ static update(data) {
1668
+ return ShcpApiSdk.request({
1669
+ url: '/api/shcp-consumer/consumerDeviceUser/update',
1670
+ method: 'post',
1671
+ data,
1672
+ });
1673
+ }
1674
+ /**
1675
+ * 新增设备用户
1676
+ * URL: /api/shcp-consumer/consumerDeviceUser/create
1677
+ */
1678
+ static create(data) {
1679
+ return ShcpApiSdk.request({
1680
+ url: '/api/shcp-consumer/consumerDeviceUser/create',
1681
+ method: 'post',
1682
+ data,
1683
+ });
1684
+ }
1685
+ /**
1686
+ * 设备登录接口,微信小程序登录
1687
+ * URL: /api/shcp-consumer/consumerDeviceUser/appletLogin
1688
+ */
1689
+ static appletLogin(data) {
1690
+ return ShcpApiSdk.request({
1691
+ url: '/api/shcp-consumer/consumerDeviceUser/appletLogin',
1692
+ method: 'post',
1693
+ data,
1694
+ });
1695
+ }
1696
+ /**
1697
+ * 解密手机号
1698
+ * URL: /api/shcp-consumer/consumerDeviceUser/convertMobile
1699
+ */
1700
+ static convertMobile(data) {
1701
+ return ShcpApiSdk.request({
1702
+ url: '/api/shcp-consumer/consumerDeviceUser/convertMobile',
1703
+ method: 'post',
1704
+ data,
1705
+ });
1706
+ }
1707
+ }
1708
+
1709
+ // 服务流程.发起
1710
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/start
1711
+ function start$1(data) {
1712
+ return ShcpApiSdk.request({
1713
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/start`,
1714
+ method: 'post',
1715
+ data,
1716
+ });
1717
+ }
1718
+ // 服务流程.领取
1719
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/claim
1720
+ function claim$1(data) {
1721
+ return ShcpApiSdk.request({
1722
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/claim`,
1723
+ method: 'post',
1724
+ data,
1725
+ });
1726
+ }
1727
+ // 服务流程.终止
1728
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/terminate
1729
+ function terminate$1(data) {
1730
+ return ShcpApiSdk.request({
1731
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/terminate`,
1732
+ method: 'post',
1733
+ data,
1734
+ });
1735
+ }
1736
+ // 服务流程.标记用户
1737
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerMark
1738
+ function consumerMark$1(data) {
1739
+ return ShcpApiSdk.request({
1740
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerMark`,
1741
+ method: 'post',
1742
+ data,
1743
+ });
1744
+ }
1745
+ // 服务流程.取消标记用户
1746
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerUnmark
1747
+ function deleteConsumerMark(data) {
1748
+ return ShcpApiSdk.request({
1749
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerUnmark`,
1750
+ method: 'post',
1751
+ data,
1752
+ });
1753
+ }
1754
+ // 服务流程.联系用户
1755
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerContact
1756
+ function consumerContact$1(data) {
1757
+ return ShcpApiSdk.request({
1758
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/consumerContact`,
1759
+ method: 'post',
1760
+ data,
1761
+ });
1762
+ }
1763
+ // 流程任务.获取
1764
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/fetch
1765
+ function taskFetch$1(data) {
1766
+ return ShcpApiSdk.request({
1767
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/fetch`,
1768
+ method: 'post',
1769
+ data,
1770
+ });
1771
+ }
1772
+ // 流程任务.提交
1773
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/submit
1774
+ function taskSubmit$1(data) {
1775
+ return ShcpApiSdk.request({
1776
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/submit`,
1777
+ method: 'post',
1778
+ data,
1779
+ });
1780
+ }
1781
+ // 流程任务.取消
1782
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/cancel
1783
+ function taskCancel$1(data) {
1784
+ return ShcpApiSdk.request({
1785
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/cancel`,
1786
+ method: 'post',
1787
+ data,
1788
+ });
1789
+ }
1790
+ // 流程任务.保存
1791
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/save
1792
+ function taskSave$1(data) {
1793
+ return ShcpApiSdk.request({
1794
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/diseaseCare/task/save`,
1795
+ method: 'post',
1796
+ data,
1797
+ });
1798
+ }
1799
+ const crudDiseaseCareConsumerApi = {
1800
+ list: CommonRightApi.flowPage,
1801
+ };
1802
+ const crudDiseaseCareAssessTaskApi = {
1803
+ list: CommonRightApi.taskPage,
1804
+ };
1805
+ const crudDiseaseCareInterviewTaskApi = {
1806
+ list: CommonRightApi.taskPage,
1807
+ };
1808
+ const crudDiseaseCareFollowupTaskApi = {
1809
+ list: CommonRightApi.taskPage,
1810
+ };
1811
+ const crudDiseaseCareAbnormalTaskApi = {
1812
+ list: CommonRightApi.metricExceptionPage,
1813
+ };
1814
+ const crudDiseaseCareReferralApi = {
1815
+ list: CommonRightApi.taskPage,
1816
+ };
1817
+ const diseaseOpApi = {
1818
+ start: start$1,
1819
+ claim: claim$1,
1820
+ terminate: terminate$1,
1821
+ taskSave: taskSave$1,
1822
+ consumerMark: consumerMark$1,
1823
+ deleteConsumerMark,
1824
+ consumerContact: consumerContact$1,
1825
+ taskFetch: taskFetch$1,
1826
+ taskSubmit: taskSubmit$1,
1827
+ taskCancel: taskCancel$1,
1828
+ updateMember: ConsumerApi.updateMember,
1829
+ };
1830
+ const diseaseExceptionOpApi = {
1831
+ ...diseaseOpApi,
1832
+ taskCancel: (params) => {
1833
+ params.id = params.taskId;
1834
+ params.status = exports.MetricExceptionStatus.Ignored;
1835
+ params.remark = null;
1836
+ return CommonRightApi.updateMetricException(params);
1837
+ },
1838
+ taskSubmit: (params) => {
1839
+ params.id = params.taskId;
1840
+ params.status = exports.MetricExceptionStatus.Processed;
1841
+ return CommonRightApi.updateMetricException(params);
1842
+ },
1843
+ };
1844
+
1845
+ class HealthCommonApi {
1846
+ // 服务流程.分页查询
1847
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page
1848
+ static pageServiceFlow(data) {
1849
+ return ShcpApiSdk.request({
1850
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/page`,
1851
+ method: 'post',
1852
+ data,
1853
+ params: {
1854
+ current: data.current,
1855
+ size: data.size,
1856
+ },
1857
+ });
1858
+ }
1859
+ // 服务流程.统计, 用户所参与流程统计
1860
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/statistics
1861
+ static statsServiceFlow(data) {
1862
+ return ShcpApiSdk.request({
1863
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceFlow/statistics`,
1864
+ method: 'post',
1865
+ data,
1866
+ });
1867
+ }
1868
+ // 服务任务的权益.列表查询, 列表查询
1869
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/right/list
1870
+ static listServiceTaskRight(data) {
1871
+ return ShcpApiSdk.request({
1872
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/right/list`,
1873
+ method: 'post',
1874
+ data,
1875
+ });
1876
+ }
1877
+ // 服务任务.分页查询
1878
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page
1879
+ static pageServiceTask(data) {
1880
+ return ShcpApiSdk.request({
1881
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/page`,
1882
+ method: 'post',
1883
+ data,
1884
+ params: {
1885
+ current: data.current,
1886
+ size: data.size,
1887
+ },
1888
+ });
1889
+ }
1890
+ // 服务任务.单个查询(按ID)
1891
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/detail
1892
+ static detailServiceTask(id) {
1893
+ return ShcpApiSdk.request({
1894
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/detail`,
1895
+ method: 'post',
1896
+ params: { id },
1897
+ });
1898
+ }
1899
+ // 服务任务.单个查询(按条件)
1900
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/get
1901
+ static getServiceTask(data) {
1902
+ return ShcpApiSdk.request({
1903
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/get`,
1904
+ method: 'post',
1905
+ data,
1906
+ });
1907
+ }
1908
+ // 服务任务.统计, 用户所参与任务统计
1909
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/statistics
1910
+ static statsServiceTask(data) {
1911
+ return ShcpApiSdk.request({
1912
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/serviceTask/statistics`,
1913
+ method: 'post',
1914
+ data,
1915
+ });
1916
+ }
1917
+ // 健康指标趋势.列表查询
1918
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list
1919
+ static listMetricTrend(data) {
1920
+ return ShcpApiSdk.request({
1921
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list`,
1922
+ method: 'post',
1923
+ data,
1924
+ });
1925
+ }
1926
+ // 指标异常记录.分页查询, 任务维度
1927
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page
1928
+ static metricExceptionPage(data) {
1929
+ return ShcpApiSdk.request({
1930
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/page`,
1931
+ method: 'post',
1932
+ data,
1933
+ params: {
1934
+ current: data.current,
1935
+ size: data.size,
1936
+ },
1937
+ });
1938
+ }
1939
+ // 指标异常记录.用户分页查询, 用户维度
1940
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page
1941
+ static metricExceptionUserPage(data) {
1942
+ return ShcpApiSdk.request({
1943
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/metricException/user/page`,
1944
+ method: 'post',
1945
+ data,
1946
+ params: {
1947
+ current: data.current,
1948
+ size: data.size,
1949
+ },
1950
+ });
1951
+ }
1952
+ }
1953
+
1954
+ class HealthMetricApi {
1955
+ // 获取健康指标
1956
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/get
1957
+ static getMetric(data) {
1958
+ return ShcpApiSdk.request({
1959
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/get`,
1960
+ method: 'post',
1961
+ data,
1962
+ });
1963
+ }
1964
+ // 获取健康指标列表
1965
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/list
1966
+ static listMetric(data) {
1967
+ return ShcpApiSdk.request({
1968
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/list`,
1969
+ method: 'post',
1970
+ data,
1971
+ });
1972
+ }
1973
+ // 健康指标分页查询
1974
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/page
1975
+ static pageMetric(data) {
1976
+ return ShcpApiSdk.request({
1977
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetric/page`,
1978
+ method: 'post',
1979
+ data,
1980
+ params: {
1981
+ current: data.current,
1982
+ size: data.size,
1983
+ },
1984
+ });
1985
+ }
1986
+ // 健康指标趋势列表
1987
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list
1988
+ static listTrend(data) {
1989
+ return ShcpApiSdk.request({
1990
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricTrend/list`,
1991
+ method: 'post',
1992
+ data,
1993
+ });
1994
+ }
1995
+ // 健康指标日志列表
1996
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricLog/list
1997
+ static listLog(data) {
1998
+ return ShcpApiSdk.request({
1999
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthMetricLog/list`,
2000
+ method: 'post',
2001
+ data,
2002
+ });
2003
+ }
2004
+ }
2005
+
2006
+ class HealthProfileApi {
2007
+ // 获取日记任务
2008
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/fetch
2009
+ static fetchDiaryTask(data) {
2010
+ return ShcpApiSdk.request({
2011
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/fetch`,
2012
+ method: 'post',
2013
+ data,
2014
+ });
2015
+ }
2016
+ // 提交日记任务
2017
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/submit
2018
+ static submitDiaryTask(data) {
2019
+ return ShcpApiSdk.request({
2020
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/diaryTask/submit`,
2021
+ method: 'post',
2022
+ data,
2023
+ });
2024
+ }
2025
+ // 提交报告任务
2026
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/submit
2027
+ static submitReportTask(data) {
2028
+ return ShcpApiSdk.request({
2029
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/submit`,
2030
+ method: 'post',
2031
+ data,
2032
+ });
2033
+ }
2034
+ // 获取报告任务
2035
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/fetch
2036
+ static fetchReportTask(data) {
2037
+ return ShcpApiSdk.request({
2038
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthProfile/reportTask/fetch`,
2039
+ method: 'post',
2040
+ data,
2041
+ });
2042
+ }
2043
+ }
2044
+
2045
+ class HealthSelfAssessApi {
2046
+ // 启动健康自评
2047
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/start
2048
+ static start(data) {
2049
+ return ShcpApiSdk.request({
2050
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/start`,
2051
+ method: 'post',
2052
+ data,
2053
+ });
2054
+ }
2055
+ // 提交评估任务
2056
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/submit
2057
+ static submitTask(data) {
2058
+ return ShcpApiSdk.request({
2059
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/submit`,
2060
+ method: 'post',
2061
+ data,
2062
+ });
2063
+ }
2064
+ // 获取评估任务
2065
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/fetch
2066
+ static fetchTask(data) {
2067
+ return ShcpApiSdk.request({
2068
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthSelfAssess/task/fetch`,
2069
+ method: 'post',
2070
+ data,
2071
+ });
2072
+ }
2073
+ }
2074
+
2075
+ // 服务流程.发起
2076
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/start
2077
+ function start(data) {
2078
+ return ShcpApiSdk.request({
2079
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/start`,
2080
+ method: 'post',
2081
+ data,
2082
+ });
2083
+ }
2084
+ // 服务流程.领取
2085
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/claim
2086
+ function claim(data) {
2087
+ return ShcpApiSdk.request({
2088
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/claim`,
2089
+ method: 'post',
2090
+ data,
2091
+ });
2092
+ }
2093
+ // 服务流程.终止
2094
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/terminate
2095
+ function terminate(data) {
2096
+ return ShcpApiSdk.request({
2097
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/terminate`,
2098
+ method: 'post',
2099
+ data,
2100
+ });
2101
+ }
2102
+ // 服务流程.标记用户
2103
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerMark
2104
+ function consumerMark(data) {
2105
+ return ShcpApiSdk.request({
2106
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerMark`,
2107
+ method: 'post',
2108
+ data,
2109
+ });
2110
+ }
2111
+ // 服务流程.联系用户
2112
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerContact
2113
+ function consumerContact(data) {
2114
+ return ShcpApiSdk.request({
2115
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/consumerContact`,
2116
+ method: 'post',
2117
+ data,
2118
+ });
2119
+ }
2120
+ // 流程任务.获取
2121
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/fetch
2122
+ function taskFetch(data) {
2123
+ return ShcpApiSdk.request({
2124
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/fetch`,
2125
+ method: 'post',
2126
+ data,
2127
+ });
2128
+ }
2129
+ // 流程任务.提交
2130
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/submit
2131
+ function taskSubmit(data) {
2132
+ return ShcpApiSdk.request({
2133
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/submit`,
2134
+ method: 'post',
2135
+ data,
2136
+ });
2137
+ }
2138
+ // 流程任务.取消
2139
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/cancel
2140
+ function taskCancel(data) {
2141
+ return ShcpApiSdk.request({
2142
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/cancel`,
2143
+ method: 'post',
2144
+ data,
2145
+ });
2146
+ }
2147
+ // 流程任务.保存
2148
+ // URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/save
2149
+ function taskSave(data) {
2150
+ return ShcpApiSdk.request({
2151
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthStudy/task/save`,
2152
+ method: 'post',
2153
+ data,
2154
+ });
2155
+ }
2156
+ const crudHealthStudyConsumerApi = {
2157
+ list: CommonRightApi.flowPage,
2158
+ add: () => { },
2159
+ };
2160
+ const crudHealthStudyAssessTaskApi = {
2161
+ list: CommonRightApi.taskPage,
2162
+ };
2163
+ const crudHealthStudyInterviewTaskApi = {
2164
+ list: CommonRightApi.taskPage,
2165
+ };
2166
+ const crudHealthStudyFollowupTaskApi = {
2167
+ list: CommonRightApi.taskPage,
2168
+ };
2169
+ const crudHealthStudyAbnormalTaskApi = {
2170
+ list: CommonRightApi.metricExceptionPage,
2171
+ };
2172
+ const crudHealthStudyReferralApi = {
2173
+ list: CommonRightApi.taskPage,
2174
+ };
2175
+ const healthStudyOpApi = {
2176
+ start,
2177
+ claim,
2178
+ terminate,
2179
+ consumerMark,
2180
+ consumerContact,
2181
+ taskFetch,
2182
+ taskSubmit,
2183
+ taskCancel,
2184
+ taskSave,
2185
+ updateMember: ConsumerApi.updateMember,
2186
+ };
2187
+ const healthStudyExceptionOpApi = {
2188
+ ...healthStudyOpApi,
2189
+ taskCancel: (params) => {
2190
+ params.id = params.taskId;
2191
+ params.status = exports.MetricExceptionStatus.Ignored;
2192
+ params.remark = null;
2193
+ return CommonRightApi.updateMetricException(params);
2194
+ },
2195
+ taskSubmit: (params) => {
2196
+ params.id = params.taskId;
2197
+ params.status = exports.MetricExceptionStatus.Processed;
2198
+ return CommonRightApi.updateMetricException(params);
2199
+ },
2200
+ };
2201
+
2202
+ class HealthToolApi {
2203
+ /**
2204
+ * 健康工具.任务发起
2205
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/start
2206
+ */
2207
+ static start(data) {
2208
+ return ShcpApiSdk.request({
2209
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/start`,
2210
+ method: 'post',
2211
+ data,
2212
+ });
2213
+ }
2214
+ /**
2215
+ * 健康工具.任务获取
2216
+ * URL: /api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/task/fetch
2217
+ */
2218
+ static fetch(data) {
2219
+ return ShcpApiSdk.request({
2220
+ url: `/api/shcp-healthcare/${ShcpApiSdk.getApiSuffix()}/healthTool/task/fetch`,
2221
+ method: 'post',
2222
+ data,
2223
+ });
2224
+ }
2225
+ }
2226
+
2227
+ class HelpCenterApi {
2228
+ // 获取帮助中心配置
2229
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/helpCenter/get
2230
+ static getConfig(clientType) {
2231
+ const url = `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/helpCenter/get`;
2232
+ return ShcpApiSdk.request({
2233
+ url,
2234
+ method: 'post',
2235
+ data: {
2236
+ clientType,
2237
+ },
2238
+ });
2239
+ }
2240
+ }
2241
+
2242
+ class ImUserApi {
2243
+ // 用户登录
2244
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/login
2245
+ static login(data) {
2246
+ return ShcpApiSdk.request({
2247
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/login`,
2248
+ method: 'post',
2249
+ data,
2250
+ });
2251
+ }
2252
+ // 获取对话用户信息
2253
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUser
2254
+ static getUser(data) {
2255
+ return ShcpApiSdk.request({
2256
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUser`,
2257
+ method: 'post',
2258
+ data,
2259
+ });
2260
+ }
2261
+ // 获取对话用户信息
2262
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUserList
2263
+ static getUserList(data) {
2264
+ return ShcpApiSdk.request({
2265
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/im/getUserList`,
2266
+ method: 'post',
2267
+ data,
2268
+ });
2269
+ }
2270
+ }
2271
+
2272
+ class KmArticleApi {
2273
+ // 查询文章分类树
2274
+ static getCategoryTree(data) {
2275
+ return ShcpApiSdk.request({
2276
+ url: '/api/shcp-km/article/category/tree',
2277
+ method: 'post',
2278
+ data,
2279
+ });
2280
+ }
2281
+ // 查询文章分页列表
2282
+ static getPage(data) {
2283
+ return ShcpApiSdk.request({
2284
+ url: '/api/shcp-km/article/page',
2285
+ method: 'post',
2286
+ data,
2287
+ params: {
2288
+ current: data.current,
2289
+ size: data.size,
2290
+ },
2291
+ });
2292
+ }
2293
+ // 文章内容查询
2294
+ static getContent(id) {
2295
+ return ShcpApiSdk.request({
2296
+ url: '/api/shcp-km/article/content/query',
2297
+ method: 'get',
2298
+ params: { id },
2299
+ });
2300
+ }
2301
+ // 查询标签分类树
2302
+ static getTagCategoryTree(data) {
2303
+ return ShcpApiSdk.request({
2304
+ url: '/api/shcp-km/article/tag/category/tree',
2305
+ method: 'post',
2306
+ data,
2307
+ });
2308
+ }
2309
+ // 查询标签分页列表
2310
+ static getTagPage(data) {
2311
+ return ShcpApiSdk.request({
2312
+ url: '/api/shcp-km/article/tag/page',
2313
+ method: 'post',
2314
+ data,
2315
+ params: {
2316
+ current: data.current,
2317
+ size: data.size,
2318
+ },
2319
+ });
2320
+ }
2321
+ }
2322
+
2323
+ class KmFormApi {
2324
+ // 获取表单内容
2325
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/content/query
2326
+ static getContent(formId) {
2327
+ return ShcpApiSdk.request({
2328
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/content/query`,
2329
+ method: 'get',
2330
+ params: { formId },
2331
+ });
2332
+ }
2333
+ /**
2334
+ * 根据用户传参进行智能辅助填充
2335
+ * URL: /api/blade-resource/ai/form/smart-filling
2336
+ */
2337
+ static smartFill(data) {
2338
+ return ShcpApiSdk.request({
2339
+ url: '/api/blade-resource/ai/form/smart-filling',
2340
+ method: 'post',
2341
+ data,
2342
+ timeout: 60000,
2343
+ });
2344
+ }
2345
+ }
2346
+
2347
+ class KmFormRuleRelationApi {
2348
+ // 单个查询
2349
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/get
2350
+ static get(data) {
2351
+ return ShcpApiSdk.request({
2352
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/get`,
2353
+ method: 'post',
2354
+ data,
2355
+ });
2356
+ }
2357
+ // 列表查询
2358
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/list
2359
+ static getList(data) {
2360
+ return ShcpApiSdk.request({
2361
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/form/rule/list`,
2362
+ method: 'post',
2363
+ data,
2364
+ });
2365
+ }
2366
+ }
2367
+
2368
+ class LoginApi {
2369
+ // 新增
2370
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/potentialCustomer/create
2371
+ static createApplyAccount(data) {
2372
+ return ShcpApiSdk.request({
2373
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/potentialCustomer/create`,
2374
+ method: 'post',
2375
+ data,
2376
+ });
2377
+ }
2378
+ // 获取申请结果
2379
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/salesConfig/get
2380
+ static getApplyResult() {
2381
+ return ShcpApiSdk.request({
2382
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/salesConfig/get`,
2383
+ method: 'post',
2384
+ data: {},
2385
+ });
2386
+ }
2387
+ // 刷新token
2388
+ // URL: /api/blade-auth/oauth/token
2389
+ static refreshToken(data) {
2390
+ return ShcpApiSdk.request({
2391
+ url: '/api/blade-auth/oauth/token',
2392
+ method: 'post',
2393
+ header: {
2394
+ 'Tenant-Id': data.tenantId,
2395
+ },
2396
+ params: {
2397
+ ...data,
2398
+ grant_type: 'refresh_token',
2399
+ scope: 'all',
2400
+ },
2401
+ });
2402
+ }
2403
+ // 用户登录
2404
+ // URL: /api/blade-auth/oauth/token
2405
+ static toLogin(data) {
2406
+ return ShcpApiSdk.request({
2407
+ url: `/api/blade-auth/oauth/token`,
2408
+ method: 'post',
2409
+ header: {
2410
+ 'Tenant-Id': data.tenantId,
2411
+ },
2412
+ params: {
2413
+ ...data,
2414
+ grant_type: 'password',
2415
+ scope: 'all',
2416
+ type: 'account',
2417
+ },
2418
+ custom: {
2419
+ verify: (data) => {
2420
+ return !!data.access_token;
2421
+ },
2422
+ },
2423
+ });
2424
+ }
2425
+ // 应用客户端登录
2426
+ // URL: /api/blade-auth/appClient/login
2427
+ static appClientLogin(data) {
2428
+ return ShcpApiSdk.request({
2429
+ url: '/api/blade-auth/appClient/login',
2430
+ method: 'post',
2431
+ data,
2432
+ });
2433
+ }
2434
+ // 获取租户列表
2435
+ // URL: /api/blade-system/tenant/selectTenant
2436
+ static getTenantList() {
2437
+ return ShcpApiSdk.request({
2438
+ url: `/api/blade-system/tenant/selectTenant`,
2439
+ method: 'get',
2440
+ params: {
2441
+ domainUrl: '',
2442
+ },
2443
+ });
2444
+ }
2445
+ // 获取关联租户列表
2446
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list
2447
+ static getRelatedTenantList(relateTenantId) {
2448
+ return ShcpApiSdk.request({
2449
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/list`,
2450
+ method: 'post',
2451
+ data: {
2452
+ relateTenantId,
2453
+ },
2454
+ });
2455
+ }
2456
+ }
2457
+
2458
+ class MarketingApi {
2459
+ // 保存营销内容
2460
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/save
2461
+ static saveContent(data) {
2462
+ return ShcpApiSdk.request({
2463
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/save`,
2464
+ method: 'post',
2465
+ data,
2466
+ });
2467
+ }
2468
+ // 创建营销活动
2469
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/create
2470
+ static create(data) {
2471
+ return ShcpApiSdk.request({
2472
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/create`,
2473
+ method: 'post',
2474
+ data,
2475
+ });
2476
+ }
2477
+ // 更新营销活动
2478
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/update
2479
+ static update(data) {
2480
+ return ShcpApiSdk.request({
2481
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/update`,
2482
+ method: 'post',
2483
+ data,
2484
+ });
2485
+ }
2486
+ // 获取营销活动分页
2487
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/page
2488
+ static getPage(data) {
2489
+ return ShcpApiSdk.request({
2490
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/page`,
2491
+ method: 'post',
2492
+ data,
2493
+ params: {
2494
+ current: data.current,
2495
+ size: data.size,
2496
+ },
2497
+ });
2498
+ }
2499
+ // 删除营销活动
2500
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/delete
2501
+ static delete(data) {
2502
+ return ShcpApiSdk.request({
2503
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/delete`,
2504
+ method: 'post',
2505
+ data,
2506
+ });
2507
+ }
2508
+ // 获取营销活动详情
2509
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/detail
2510
+ static getDetail(id) {
2511
+ return ShcpApiSdk.request({
2512
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/detail?id=${id}`,
2513
+ method: 'get',
2514
+ });
2515
+ }
2516
+ // 获取营销任务分页
2517
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/page
2518
+ static getTaskPage(data) {
2519
+ return ShcpApiSdk.request({
2520
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/page`,
2521
+ method: 'post',
2522
+ data,
2523
+ params: {
2524
+ current: data.current,
2525
+ size: data.size,
2526
+ },
2527
+ });
2528
+ }
2529
+ // 获取营销任务日志分页
2530
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/page
2531
+ static getTaskLogPage(data) {
2532
+ return ShcpApiSdk.request({
2533
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/page`,
2534
+ method: 'post',
2535
+ data,
2536
+ });
2537
+ }
2538
+ // 创建营销任务日志
2539
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/create
2540
+ static createTaskLogs(data) {
2541
+ return ShcpApiSdk.request({
2542
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/task/log/create`,
2543
+ method: 'post',
2544
+ data,
2545
+ });
2546
+ }
2547
+ // 获取消息模板列表
2548
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/list
2549
+ static getMessageTemplateList(data) {
2550
+ return ShcpApiSdk.request({
2551
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/list`,
2552
+ method: 'post',
2553
+ data,
2554
+ });
2555
+ }
2556
+ // 获取消息模板详情
2557
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/detail
2558
+ static getMessageTemplateDetail(id) {
2559
+ return ShcpApiSdk.request({
2560
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/message/template/detail`,
2561
+ method: 'get',
2562
+ params: { id },
2563
+ });
2564
+ }
2565
+ // 获取模版列表数据
2566
+ // URL: /api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/list
2567
+ static getSendContent(data) {
2568
+ return ShcpApiSdk.request({
2569
+ url: `/api/shcp-marketing/${ShcpApiSdk.getApiSuffix()}/marketing/content/list`,
2570
+ method: 'post',
2571
+ data,
2572
+ });
2573
+ }
2574
+ }
2575
+
2576
+ class MessageRecordApi {
2577
+ // 获取消息记录详情
2578
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/detail
2579
+ static getDetail(id) {
2580
+ return ShcpApiSdk.request({
2581
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/detail`,
2582
+ method: 'post',
2583
+ params: { id },
2584
+ });
2585
+ }
2586
+ // 按天分组获取消息记录分页
2587
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/pageGroupedByDay
2588
+ static getPageGroupedByDay(data) {
2589
+ return ShcpApiSdk.request({
2590
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/pageGroupedByDay`,
2591
+ method: 'post',
2592
+ data,
2593
+ params: {
2594
+ current: data.current,
2595
+ size: data.size,
2596
+ },
2597
+ });
2598
+ }
2599
+ // 更新消息记录
2600
+ // URL: /api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/update
2601
+ static update(data) {
2602
+ return ShcpApiSdk.request({
2603
+ url: `/api/shcp-message/${ShcpApiSdk.getApiSuffix()}/message/record/update`,
2604
+ method: 'post',
2605
+ data,
2606
+ });
2607
+ }
2608
+ }
2609
+
2610
+ class MineApi {
2611
+ }
2612
+ // 获取用户信息
2613
+ // URL: /api/blade-system/user/info
2614
+ MineApi.getUserInfo = (id) => {
2615
+ return ShcpApiSdk.request({
2616
+ url: `/api/blade-system/user/info`,
2617
+ method: 'get',
2618
+ params: { id },
2619
+ });
2620
+ };
2621
+ // 更新用户信息
2622
+ // URL: /api/blade-system/user/update-info
2623
+ MineApi.updateInfo = (data) => {
2624
+ return ShcpApiSdk.request({
2625
+ url: `/api/blade-system/user/update-info`,
2626
+ method: 'post',
2627
+ data,
2628
+ });
2629
+ };
2630
+ // 获取我的页面配置
2631
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/get
2632
+ MineApi.getMyPageConfig = (data) => {
2633
+ return ShcpApiSdk.request({
2634
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/appClient/pageConfig/get`,
2635
+ method: 'post',
2636
+ data,
2637
+ custom: { showError: false },
2638
+ });
2639
+ };
2640
+ // 获取详情内容
2641
+ // URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/article/content/query
2642
+ MineApi.getArticleContent = (id) => {
2643
+ return ShcpApiSdk.request({
2644
+ url: `/api/shcp-km/${ShcpApiSdk.getApiSuffix()}/article/content/query`,
2645
+ method: 'get',
2646
+ params: { id },
2647
+ });
2648
+ };
2649
+
2650
+ class RightQrcodeApi {
2651
+ // 获取权益二维码分页
2652
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/page
2653
+ static getPage(data) {
2654
+ return ShcpApiSdk.request({
2655
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/page`,
2656
+ method: 'post',
2657
+ data,
2658
+ params: data,
2659
+ });
2660
+ }
2661
+ // 更新权益二维码
2662
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/update
2663
+ static update(data) {
2664
+ return ShcpApiSdk.request({
2665
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/update`,
2666
+ method: 'post',
2667
+ data,
2668
+ });
2669
+ }
2670
+ // 创建权益二维码
2671
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/create
2672
+ static create(data) {
2673
+ return ShcpApiSdk.request({
2674
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/create`,
2675
+ method: 'post',
2676
+ data,
2677
+ });
2678
+ }
2679
+ // 删除权益二维码
2680
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/delete
2681
+ static delete(ids) {
2682
+ return ShcpApiSdk.request({
2683
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/delete`,
2684
+ method: 'post',
2685
+ data: ids,
2686
+ });
2687
+ }
2688
+ // 获取权益二维码详情
2689
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/detail
2690
+ static getDetail(id) {
2691
+ return ShcpApiSdk.request({
2692
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/qrCode/detail`,
2693
+ method: 'post',
2694
+ params: { id },
2695
+ });
2696
+ }
2697
+ }
2698
+
2699
+ class RightServiceConfigApi {
2700
+ // 通用.查询单个(按ID)
2701
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/detail
2702
+ static getDetail(id) {
2703
+ return ShcpApiSdk.request({
2704
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/detail`,
2705
+ method: 'post',
2706
+ params: { id },
2707
+ });
2708
+ }
2709
+ // 通用.查询单个(按条件)
2710
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/get
2711
+ static get(data) {
2712
+ return ShcpApiSdk.request({
2713
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/get`,
2714
+ method: 'post',
2715
+ data,
2716
+ });
2717
+ }
2718
+ // 通用.查询列表
2719
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/list
2720
+ static getList(data) {
2721
+ return ShcpApiSdk.request({
2722
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/list`,
2723
+ method: 'post',
2724
+ data,
2725
+ });
2726
+ }
2727
+ // 慢病管理.查询单个(按ID)
2728
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/detail
2729
+ static getDiseaseCareDetail(id) {
2730
+ return ShcpApiSdk.request({
2731
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/detail`,
2732
+ method: 'post',
2733
+ params: { id },
2734
+ });
2735
+ }
2736
+ // 慢病管理.查询单个(按条件)
2737
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/get
2738
+ static getDiseaseCareConfig(data) {
2739
+ return ShcpApiSdk.request({
2740
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/get`,
2741
+ method: 'post',
2742
+ data,
2743
+ });
2744
+ }
2745
+ // 课题研究.查询单个(按ID)
2746
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/detail
2747
+ static getHealthStudyDetail(id) {
2748
+ return ShcpApiSdk.request({
2749
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/detail`,
2750
+ method: 'post',
2751
+ params: { id },
2752
+ });
2753
+ }
2754
+ // 课题研究.查询单个(按条件)
2755
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/get
2756
+ static getHealthStudyConfig(data) {
2757
+ return ShcpApiSdk.request({
2758
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthStudy/get`,
2759
+ method: 'post',
2760
+ data,
2761
+ });
2762
+ }
2763
+ // 健康自测.查询单个(按条件)
2764
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthSelfAssessment/get
2765
+ static getHealthSelfAssessmentConfig(data) {
2766
+ return ShcpApiSdk.request({
2767
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthSelfAssessment/get`,
2768
+ method: 'post',
2769
+ data,
2770
+ });
2771
+ }
2772
+ // 健康档案.查询单个(按条件)
2773
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthProfile/get
2774
+ static getHealthProfileConfig(data) {
2775
+ return ShcpApiSdk.request({
2776
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthProfile/get`,
2777
+ method: 'post',
2778
+ data,
2779
+ });
2780
+ }
2781
+ // 健康工具.查询单个(按条件)
2782
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthTool/get
2783
+ static getHealthToolConfig(data) {
2784
+ return ShcpApiSdk.request({
2785
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthTool/get`,
2786
+ method: 'post',
2787
+ data,
2788
+ });
2789
+ }
2790
+ // 健康咨询.查询单个(按条件)
2791
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthConsult/get
2792
+ static getHealthConsultConfig(data) {
2793
+ return ShcpApiSdk.request({
2794
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/healthConsult/get`,
2795
+ method: 'post',
2796
+ data,
2797
+ });
2798
+ }
2799
+ }
2800
+
2801
+ class SystemRightApi {
2802
+ // 权益详情
2803
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/detail
2804
+ static getDetail(params) {
2805
+ return ShcpApiSdk.request({
2806
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/detail`,
2807
+ method: 'post',
2808
+ params,
2809
+ });
2810
+ }
2811
+ // 权益列表
2812
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/get
2813
+ static get(data) {
2814
+ return ShcpApiSdk.request({
2815
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/get`,
2816
+ method: 'post',
2817
+ data,
2818
+ });
2819
+ }
2820
+ // 权益列表
2821
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/listByIds
2822
+ static getListByIds(data) {
2823
+ return ShcpApiSdk.request({
2824
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/listByIds`,
2825
+ method: 'post',
2826
+ data,
2827
+ });
2828
+ }
2829
+ // 权益列表
2830
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/list
2831
+ static getList(data) {
2832
+ return ShcpApiSdk.request({
2833
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/list`,
2834
+ method: 'post',
2835
+ data,
2836
+ });
2837
+ }
2838
+ // 权益列表
2839
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/page
2840
+ static getPage(data) {
2841
+ return ShcpApiSdk.request({
2842
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/page`,
2843
+ method: 'post',
2844
+ data,
2845
+ params: {
2846
+ current: data.current,
2847
+ size: data.size,
2848
+ },
2849
+ });
2850
+ }
2851
+ // 初始化权益
2852
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/initRight
2853
+ static init(params) {
2854
+ return ShcpApiSdk.request({
2855
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/initRight`,
2856
+ method: 'post',
2857
+ params,
2858
+ });
2859
+ }
2860
+ // 复制
2861
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/copy
2862
+ static copy(data) {
2863
+ return ShcpApiSdk.request({
2864
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/copy`,
2865
+ method: 'post',
2866
+ data,
2867
+ });
2868
+ }
2869
+ // 更新复制配置
2870
+ // URL: /api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/updateCopyConfig
2871
+ static updateCopyConfig(data) {
2872
+ return ShcpApiSdk.request({
2873
+ url: `/api/shcp-system/${ShcpApiSdk.getApiSuffix()}/right/updateCopyConfig`,
2874
+ method: 'post',
2875
+ data,
2876
+ });
2877
+ }
2878
+ }
2879
+
2880
+ class UserGroupApi {
2881
+ // 更新用户组
2882
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/update
2883
+ static update(data) {
2884
+ return ShcpApiSdk.request({
2885
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/update`,
2886
+ method: 'post',
2887
+ data,
2888
+ });
2889
+ }
2890
+ // 解绑用户
2891
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/unbindUser
2892
+ static unbindUser(data) {
2893
+ return ShcpApiSdk.request({
2894
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/unbindUser`,
2895
+ method: 'post',
2896
+ data,
2897
+ });
2898
+ }
2899
+ // 创建用户组
2900
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/create
2901
+ static create(data) {
2902
+ return ShcpApiSdk.request({
2903
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/create`,
2904
+ method: 'post',
2905
+ data,
2906
+ });
2907
+ }
2908
+ // 绑定用户
2909
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bindUser
2910
+ static bindUser(data) {
2911
+ return ShcpApiSdk.request({
2912
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bindUser`,
2913
+ method: 'post',
2914
+ data,
2915
+ });
2916
+ }
2917
+ // 获取用户组树
2918
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/tree
2919
+ static getTree(data) {
2920
+ return ShcpApiSdk.request({
2921
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/tree`,
2922
+ method: 'post',
2923
+ data,
2924
+ });
2925
+ }
2926
+ // 获取用户组详情
2927
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/detail
2928
+ static getDetail(id) {
2929
+ return ShcpApiSdk.request({
2930
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/detail`,
2931
+ method: 'get',
2932
+ params: { id },
2933
+ });
2934
+ }
2935
+ // 查询医生管理组用户
2936
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bladeUserPage
2937
+ static getBladeUserPage(data) {
2938
+ return ShcpApiSdk.request({
2939
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/bladeUserPage`,
2940
+ method: 'post',
2941
+ data,
2942
+ });
2943
+ }
2944
+ // 删除用户组
2945
+ // URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/delete
2946
+ static delete(data) {
2947
+ return ShcpApiSdk.request({
2948
+ url: `/api/blade-system/${ShcpApiSdk.getApiSuffix()}/userGroup/delete`,
2949
+ method: 'post',
2950
+ data,
2951
+ });
2952
+ }
2953
+ }
2954
+
2955
+ exports.AppCategoryOptions = AppCategoryOptions;
2956
+ exports.AppClientApi = AppClientApi;
2957
+ exports.AppClientPageConfigApi = AppClientPageConfigApi;
2958
+ exports.AppClientSettingApi = AppClientSettingApi;
2959
+ exports.CommonDictApi = CommonDictApi;
2960
+ exports.CommonRightApi = CommonRightApi;
2961
+ exports.ConsumerApi = ConsumerApi;
2962
+ exports.ConsumerBindApi = ConsumerBindApi;
2963
+ exports.ConsumerDeviceApi = ConsumerDeviceApi;
2964
+ exports.ConsumerDeviceStatusOptions = ConsumerDeviceStatusOptions;
2965
+ exports.ConsumerFavoriteApi = ConsumerFavoriteApi;
2966
+ exports.ConsumerMarkTypeOptions = ConsumerMarkTypeOptions;
2967
+ exports.ConsumerRightStatusOptions = ConsumerRightStatusOptions;
2968
+ exports.DeliveryMethodOptions = DeliveryMethodOptions;
2969
+ exports.DeviceApi = DeviceApi;
2970
+ exports.DeviceStatusOptions = DeviceStatusOptions;
2971
+ exports.DeviceTypeOptions = DeviceTypeOptions;
2972
+ exports.DeviceUserApi = DeviceUserApi;
2973
+ exports.DiseaseCareServiceFlowStatusOptions = DiseaseCareServiceFlowStatusOptions;
2974
+ exports.FileTypeOptions = FileTypeOptions;
2975
+ exports.GenderOptions = GenderOptions;
2976
+ exports.GroupJoinTypeOptions = GroupJoinTypeOptions;
2977
+ exports.HealthCommonApi = HealthCommonApi;
2978
+ exports.HealthMetricApi = HealthMetricApi;
2979
+ exports.HealthProfileApi = HealthProfileApi;
2980
+ exports.HealthRecordTypeOptions = HealthRecordTypeOptions;
2981
+ exports.HealthSelfAssessApi = HealthSelfAssessApi;
2982
+ exports.HealthServiceTypeOptions = HealthServiceTypeOptions;
2983
+ exports.HealthStudyPlanExecMethodOptions = HealthStudyPlanExecMethodOptions;
2984
+ exports.HealthStudyServiceFlowStatusOptions = HealthStudyServiceFlowStatusOptions;
2985
+ exports.HealthToolApi = HealthToolApi;
2986
+ exports.HelpCenterApi = HelpCenterApi;
2987
+ exports.ImUserApi = ImUserApi;
2988
+ exports.InterviewServiceTaskStatusOptions = InterviewServiceTaskStatusOptions;
2989
+ exports.KmArticleApi = KmArticleApi;
2990
+ exports.KmFormApi = KmFormApi;
2991
+ exports.KmFormRuleRelationApi = KmFormRuleRelationApi;
2992
+ exports.LoginApi = LoginApi;
2993
+ exports.MarketingApi = MarketingApi;
2994
+ exports.MarketingTaskLogStatusOptions = MarketingTaskLogStatusOptions;
2995
+ exports.MarketingTaskStatusOptions = MarketingTaskStatusOptions;
2996
+ exports.MemberListTypeMap = MemberListTypeMap;
2997
+ exports.MessageActionLabelOptions = MessageActionLabelOptions;
2998
+ exports.MessageBizCategoryOptions = MessageBizCategoryOptions;
2999
+ exports.MessageChannelTypeOptions = MessageChannelTypeOptions;
3000
+ exports.MessageRecordApi = MessageRecordApi;
3001
+ exports.MessageStyleOptions = MessageStyleOptions;
3002
+ exports.MetricExceptionLevelOptions = MetricExceptionLevelOptions;
3003
+ exports.MetricExceptionStatusOptions = MetricExceptionStatusOptions;
3004
+ exports.MetricValueTypeOptions = MetricValueTypeOptions;
3005
+ exports.MineApi = MineApi;
3006
+ exports.PlanExecMethodOptions = PlanExecMethodOptions;
3007
+ exports.PlanExecTypeOptions = PlanExecTypeOptions;
3008
+ exports.Resource = Resource;
3009
+ exports.RightQrcodeApi = RightQrcodeApi;
3010
+ exports.RightServiceConfigApi = RightServiceConfigApi;
3011
+ exports.ServiceTaskStatusOptions = ServiceTaskStatusOptions;
3012
+ exports.ShcpUserTypeOptions = ShcpUserTypeOptions;
3013
+ exports.SystemRightApi = SystemRightApi;
3014
+ exports.UserGroupApi = UserGroupApi;
3015
+ exports.VisitTypeOptions = VisitTypeOptions;
3016
+ exports.checkResponse = checkResponse;
3017
+ exports.commonProccessResponse = commonProccessResponse;
3018
+ exports.crudConsumerApi = crudConsumerApi;
3019
+ exports.crudConsumerGroupApi = crudConsumerGroupApi;
3020
+ exports.crudDiseaseCareAbnormalTaskApi = crudDiseaseCareAbnormalTaskApi;
3021
+ exports.crudDiseaseCareAssessTaskApi = crudDiseaseCareAssessTaskApi;
3022
+ exports.crudDiseaseCareConsumerApi = crudDiseaseCareConsumerApi;
3023
+ exports.crudDiseaseCareFollowupTaskApi = crudDiseaseCareFollowupTaskApi;
3024
+ exports.crudDiseaseCareInterviewTaskApi = crudDiseaseCareInterviewTaskApi;
3025
+ exports.crudDiseaseCareReferralApi = crudDiseaseCareReferralApi;
3026
+ exports.crudHealthStudyAbnormalTaskApi = crudHealthStudyAbnormalTaskApi;
3027
+ exports.crudHealthStudyAssessTaskApi = crudHealthStudyAssessTaskApi;
3028
+ exports.crudHealthStudyConsumerApi = crudHealthStudyConsumerApi;
3029
+ exports.crudHealthStudyFollowupTaskApi = crudHealthStudyFollowupTaskApi;
3030
+ exports.crudHealthStudyInterviewTaskApi = crudHealthStudyInterviewTaskApi;
3031
+ exports.crudHealthStudyReferralApi = crudHealthStudyReferralApi;
3032
+ exports.diseaseExceptionOpApi = diseaseExceptionOpApi;
3033
+ exports.diseaseOpApi = diseaseOpApi;
3034
+ exports.formatMetricData = formatMetricData;
3035
+ exports.getPlanExecLabel = getPlanExecLabel;
3036
+ exports.healthStudyExceptionOpApi = healthStudyExceptionOpApi;
3037
+ exports.healthStudyOpApi = healthStudyOpApi;
3038
+ //# sourceMappingURL=index.js.map