shcp-api-lib 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -0
- package/dist/index.d.ts +5660 -0
- package/dist/index.esm.js +2954 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +3038 -0
- package/dist/index.js.map +1 -0
- package/dist/types/src/api/app-client-api.d.ts +12 -0
- package/dist/types/src/api/app-client-page-config-api.d.ts +5 -0
- package/dist/types/src/api/app-client-setting-api.d.ts +5 -0
- package/dist/types/src/api/common-dict-api.d.ts +40 -0
- package/dist/types/src/api/common-file-api.d.ts +5 -0
- package/dist/types/src/api/common-right-api.d.ts +60 -0
- package/dist/types/src/api/consumer-api.d.ts +39 -0
- package/dist/types/src/api/consumer-bind-api.d.ts +15 -0
- package/dist/types/src/api/consumer-device-api.d.ts +24 -0
- package/dist/types/src/api/consumer-favorite-api.d.ts +8 -0
- package/dist/types/src/api/device-api.d.ts +19 -0
- package/dist/types/src/api/device-user-api.d.ts +29 -0
- package/dist/types/src/api/disease-care-right-api.d.ts +22 -0
- package/dist/types/src/api/health-common-api.d.ts +15 -0
- package/dist/types/src/api/health-metric-api.d.ts +9 -0
- package/dist/types/src/api/health-profile-api.d.ts +8 -0
- package/dist/types/src/api/health-self-assess-api.d.ts +8 -0
- package/dist/types/src/api/health-study-right-api.d.ts +23 -0
- package/dist/types/src/api/health-tool-api.d.ts +14 -0
- package/dist/types/src/api/help-center.d.ts +4 -0
- package/dist/types/src/api/im-user-api.d.ts +7 -0
- package/dist/types/src/api/index.d.ts +32 -0
- package/dist/types/src/api/km-article-api.d.ts +9 -0
- package/dist/types/src/api/km-form-api.d.ts +10 -0
- package/dist/types/src/api/km-form-rule-relation-api.d.ts +6 -0
- package/dist/types/src/api/login-api.d.ts +18 -0
- package/dist/types/src/api/marketing-api.d.ts +16 -0
- package/dist/types/src/api/message-record-api.d.ts +7 -0
- package/dist/types/src/api/mine-api.d.ts +8 -0
- package/dist/types/src/api/right-qrcode-api.d.ts +9 -0
- package/dist/types/src/api/right-service-config-api.d.ts +18 -0
- package/dist/types/src/api/system-right-api.d.ts +17 -0
- package/dist/types/src/api/user-group-api.d.ts +11 -0
- package/dist/types/src/constants/km-const.d.ts +59 -0
- package/dist/types/src/constants/metric.d.ts +17 -0
- package/dist/types/src/constants/qiniuUploader.d.ts +49 -0
- package/dist/types/src/constants/shcp-common.d.ts +428 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/shcp-api-sdk.d.ts +26 -0
- package/dist/types/src/type/model/app-client-model.d.ts +138 -0
- package/dist/types/src/type/model/app-client-setting-model.d.ts +46 -0
- package/dist/types/src/type/model/blade-system-model.d.ts +34 -0
- package/dist/types/src/type/model/common-dict-model.d.ts +100 -0
- package/dist/types/src/type/model/common-file-model.d.ts +10 -0
- package/dist/types/src/type/model/common-model.d.ts +9 -0
- package/dist/types/src/type/model/common-right-model.d.ts +929 -0
- package/dist/types/src/type/model/consumer-bind-model.d.ts +175 -0
- package/dist/types/src/type/model/consumer-device-model.d.ts +114 -0
- package/dist/types/src/type/model/consumer-favorite-model.d.ts +105 -0
- package/dist/types/src/type/model/consumer-model.d.ts +214 -0
- package/dist/types/src/type/model/device-model.d.ts +295 -0
- package/dist/types/src/type/model/device-user-model.d.ts +53 -0
- package/dist/types/src/type/model/health-care-config-model.d.ts +301 -0
- package/dist/types/src/type/model/health-metric-model.d.ts +181 -0
- package/dist/types/src/type/model/health-profile-model.d.ts +83 -0
- package/dist/types/src/type/model/health-self-assess-model.d.ts +35 -0
- package/dist/types/src/type/model/health-tool-model.d.ts +105 -0
- package/dist/types/src/type/model/im-user-model.d.ts +44 -0
- package/dist/types/src/type/model/index.d.ts +30 -0
- package/dist/types/src/type/model/km-article-model.d.ts +275 -0
- package/dist/types/src/type/model/km-form-model.d.ts +745 -0
- package/dist/types/src/type/model/km-form-rule-relation-model.d.ts +31 -0
- package/dist/types/src/type/model/login-model.d.ts +90 -0
- package/dist/types/src/type/model/marketing-model.d.ts +142 -0
- package/dist/types/src/type/model/message-record-model.d.ts +59 -0
- package/dist/types/src/type/model/mine-model.d.ts +100 -0
- package/dist/types/src/type/model/right-qrcode-model.d.ts +143 -0
- package/dist/types/src/type/model/right-service-config-model.d.ts +2 -0
- package/dist/types/src/type/model/system-right-model.d.ts +134 -0
- package/dist/types/src/type/model/user-group-model.d.ts +45 -0
- package/dist/types/src/type/net-types.d.ts +37 -0
- package/package.json +47 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
import { FormRuleType } from '../../constants/km-const';
|
2
|
+
export interface FormRuleRelationDTO {
|
3
|
+
/** id */
|
4
|
+
id?: number;
|
5
|
+
/** 租户id */
|
6
|
+
tenantId?: string;
|
7
|
+
/** 表单关联规则类型 */
|
8
|
+
type?: FormRuleType;
|
9
|
+
/** 表单id */
|
10
|
+
formId?: number;
|
11
|
+
/** 规则id */
|
12
|
+
ruleId?: number;
|
13
|
+
/** 规则代码 */
|
14
|
+
ruleCode?: string;
|
15
|
+
/** 扩展数据 */
|
16
|
+
extra?: string;
|
17
|
+
}
|
18
|
+
export interface FormRuleRelationQuery {
|
19
|
+
/** 租户id */
|
20
|
+
tenantId?: string;
|
21
|
+
/** 表单规则类型 */
|
22
|
+
type?: FormRuleType;
|
23
|
+
/** 表单规则类型集合 */
|
24
|
+
typeList?: FormRuleType[];
|
25
|
+
/** 表单id */
|
26
|
+
formId?: number;
|
27
|
+
/** 规则id */
|
28
|
+
ruleId?: number;
|
29
|
+
/** 使用域 */
|
30
|
+
extra?: string;
|
31
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
export interface PotentialCustomerCreateRequest {
|
2
|
+
name: string;
|
3
|
+
phone: string;
|
4
|
+
workplace: string;
|
5
|
+
email: string;
|
6
|
+
}
|
7
|
+
export interface PotentialCustomerDTO {
|
8
|
+
id: number;
|
9
|
+
name: string;
|
10
|
+
phone: string;
|
11
|
+
workplace: string;
|
12
|
+
email: string;
|
13
|
+
status: any;
|
14
|
+
remark: string;
|
15
|
+
createTime: Date;
|
16
|
+
}
|
17
|
+
export interface SaleDTO {
|
18
|
+
name: string;
|
19
|
+
wxQrCodeUrl: string;
|
20
|
+
workplace: string;
|
21
|
+
remark: string;
|
22
|
+
}
|
23
|
+
export interface Tenant {
|
24
|
+
tenantId: string;
|
25
|
+
tenantName: string;
|
26
|
+
tenantType: number;
|
27
|
+
domainUrl: string;
|
28
|
+
loginBackgroundUrl: string;
|
29
|
+
loginLogoUrl: string;
|
30
|
+
homePageLogoUrl: string;
|
31
|
+
homePageBackgroundUrl: string;
|
32
|
+
linkman: string;
|
33
|
+
contactNumber: string;
|
34
|
+
address: string;
|
35
|
+
accountNumber: number;
|
36
|
+
expireTime: Date;
|
37
|
+
packageId: number | null;
|
38
|
+
datasourceId: number | null;
|
39
|
+
licenseKey: string;
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* 客户端登录请求参数
|
43
|
+
*/
|
44
|
+
export interface AppClientLoginRequest {
|
45
|
+
/**
|
46
|
+
* 授权类型
|
47
|
+
*/
|
48
|
+
grantType?: string;
|
49
|
+
/**
|
50
|
+
* 租户id
|
51
|
+
*/
|
52
|
+
tenantId: string;
|
53
|
+
/**
|
54
|
+
* 客户端Id
|
55
|
+
*/
|
56
|
+
appClientId: number | string;
|
57
|
+
/**
|
58
|
+
* 设备用户id
|
59
|
+
*/
|
60
|
+
deviceUserId?: number | string;
|
61
|
+
/**
|
62
|
+
* 设备用户账号id
|
63
|
+
*/
|
64
|
+
loginAccount?: string;
|
65
|
+
/**
|
66
|
+
* 设备类型
|
67
|
+
*/
|
68
|
+
loginCode?: string;
|
69
|
+
/**
|
70
|
+
* 用户配置信息(rawData+signature, encryptedData+iv)
|
71
|
+
*/
|
72
|
+
userProfile?: {
|
73
|
+
/**
|
74
|
+
* 原始数据
|
75
|
+
*/
|
76
|
+
rawData?: string;
|
77
|
+
/**
|
78
|
+
* 签名
|
79
|
+
*/
|
80
|
+
signature?: string;
|
81
|
+
/**
|
82
|
+
* 加密数据
|
83
|
+
*/
|
84
|
+
encryptedData?: string;
|
85
|
+
/**
|
86
|
+
* 初始向量
|
87
|
+
*/
|
88
|
+
iv?: string;
|
89
|
+
};
|
90
|
+
}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
import { MarketingTaskLogStatus, MarketingTaskStatus, MessageActionLabel, MessageBizCategory, MessageChannelType, MessageStyle } from '../../constants/shcp-common';
|
2
|
+
import type { PageRequest } from './common-model';
|
3
|
+
import type { ConsumerDTO, ConsumerGroupDTO } from './consumer-model';
|
4
|
+
export interface MarketingContentDTO {
|
5
|
+
/** 主键id 业务名contentId */
|
6
|
+
id: number;
|
7
|
+
/** 关联的营销应用ID,关联:Marketing.id */
|
8
|
+
marketingId: number;
|
9
|
+
/** 营销内容的发送渠道 */
|
10
|
+
channelType: number;
|
11
|
+
/** 营销内容配置信息,json格式 */
|
12
|
+
config: string;
|
13
|
+
}
|
14
|
+
export interface MarketingContentCreateRequest {
|
15
|
+
marketingId: number;
|
16
|
+
smsContents: SmsDTO[];
|
17
|
+
cAppCardContents: CAppCardDTO[];
|
18
|
+
}
|
19
|
+
export interface MarketingContentUpdateRequest {
|
20
|
+
marketingId: number;
|
21
|
+
smsContents: SmsDTO[];
|
22
|
+
cAppCardContents: CAppCardDTO[];
|
23
|
+
}
|
24
|
+
export interface SmsDTO {
|
25
|
+
templateId: number;
|
26
|
+
content: string;
|
27
|
+
templateParams: Array<Map<string, string>>;
|
28
|
+
time: number;
|
29
|
+
}
|
30
|
+
export interface CAppCardDTO {
|
31
|
+
templateId: number;
|
32
|
+
title: string;
|
33
|
+
subtitle: string;
|
34
|
+
body: string;
|
35
|
+
resourceId: number;
|
36
|
+
time: number;
|
37
|
+
}
|
38
|
+
export interface MarketingDTO {
|
39
|
+
id: number;
|
40
|
+
tenantId: string;
|
41
|
+
name: string;
|
42
|
+
type: number;
|
43
|
+
userSourceType: number;
|
44
|
+
pushType: number;
|
45
|
+
pushWay: string;
|
46
|
+
groupId: string;
|
47
|
+
consumerIds: string;
|
48
|
+
status: number;
|
49
|
+
consumerGroupDTOS: ConsumerGroupDTO[];
|
50
|
+
consumerDTOS: ConsumerDTO[];
|
51
|
+
}
|
52
|
+
export interface MarketingCreateRequest {
|
53
|
+
tenantId: string;
|
54
|
+
name: string;
|
55
|
+
type: number;
|
56
|
+
groupId: string;
|
57
|
+
consumerIds: string;
|
58
|
+
}
|
59
|
+
export interface MarketingUpdateRequest {
|
60
|
+
id: number;
|
61
|
+
tenantId: string;
|
62
|
+
name: string;
|
63
|
+
type: number;
|
64
|
+
pushType: number;
|
65
|
+
pushWay: string;
|
66
|
+
status: number;
|
67
|
+
groupId: string;
|
68
|
+
consumerIds: string;
|
69
|
+
}
|
70
|
+
export interface MarketingQuery extends PageRequest {
|
71
|
+
id: number;
|
72
|
+
tenantId: string;
|
73
|
+
name: string;
|
74
|
+
type: number;
|
75
|
+
userSourceType: number;
|
76
|
+
pushType: number;
|
77
|
+
pushWay: string;
|
78
|
+
status: number;
|
79
|
+
}
|
80
|
+
export interface MarketingDeleteRequest {
|
81
|
+
id: number;
|
82
|
+
}
|
83
|
+
export interface MarketingTaskDTO {
|
84
|
+
id: number;
|
85
|
+
marketingId: number;
|
86
|
+
contentId: number;
|
87
|
+
name: string;
|
88
|
+
execTime: number;
|
89
|
+
status: MarketingTaskStatus;
|
90
|
+
taskSendNum: number;
|
91
|
+
tenantId: string;
|
92
|
+
taskSuccessNum: number;
|
93
|
+
taskFailNum: number;
|
94
|
+
}
|
95
|
+
export interface MarketingTaskQuery extends PageRequest {
|
96
|
+
startCreateTime: number;
|
97
|
+
endCreateTime: number;
|
98
|
+
startActualExecTime: number;
|
99
|
+
endActualExecTime: number;
|
100
|
+
status: MarketingTaskStatus;
|
101
|
+
parentId: number;
|
102
|
+
}
|
103
|
+
export interface MarketingTaskLogDTO {
|
104
|
+
createTime: number;
|
105
|
+
consumerId: number;
|
106
|
+
consumerUrl: string;
|
107
|
+
content: string;
|
108
|
+
status: MarketingTaskLogStatus;
|
109
|
+
}
|
110
|
+
export interface MarketingTaskLogQuery extends PageRequest {
|
111
|
+
taskId: number;
|
112
|
+
consumerId: number;
|
113
|
+
startCreateTime: string;
|
114
|
+
endCreateTime: string;
|
115
|
+
status: MarketingTaskLogStatus;
|
116
|
+
}
|
117
|
+
export interface MarketingTaskLogCreateRequest {
|
118
|
+
status: MarketingTaskLogStatus;
|
119
|
+
consumerId: number;
|
120
|
+
consumerPhone: string;
|
121
|
+
taskId: number;
|
122
|
+
}
|
123
|
+
export interface MessageTemplateDTO {
|
124
|
+
name: string;
|
125
|
+
channelType: MessageChannelType;
|
126
|
+
style: MessageStyle;
|
127
|
+
bizCategory: MessageBizCategory;
|
128
|
+
title: string;
|
129
|
+
subtitle: string;
|
130
|
+
body: string;
|
131
|
+
actionLabel: MessageActionLabel;
|
132
|
+
actionUrl: string;
|
133
|
+
smsTemplateId: string;
|
134
|
+
placeHolders: Array<Map<string, string>>;
|
135
|
+
}
|
136
|
+
export interface MessageTemplateQuery {
|
137
|
+
TemplateName?: string;
|
138
|
+
messageChannelType?: MessageChannelType;
|
139
|
+
}
|
140
|
+
export interface marketingSendContentRequest {
|
141
|
+
marketingId: string;
|
142
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import type { HealthServiceType, MessageActionLabel, MessageActionStatus, MessageBizCategory, MessageChannelType, MessageStatus, MessageStyle } from '../../constants/shcp-common';
|
2
|
+
import type { PageRequest } from './common-model';
|
3
|
+
export interface MessageRecordDTO {
|
4
|
+
id: number;
|
5
|
+
title: string;
|
6
|
+
subtitle: string;
|
7
|
+
body: string;
|
8
|
+
style: MessageStyle;
|
9
|
+
actionLabel: MessageActionLabel;
|
10
|
+
bizCategory: MessageBizCategory;
|
11
|
+
actionUrl: string;
|
12
|
+
actionStatus: MessageActionStatus;
|
13
|
+
extra: string;
|
14
|
+
status: MessageStatus;
|
15
|
+
readTime: string;
|
16
|
+
createTime: string;
|
17
|
+
}
|
18
|
+
export interface WrapperMessageRecordDTO {
|
19
|
+
dateTime: string;
|
20
|
+
records: MessageRecordDTO[];
|
21
|
+
id: string;
|
22
|
+
}
|
23
|
+
export interface MessageRecordQuery extends PageRequest {
|
24
|
+
tenantId: string | number;
|
25
|
+
outId: number;
|
26
|
+
serviceType: HealthServiceType;
|
27
|
+
receiverId: number | string;
|
28
|
+
receiverUrl: string;
|
29
|
+
bizCategory: MessageBizCategory;
|
30
|
+
channel: MessageChannelType;
|
31
|
+
status: MessageStatus;
|
32
|
+
notStatus: MessageStatus;
|
33
|
+
query: any;
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* 消息记录的更新请求
|
37
|
+
*/
|
38
|
+
export interface MessageRecordUpdateRequest {
|
39
|
+
/**
|
40
|
+
* 消息记录ID
|
41
|
+
*/
|
42
|
+
id: number;
|
43
|
+
/**
|
44
|
+
* 卡片消息的动作标签名称,比如:去采集、去打卡、去查看(文章)
|
45
|
+
*/
|
46
|
+
actionLabel?: MessageActionLabel;
|
47
|
+
/**
|
48
|
+
* 卡片消息的动作跳转URL
|
49
|
+
*/
|
50
|
+
actionUrl?: string;
|
51
|
+
/**
|
52
|
+
* 卡片动作执行状态
|
53
|
+
*/
|
54
|
+
actionStatus?: MessageActionStatus;
|
55
|
+
/**
|
56
|
+
* 消息状态
|
57
|
+
*/
|
58
|
+
status?: MessageStatus;
|
59
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
import type { AppPlatformType, ShcpUserType } from '../../constants/shcp-common';
|
2
|
+
export interface UserInfo {
|
3
|
+
id: string;
|
4
|
+
password: string;
|
5
|
+
tenantName: string;
|
6
|
+
name: string;
|
7
|
+
userType: number;
|
8
|
+
userTypeName: string;
|
9
|
+
account: string;
|
10
|
+
avatar: string;
|
11
|
+
roleName: string;
|
12
|
+
deptName: string;
|
13
|
+
postName: string;
|
14
|
+
sexName: string;
|
15
|
+
userExt: string;
|
16
|
+
phone: string;
|
17
|
+
birthday: string;
|
18
|
+
email: string;
|
19
|
+
tenantId: string;
|
20
|
+
sex: number;
|
21
|
+
}
|
22
|
+
export interface DeviceUserInfo {
|
23
|
+
user_id: string;
|
24
|
+
user_name: string;
|
25
|
+
tenant_id: string;
|
26
|
+
access_token: string;
|
27
|
+
refresh_token: string;
|
28
|
+
token_type: string;
|
29
|
+
expires_in: number;
|
30
|
+
license: string;
|
31
|
+
nick_name: string;
|
32
|
+
oauth_id: string;
|
33
|
+
post_id: string;
|
34
|
+
real_name: string;
|
35
|
+
avatar: string;
|
36
|
+
gender: number;
|
37
|
+
role_id: string;
|
38
|
+
account: string;
|
39
|
+
role_name: string;
|
40
|
+
mobile?: string;
|
41
|
+
}
|
42
|
+
export interface AppClientPageConfigQuery {
|
43
|
+
id?: number;
|
44
|
+
consumerId?: number | string;
|
45
|
+
pageName?: string;
|
46
|
+
componentName: string;
|
47
|
+
appClientId?: number | string;
|
48
|
+
tenantId?: string;
|
49
|
+
platformType?: AppPlatformType;
|
50
|
+
usertype?: ShcpUserType;
|
51
|
+
componentNames?: Array<string>;
|
52
|
+
}
|
53
|
+
export interface AppClientPageConfigDTO {
|
54
|
+
id: number;
|
55
|
+
name: string;
|
56
|
+
title: string;
|
57
|
+
components: ComponentInfo[];
|
58
|
+
description: string;
|
59
|
+
vendorName: string;
|
60
|
+
}
|
61
|
+
export interface ComponentInfo {
|
62
|
+
id: number;
|
63
|
+
name: string;
|
64
|
+
title: string;
|
65
|
+
style: string;
|
66
|
+
config: ComponentConfig;
|
67
|
+
componentCoverUrl: string;
|
68
|
+
updateTime: string;
|
69
|
+
lengthNum: number;
|
70
|
+
}
|
71
|
+
export interface ComponentConfig {
|
72
|
+
id: number;
|
73
|
+
items: ComponentItem[];
|
74
|
+
verticalLayout: string;
|
75
|
+
horizontalLayout: string;
|
76
|
+
itemCountEachRow: number;
|
77
|
+
isSwap: string;
|
78
|
+
alignItems: string;
|
79
|
+
articleCategoryRootId: string;
|
80
|
+
coverImage: string;
|
81
|
+
mainTitle: string;
|
82
|
+
subTitle: string;
|
83
|
+
tags: string[];
|
84
|
+
introduction: string;
|
85
|
+
updateTime: string;
|
86
|
+
}
|
87
|
+
export interface ComponentItem {
|
88
|
+
id: number;
|
89
|
+
sort: number;
|
90
|
+
name: string;
|
91
|
+
title: string;
|
92
|
+
subtitle: string;
|
93
|
+
iconUrl: string;
|
94
|
+
isShow: string | number;
|
95
|
+
linkType: string;
|
96
|
+
link: string;
|
97
|
+
ServiceType: number;
|
98
|
+
updateTime: string;
|
99
|
+
lengthNum: number;
|
100
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
import { HealthServiceType } from '../../constants/shcp-common';
|
2
|
+
import type { PageRequest } from './common-model';
|
3
|
+
/**
|
4
|
+
* 权益二维码创建参数
|
5
|
+
*/
|
6
|
+
export interface RightQrCodeRequest extends PageRequest {
|
7
|
+
/**
|
8
|
+
* 二维码关联的权益ID
|
9
|
+
*/
|
10
|
+
rightId: number;
|
11
|
+
/**
|
12
|
+
* 二维码标题
|
13
|
+
*/
|
14
|
+
title?: string;
|
15
|
+
/**
|
16
|
+
* 来源医生ID
|
17
|
+
*/
|
18
|
+
sourceUserId?: number;
|
19
|
+
/**
|
20
|
+
* 服务医生ID
|
21
|
+
*/
|
22
|
+
serviceUserId?: number;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* 权益二维码数据传输对象
|
26
|
+
*/
|
27
|
+
export interface RightQrCodeDTO {
|
28
|
+
/**
|
29
|
+
* 主键ID
|
30
|
+
*/
|
31
|
+
id?: number;
|
32
|
+
/**
|
33
|
+
* 二维码关联的权益ID,关联: Right.id
|
34
|
+
*/
|
35
|
+
rightId?: number;
|
36
|
+
/**
|
37
|
+
* 权益名称
|
38
|
+
*/
|
39
|
+
rightName?: string;
|
40
|
+
/**
|
41
|
+
* 二维码所属业务租户ID,关联: Tenant.id。注: 冗余字段
|
42
|
+
*/
|
43
|
+
tenantId?: string;
|
44
|
+
/**
|
45
|
+
* 二维码标题
|
46
|
+
*/
|
47
|
+
title?: string;
|
48
|
+
/**
|
49
|
+
* 来源医生ID,必须是所属服务组的用户,关联:BladeUser.id
|
50
|
+
*/
|
51
|
+
sourceUserId?: number;
|
52
|
+
/**
|
53
|
+
* 来源医生名称
|
54
|
+
*/
|
55
|
+
sourceUserName?: string;
|
56
|
+
/**
|
57
|
+
* 服务医生ID,必须是所属服务组的用户,关联: BladeUser.id
|
58
|
+
*/
|
59
|
+
serviceUserId?: number;
|
60
|
+
/**
|
61
|
+
* 服务医生名称
|
62
|
+
*/
|
63
|
+
serviceUserName?: string;
|
64
|
+
/**
|
65
|
+
* 二维码包含的目标URL,比如小程序、H5等
|
66
|
+
*/
|
67
|
+
targetUrl?: string;
|
68
|
+
/**
|
69
|
+
* 二维码中logo图片
|
70
|
+
*/
|
71
|
+
logo?: string;
|
72
|
+
/**
|
73
|
+
* 最终生成的二维码图片的URL
|
74
|
+
*/
|
75
|
+
qrCodeImage?: string;
|
76
|
+
/**
|
77
|
+
* 服务类型
|
78
|
+
*/
|
79
|
+
serviceType?: HealthServiceType;
|
80
|
+
}
|
81
|
+
/**
|
82
|
+
* 权益二维码更新参数
|
83
|
+
*/
|
84
|
+
export interface RightQrCodeUpdateRequest {
|
85
|
+
/**
|
86
|
+
* 主键ID
|
87
|
+
*/
|
88
|
+
id: number;
|
89
|
+
/**
|
90
|
+
* 二维码关联的权益ID
|
91
|
+
*/
|
92
|
+
rightId?: number;
|
93
|
+
/**
|
94
|
+
* 二维码所属业务租户ID
|
95
|
+
*/
|
96
|
+
tenantId?: string;
|
97
|
+
/**
|
98
|
+
* 二维码标题
|
99
|
+
*/
|
100
|
+
title?: string;
|
101
|
+
/**
|
102
|
+
* 来源医生ID
|
103
|
+
*/
|
104
|
+
sourceUserId?: number;
|
105
|
+
/**
|
106
|
+
* 服务医生ID
|
107
|
+
*/
|
108
|
+
serviceUserId?: number;
|
109
|
+
/**
|
110
|
+
* 二维码中logo图片
|
111
|
+
*/
|
112
|
+
logo?: string;
|
113
|
+
}
|
114
|
+
/**
|
115
|
+
* 权益二维码创建参数
|
116
|
+
*/
|
117
|
+
export interface RightQrCodeCreateRequest {
|
118
|
+
/**
|
119
|
+
* 二维码关联的权益ID
|
120
|
+
*/
|
121
|
+
rightId: number | string;
|
122
|
+
/**
|
123
|
+
* 二维码所属业务租户ID
|
124
|
+
*/
|
125
|
+
tenantId: string;
|
126
|
+
/**
|
127
|
+
* 二维码标题
|
128
|
+
*/
|
129
|
+
title: string;
|
130
|
+
/**
|
131
|
+
* 来源医生ID
|
132
|
+
*/
|
133
|
+
sourceUserId: number | string;
|
134
|
+
/**
|
135
|
+
* 服务医生ID
|
136
|
+
*/
|
137
|
+
serviceUserId: number | string;
|
138
|
+
/**
|
139
|
+
* 二维码中logo图片
|
140
|
+
*/
|
141
|
+
logo?: string;
|
142
|
+
[x: string]: any;
|
143
|
+
}
|
@@ -0,0 +1,134 @@
|
|
1
|
+
import { ConsumerRightStatus, HealthServiceType } from '../../constants/shcp-common';
|
2
|
+
import { PageRequest } from './common-model';
|
3
|
+
/**
|
4
|
+
* 权益查询对象
|
5
|
+
*/
|
6
|
+
export interface RightQuery extends PageRequest {
|
7
|
+
/**
|
8
|
+
* 权益ID
|
9
|
+
*/
|
10
|
+
id?: number;
|
11
|
+
/**
|
12
|
+
* 权益ID(多个)
|
13
|
+
*/
|
14
|
+
ids?: number[];
|
15
|
+
/**
|
16
|
+
* 权益所属租户ID,关联: Tenant.id
|
17
|
+
*/
|
18
|
+
tenantId?: string | number;
|
19
|
+
/**
|
20
|
+
* 权益所属租户IDs,关联: Tenant.id
|
21
|
+
*/
|
22
|
+
tenantIds?: string[];
|
23
|
+
/**
|
24
|
+
* 权益名称
|
25
|
+
*/
|
26
|
+
name?: string;
|
27
|
+
/**
|
28
|
+
* 权益类型,参考: RightType
|
29
|
+
*/
|
30
|
+
type?: number;
|
31
|
+
/**
|
32
|
+
* 权益关联的健管服务类型,参考:HealthServiceType
|
33
|
+
*/
|
34
|
+
serviceType?: HealthServiceType;
|
35
|
+
/**
|
36
|
+
* 权益关联的健管服务类型,参考:HealthServiceType
|
37
|
+
*/
|
38
|
+
serviceTypes?: HealthServiceType[];
|
39
|
+
/**
|
40
|
+
* 权益状态,参考:RightStatus
|
41
|
+
*/
|
42
|
+
status?: ConsumerRightStatus;
|
43
|
+
/**
|
44
|
+
* 权益的消费用户组根ID,关联: ConsumerGroup.ID
|
45
|
+
*/
|
46
|
+
consumerGroupRootId?: number;
|
47
|
+
/**
|
48
|
+
* 权益的消费用户组根IDs,关联: ConsumerGroup.ID
|
49
|
+
*/
|
50
|
+
consumerGroupRootIds?: number[];
|
51
|
+
/**
|
52
|
+
* 权益的医生服务组根ID,关联: TenantUserGroup.id
|
53
|
+
*/
|
54
|
+
tenantUserGroupRootId?: number;
|
55
|
+
/**
|
56
|
+
* 权益的医生服务组根IDs,关联: TenantUserGroup.id
|
57
|
+
*/
|
58
|
+
tenantUserGroupRootIds?: number[];
|
59
|
+
/**
|
60
|
+
* 权益服务用户ids
|
61
|
+
*/
|
62
|
+
tenantUserIds?: (number | string)[];
|
63
|
+
/**
|
64
|
+
* 消费者用户id
|
65
|
+
*/
|
66
|
+
consumerId?: number | string;
|
67
|
+
/**
|
68
|
+
* 权益元数据
|
69
|
+
*/
|
70
|
+
metadata?: Record<string, any>;
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* 权益复制响应
|
74
|
+
*/
|
75
|
+
export interface RightCopyResponse {
|
76
|
+
/**
|
77
|
+
* 权益映射id
|
78
|
+
*/
|
79
|
+
rightIdMapping?: Record<number, number>;
|
80
|
+
/**
|
81
|
+
* 权益配置映射id
|
82
|
+
*/
|
83
|
+
rightServiceConfigIdMapping?: Record<number, number>;
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* 权益复制请求
|
87
|
+
*/
|
88
|
+
export interface RightCopyRequest {
|
89
|
+
/**
|
90
|
+
* 模版租户ID
|
91
|
+
*/
|
92
|
+
templateTenantId: string;
|
93
|
+
/**
|
94
|
+
* 新租户ID
|
95
|
+
*/
|
96
|
+
newTenantId: string;
|
97
|
+
}
|
98
|
+
/**
|
99
|
+
* 复制更新权益服务配置
|
100
|
+
*/
|
101
|
+
export interface RightServiceConfigCopyUpdateRequest {
|
102
|
+
/**
|
103
|
+
* 模版租户ID
|
104
|
+
*/
|
105
|
+
templateTenantId?: string;
|
106
|
+
/**
|
107
|
+
* 权益映射ID
|
108
|
+
*/
|
109
|
+
rightIdMapping?: Record<number, number>;
|
110
|
+
/**
|
111
|
+
* 权益配置映射ID
|
112
|
+
*/
|
113
|
+
rightServiceConfigIdMapping?: Record<number, number>;
|
114
|
+
/**
|
115
|
+
* 文章映射ID
|
116
|
+
*/
|
117
|
+
articleIdMapping?: Record<number, number>;
|
118
|
+
/**
|
119
|
+
* 文章分类映射ID
|
120
|
+
*/
|
121
|
+
articleCategoryIdMapping?: Record<number, number>;
|
122
|
+
/**
|
123
|
+
* 文章标签映射ID
|
124
|
+
*/
|
125
|
+
articleTagIdMapping?: Record<number, number>;
|
126
|
+
/**
|
127
|
+
* 表单关联映射ID
|
128
|
+
*/
|
129
|
+
formIdMapping?: Record<number, number>;
|
130
|
+
/**
|
131
|
+
* 规则关联映射ID
|
132
|
+
*/
|
133
|
+
ruleIdMapping?: Record<number, number>;
|
134
|
+
}
|