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,175 @@
|
|
1
|
+
/**
|
2
|
+
* 消费者绑定激活请求
|
3
|
+
*/
|
4
|
+
export interface ConsumerBindActiveRequest {
|
5
|
+
/**
|
6
|
+
* 主键ID
|
7
|
+
*/
|
8
|
+
id?: number;
|
9
|
+
/**
|
10
|
+
* 设备用户ID
|
11
|
+
*/
|
12
|
+
deviceUserId: number | string;
|
13
|
+
/**
|
14
|
+
* 消费用户ID
|
15
|
+
*/
|
16
|
+
consumerId: number | string;
|
17
|
+
/**
|
18
|
+
* 绑定该消费用户的客户端ID
|
19
|
+
*/
|
20
|
+
appClientId?: number | string;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* 消费者绑定DTO
|
24
|
+
*/
|
25
|
+
export interface ConsumerBindDTO {
|
26
|
+
/**
|
27
|
+
* 主键id
|
28
|
+
*/
|
29
|
+
id?: number;
|
30
|
+
/**
|
31
|
+
* 设备用户ID
|
32
|
+
*/
|
33
|
+
deviceUserId?: number;
|
34
|
+
/**
|
35
|
+
* 消费用户ID
|
36
|
+
*/
|
37
|
+
consumerId?: number;
|
38
|
+
/**
|
39
|
+
* 绑定该消费用户的客户端ID
|
40
|
+
*/
|
41
|
+
appClientId?: number;
|
42
|
+
/**
|
43
|
+
* 用户姓名
|
44
|
+
*/
|
45
|
+
name?: string;
|
46
|
+
/**
|
47
|
+
* 性别,0:未知、1:男、2:女
|
48
|
+
*/
|
49
|
+
gender?: number;
|
50
|
+
/**
|
51
|
+
* 年龄
|
52
|
+
*/
|
53
|
+
age?: number;
|
54
|
+
/**
|
55
|
+
* 出生日期
|
56
|
+
*/
|
57
|
+
birthday?: string;
|
58
|
+
/**
|
59
|
+
* 租户id
|
60
|
+
*/
|
61
|
+
tenantId?: string;
|
62
|
+
/**
|
63
|
+
* 身份证号
|
64
|
+
*/
|
65
|
+
identity?: string;
|
66
|
+
/**
|
67
|
+
* 手机号
|
68
|
+
*/
|
69
|
+
mobile?: string;
|
70
|
+
/**
|
71
|
+
* 家庭住址
|
72
|
+
*/
|
73
|
+
address?: string;
|
74
|
+
/**
|
75
|
+
* 绑定状态
|
76
|
+
*/
|
77
|
+
status?: number;
|
78
|
+
}
|
79
|
+
/**
|
80
|
+
* 消费者绑定创建请求
|
81
|
+
*/
|
82
|
+
export interface ConsumerBindCreateRequest {
|
83
|
+
/**
|
84
|
+
* 设备用户ID
|
85
|
+
*/
|
86
|
+
deviceUserId: number | string;
|
87
|
+
/**
|
88
|
+
* 消费用户ID
|
89
|
+
*/
|
90
|
+
consumerId: number | string;
|
91
|
+
/**
|
92
|
+
* 绑定该消费用户的客户端ID
|
93
|
+
*/
|
94
|
+
appClientId?: number | string;
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* 消费者绑定删除请求
|
98
|
+
*/
|
99
|
+
export interface ConsumerBindDeleteRequest {
|
100
|
+
/**
|
101
|
+
* 设备用户ID
|
102
|
+
*/
|
103
|
+
deviceUserId: number | string;
|
104
|
+
/**
|
105
|
+
* 消费用户ID
|
106
|
+
*/
|
107
|
+
consumerId: number | string;
|
108
|
+
/**
|
109
|
+
* 绑定该消费用户的客户端ID
|
110
|
+
*/
|
111
|
+
appClientId?: number | string;
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* 消费者绑定查询参数
|
115
|
+
*/
|
116
|
+
export interface ConsumerBindQuery {
|
117
|
+
/**
|
118
|
+
* 设备用户ID
|
119
|
+
*/
|
120
|
+
deviceUserId: number | string;
|
121
|
+
/**
|
122
|
+
* 消费用户ID
|
123
|
+
*/
|
124
|
+
consumerId?: number;
|
125
|
+
/**
|
126
|
+
* 绑定该消费用户的客户端ID
|
127
|
+
*/
|
128
|
+
appClientId?: number | string;
|
129
|
+
/**
|
130
|
+
* 绑定状态
|
131
|
+
*/
|
132
|
+
status?: number;
|
133
|
+
}
|
134
|
+
/**
|
135
|
+
* 消费者绑定发送短信验证码请求
|
136
|
+
*/
|
137
|
+
export interface ConsumerBindSendSmsCodeRequest {
|
138
|
+
/**
|
139
|
+
* 设备用户ID
|
140
|
+
*/
|
141
|
+
deviceUserId: number | string;
|
142
|
+
/**
|
143
|
+
* 手机号
|
144
|
+
*/
|
145
|
+
phone: string;
|
146
|
+
/**
|
147
|
+
* 租户id
|
148
|
+
*/
|
149
|
+
tenantId: string;
|
150
|
+
}
|
151
|
+
/**
|
152
|
+
* 消费者绑定更新请求
|
153
|
+
*/
|
154
|
+
export interface ConsumerBindUpdateRequest {
|
155
|
+
/**
|
156
|
+
* 主键ID
|
157
|
+
*/
|
158
|
+
id?: number;
|
159
|
+
/**
|
160
|
+
* 设备用户ID
|
161
|
+
*/
|
162
|
+
deviceUserId?: number | string;
|
163
|
+
/**
|
164
|
+
* 消费用户ID
|
165
|
+
*/
|
166
|
+
consumerId?: number | string;
|
167
|
+
/**
|
168
|
+
* 绑定该消费用户的客户端ID
|
169
|
+
*/
|
170
|
+
appClientId?: number | string;
|
171
|
+
/**
|
172
|
+
* 绑定状态
|
173
|
+
*/
|
174
|
+
status?: number;
|
175
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import { ConsumerDeviceStatus, DeviceStatus, DeviceType } from '../../constants/shcp-common';
|
2
|
+
import { DeviceDTO } from './device-model';
|
3
|
+
/**
|
4
|
+
* 消费用户绑定设备创建请求
|
5
|
+
*/
|
6
|
+
export interface ConsumerDeviceCreateRequest {
|
7
|
+
/**
|
8
|
+
* 设备ID
|
9
|
+
*/
|
10
|
+
deviceId: number;
|
11
|
+
/**
|
12
|
+
* 消费用户ID
|
13
|
+
*/
|
14
|
+
consumerId: number | string;
|
15
|
+
/**
|
16
|
+
* 所属租户id
|
17
|
+
*/
|
18
|
+
tenantId: string;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* 消费用户绑定设备创建请求
|
22
|
+
*/
|
23
|
+
export interface ConsumerDeviceUpdateRequest {
|
24
|
+
/**
|
25
|
+
* ID
|
26
|
+
*/
|
27
|
+
id: number;
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* 消费用户与设备绑定查询请求
|
31
|
+
*/
|
32
|
+
export interface ConsumerDeviceQuery {
|
33
|
+
/**
|
34
|
+
* 消费用户与设备绑定关系ID
|
35
|
+
*/
|
36
|
+
id?: number;
|
37
|
+
/**
|
38
|
+
* 设备ID
|
39
|
+
*/
|
40
|
+
deviceId?: number;
|
41
|
+
/**
|
42
|
+
* 设备ID集合
|
43
|
+
*/
|
44
|
+
deviceIds?: number[];
|
45
|
+
/**
|
46
|
+
* 消费用户ID
|
47
|
+
*/
|
48
|
+
consumerId?: number | string;
|
49
|
+
/**
|
50
|
+
* 设备所属的租户id
|
51
|
+
*/
|
52
|
+
tenantId?: string;
|
53
|
+
/**
|
54
|
+
* 设备绑定状态
|
55
|
+
*/
|
56
|
+
status?: ConsumerDeviceStatus;
|
57
|
+
/**
|
58
|
+
* 设备绑定状态集合
|
59
|
+
*/
|
60
|
+
statusArray?: ConsumerDeviceStatus[];
|
61
|
+
/**
|
62
|
+
* 绑定超时临界值
|
63
|
+
*/
|
64
|
+
overtime?: string;
|
65
|
+
/**
|
66
|
+
* 设备类型
|
67
|
+
*/
|
68
|
+
deviceType?: DeviceType;
|
69
|
+
/**
|
70
|
+
* 设备状态
|
71
|
+
*/
|
72
|
+
deviceStatus?: DeviceStatus;
|
73
|
+
/**
|
74
|
+
* 详情模式:查询设备详情
|
75
|
+
*/
|
76
|
+
detailMode?: boolean;
|
77
|
+
}
|
78
|
+
/**
|
79
|
+
* 消费用户设备DTO
|
80
|
+
*/
|
81
|
+
export interface ConsumerDeviceDTO {
|
82
|
+
/**
|
83
|
+
* 主键id
|
84
|
+
*/
|
85
|
+
id?: number;
|
86
|
+
/**
|
87
|
+
* 设备ID
|
88
|
+
*/
|
89
|
+
deviceId?: number;
|
90
|
+
/**
|
91
|
+
* 消费用户ID
|
92
|
+
*/
|
93
|
+
consumerId?: number;
|
94
|
+
/**
|
95
|
+
* 租户id
|
96
|
+
*/
|
97
|
+
tenantId?: string;
|
98
|
+
/**
|
99
|
+
* 绑定时间
|
100
|
+
*/
|
101
|
+
createTime?: string;
|
102
|
+
/**
|
103
|
+
* 绑定状态
|
104
|
+
*/
|
105
|
+
status?: ConsumerDeviceStatus;
|
106
|
+
/**
|
107
|
+
* 设备绑定的上下文信息,JSON格式,具体类型参考: ConsumerDeviceContext
|
108
|
+
*/
|
109
|
+
context?: string;
|
110
|
+
/**
|
111
|
+
* 设备信息
|
112
|
+
*/
|
113
|
+
device?: DeviceDTO;
|
114
|
+
}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
import type { PageRequest } from './common-model';
|
2
|
+
/**
|
3
|
+
* 消费者收藏创建请求
|
4
|
+
*/
|
5
|
+
export interface ConsumerFavoriteCreateRequest {
|
6
|
+
/**
|
7
|
+
* 消费用户ID
|
8
|
+
*/
|
9
|
+
consumerId?: number | string;
|
10
|
+
/**
|
11
|
+
* 收藏的资源类型,如:资讯、权益、服务
|
12
|
+
*/
|
13
|
+
resourceType?: number;
|
14
|
+
/**
|
15
|
+
* 收藏的资源Id
|
16
|
+
*/
|
17
|
+
resourceId?: number | string;
|
18
|
+
/**
|
19
|
+
* 所属租户
|
20
|
+
*/
|
21
|
+
tenantId?: string;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* 消费者收藏DTO
|
25
|
+
*/
|
26
|
+
export interface ConsumerFavoriteDTO {
|
27
|
+
/**
|
28
|
+
* 消费用户ID
|
29
|
+
*/
|
30
|
+
consumerId?: number;
|
31
|
+
/**
|
32
|
+
* 所属租户ID
|
33
|
+
*/
|
34
|
+
tenantId?: string;
|
35
|
+
/**
|
36
|
+
* 收藏的资源类型
|
37
|
+
*/
|
38
|
+
resourceType?: number;
|
39
|
+
/**
|
40
|
+
* 收藏的资源Id
|
41
|
+
*/
|
42
|
+
resourceId?: number;
|
43
|
+
/**
|
44
|
+
* 文章标题
|
45
|
+
*/
|
46
|
+
title?: string;
|
47
|
+
/**
|
48
|
+
* 文章副标题
|
49
|
+
*/
|
50
|
+
subTitle?: string;
|
51
|
+
/**
|
52
|
+
* 文章内容
|
53
|
+
*/
|
54
|
+
content?: string;
|
55
|
+
/**
|
56
|
+
* 文章摘要
|
57
|
+
*/
|
58
|
+
remark?: string;
|
59
|
+
/**
|
60
|
+
* 文章封面图片URL
|
61
|
+
*/
|
62
|
+
cover?: string;
|
63
|
+
/**
|
64
|
+
* 文章浏览量
|
65
|
+
*/
|
66
|
+
viewCount?: number;
|
67
|
+
/**
|
68
|
+
* 文章类型
|
69
|
+
*/
|
70
|
+
type?: number;
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* 消费者收藏删除请求
|
74
|
+
*/
|
75
|
+
export interface ConsumerFavoriteDeleteRequest {
|
76
|
+
/**
|
77
|
+
* 消费用户ID
|
78
|
+
*/
|
79
|
+
consumerId: number | string;
|
80
|
+
/**
|
81
|
+
* 收藏的资源Id
|
82
|
+
*/
|
83
|
+
resourceId: number | string;
|
84
|
+
/**
|
85
|
+
* 收藏的资源类型,如:资讯、权益、服务
|
86
|
+
*/
|
87
|
+
resourceType?: number;
|
88
|
+
}
|
89
|
+
/**
|
90
|
+
* 消费者收藏查询参数
|
91
|
+
*/
|
92
|
+
export interface ConsumerFavoriteQuery extends PageRequest {
|
93
|
+
/**
|
94
|
+
* 消费用户ID
|
95
|
+
*/
|
96
|
+
consumerId?: number | string;
|
97
|
+
/**
|
98
|
+
* 收藏的资源类型,如:资讯、权益、服务
|
99
|
+
*/
|
100
|
+
resourceType?: number;
|
101
|
+
/**
|
102
|
+
* 收藏的资源Id
|
103
|
+
*/
|
104
|
+
resourceId?: number | string;
|
105
|
+
}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
import { ConsumerRightStatus, HealthServiceType } from '../../constants/shcp-common';
|
2
|
+
import type { PageRequest } from './common-model';
|
3
|
+
import type { RightDTO } from './common-right-model';
|
4
|
+
import { UserDTO } from './blade-system-model';
|
5
|
+
export interface ConsumerRightDoctorQuery {
|
6
|
+
/** 消费用户ID */
|
7
|
+
consumerId: number | string;
|
8
|
+
/** 消费者权益的服务类型 */
|
9
|
+
serviceType: HealthServiceType;
|
10
|
+
/** 消费者权益的状态 */
|
11
|
+
status: ConsumerRightStatus;
|
12
|
+
}
|
13
|
+
export interface ConsumerRightDoctorDTO {
|
14
|
+
/** 权益所属的服务医生用户信息 */
|
15
|
+
tenantUser: UserDTO;
|
16
|
+
/** 服务医生参与管理的权益列表 */
|
17
|
+
rights: RightDTO[];
|
18
|
+
userId: number | string;
|
19
|
+
}
|
20
|
+
export interface ConsumerGroupMemberDTO {
|
21
|
+
/**
|
22
|
+
* 主键id
|
23
|
+
*/
|
24
|
+
id: number;
|
25
|
+
/**
|
26
|
+
* 标签id
|
27
|
+
*/
|
28
|
+
consumerId: number;
|
29
|
+
/**
|
30
|
+
* 用户名称
|
31
|
+
*/
|
32
|
+
consumerName: string;
|
33
|
+
/**
|
34
|
+
* 分组ID,关联: ConsumerGroup.id
|
35
|
+
*/
|
36
|
+
groupId: number;
|
37
|
+
/**
|
38
|
+
* 消费用户手机号
|
39
|
+
*/
|
40
|
+
mobile: string;
|
41
|
+
/**
|
42
|
+
* 消费用户信息
|
43
|
+
*/
|
44
|
+
consumer: ConsumerDTO;
|
45
|
+
}
|
46
|
+
export interface ConsumerGroupMemberDTO {
|
47
|
+
/**
|
48
|
+
* 主键id
|
49
|
+
*/
|
50
|
+
id: number;
|
51
|
+
/**
|
52
|
+
* 标签id
|
53
|
+
*/
|
54
|
+
consumerId: number;
|
55
|
+
/**
|
56
|
+
* 用户名称
|
57
|
+
*/
|
58
|
+
consumerName: string;
|
59
|
+
/**
|
60
|
+
* 分组ID,关联: ConsumerGroup.id
|
61
|
+
*/
|
62
|
+
groupId: number;
|
63
|
+
/**
|
64
|
+
* 消费用户手机号
|
65
|
+
*/
|
66
|
+
mobile: string;
|
67
|
+
/**
|
68
|
+
* 消费用户信息
|
69
|
+
*/
|
70
|
+
consumer: ConsumerDTO;
|
71
|
+
}
|
72
|
+
export interface ConsumerDTO {
|
73
|
+
name?: string;
|
74
|
+
identity?: string;
|
75
|
+
mobile?: string;
|
76
|
+
birthday?: string;
|
77
|
+
gender?: number;
|
78
|
+
age?: number;
|
79
|
+
address?: string;
|
80
|
+
status?: number;
|
81
|
+
id?: number | string;
|
82
|
+
consumerId: number | string;
|
83
|
+
[x: string]: any;
|
84
|
+
}
|
85
|
+
export interface ConsumerGroupMemberQuery extends PageRequest {
|
86
|
+
id?: number;
|
87
|
+
consumerId?: number;
|
88
|
+
groupId?: number;
|
89
|
+
groupIds?: number[];
|
90
|
+
consumerName?: string;
|
91
|
+
consumerPhone?: string;
|
92
|
+
startTime?: Date;
|
93
|
+
endTime?: Date;
|
94
|
+
userId?: number;
|
95
|
+
}
|
96
|
+
export interface ConsumerGroupDTO {
|
97
|
+
id?: number;
|
98
|
+
tagId?: number;
|
99
|
+
parentId?: number;
|
100
|
+
name?: string;
|
101
|
+
remark?: string;
|
102
|
+
tenantId?: string;
|
103
|
+
type?: number;
|
104
|
+
children?: ConsumerGroupDTO[] | null;
|
105
|
+
}
|
106
|
+
export interface ConsumerGroupMemberUpdateRequest {
|
107
|
+
consumerId: number;
|
108
|
+
groupId: number;
|
109
|
+
newGroupId: number;
|
110
|
+
}
|
111
|
+
export interface ConsumerGroupQuery extends PageRequest {
|
112
|
+
id?: number;
|
113
|
+
ids?: number[];
|
114
|
+
tagId?: number;
|
115
|
+
parentId?: number;
|
116
|
+
name?: string;
|
117
|
+
tenantId?: string;
|
118
|
+
types?: string;
|
119
|
+
}
|
120
|
+
export interface ConsumerGroupUpdateRequest {
|
121
|
+
id: number;
|
122
|
+
tagId?: number;
|
123
|
+
parentId: number;
|
124
|
+
name: string;
|
125
|
+
remark?: string;
|
126
|
+
tenantId: string;
|
127
|
+
}
|
128
|
+
export interface ConsumerUpdateRequest {
|
129
|
+
id: number | string;
|
130
|
+
tenantId?: string;
|
131
|
+
name?: string;
|
132
|
+
identity?: string;
|
133
|
+
mobile?: string;
|
134
|
+
birthday?: string;
|
135
|
+
gender?: number | string;
|
136
|
+
address?: string;
|
137
|
+
}
|
138
|
+
export interface ConsumerGroupDeleteRequest {
|
139
|
+
ids?: (number | string)[];
|
140
|
+
}
|
141
|
+
export interface ConsumerCreateRequest {
|
142
|
+
tenantId: string;
|
143
|
+
name: string;
|
144
|
+
identity?: string;
|
145
|
+
identityType?: number | string;
|
146
|
+
mobile: string;
|
147
|
+
birthday?: string;
|
148
|
+
gender: number | string;
|
149
|
+
address?: string;
|
150
|
+
avatar?: string;
|
151
|
+
}
|
152
|
+
export interface ConsumerQuery {
|
153
|
+
id?: number | string;
|
154
|
+
name?: string;
|
155
|
+
tenantId?: string;
|
156
|
+
identity?: string;
|
157
|
+
mobile?: string;
|
158
|
+
birthday?: string;
|
159
|
+
gender?: number;
|
160
|
+
address?: string;
|
161
|
+
ids?: number[];
|
162
|
+
}
|
163
|
+
export interface ConsumerRightQuery extends PageRequest {
|
164
|
+
consumerId?: number | string;
|
165
|
+
rightId?: number;
|
166
|
+
rightIds?: number[];
|
167
|
+
rightServiceType?: HealthServiceType;
|
168
|
+
serviceTypes?: HealthServiceType[];
|
169
|
+
status?: ConsumerRightStatus;
|
170
|
+
tenantUserId?: number;
|
171
|
+
simpleMode?: boolean;
|
172
|
+
distinctConsumer?: boolean;
|
173
|
+
distinctTenantUser: boolean;
|
174
|
+
}
|
175
|
+
export interface ConsumerRightDTO {
|
176
|
+
id?: number;
|
177
|
+
consumerId?: number;
|
178
|
+
rightId?: number;
|
179
|
+
tenantId?: string;
|
180
|
+
serviceUserId?: number;
|
181
|
+
status?: ConsumerRightStatus;
|
182
|
+
rightServiceType?: HealthServiceType;
|
183
|
+
right?: RightDTO;
|
184
|
+
consumer?: ConsumerDTO;
|
185
|
+
tenantUser?: UserDTO;
|
186
|
+
createTime?: string;
|
187
|
+
}
|
188
|
+
export interface ConsumerRightCreateRequest {
|
189
|
+
consumerId?: number | string;
|
190
|
+
rightId?: number | string;
|
191
|
+
serviceUserId?: number;
|
192
|
+
sourceUserId?: number | string;
|
193
|
+
rightServiceType: number;
|
194
|
+
tenantId?: string;
|
195
|
+
extra?: object;
|
196
|
+
}
|
197
|
+
export interface ConsumerRightDeleteRequest {
|
198
|
+
consumerId?: number | string;
|
199
|
+
rightId?: number | string;
|
200
|
+
}
|
201
|
+
export interface ConsumerGroupMemberCreateRequest {
|
202
|
+
/**
|
203
|
+
* 消费用户id
|
204
|
+
*/
|
205
|
+
consumerId: number;
|
206
|
+
/**
|
207
|
+
* 分组ID,关联: ConsumerGroup.id
|
208
|
+
*/
|
209
|
+
groupId: number;
|
210
|
+
/**
|
211
|
+
* 清理模式(清除旧数据,只保留本次的新数据)
|
212
|
+
*/
|
213
|
+
isClear?: boolean;
|
214
|
+
}
|