-
Notifications
You must be signed in to change notification settings - Fork 10
/
AlibabaAlihealthExaminationItemsPublishAPIRequest.go
174 lines (149 loc) · 5.94 KB
/
AlibabaAlihealthExaminationItemsPublishAPIRequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package examination
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlihealthExaminationItemsPublishAPIRequest 单项/加项包信息同步 API请求
// alibaba.alihealth.examination.items.publish
//
// 体检机构对接_单项/加项包信息发布/更新
type AlibabaAlihealthExaminationItemsPublishAPIRequest struct {
model.Params
// 套餐列表
_isvPackages []IsvPackage
// 加项包关系列表
_isvPackRelationDTOS []IsvPackRelationDto
// 单项之间关系
_isvItemRelationDTOS []IsvItemRelationDto
// 体检机构标识
_hospitalCodes []string
// 加项包列表
_isvItemPackDTOS []IsvItemPackDto
// 单项信息列表
_isvItemDTOS []IsvItemDto
// 商品id,机构保证全局唯一
_groupId string
}
// NewAlibabaAlihealthExaminationItemsPublishRequest 初始化AlibabaAlihealthExaminationItemsPublishAPIRequest对象
func NewAlibabaAlihealthExaminationItemsPublishRequest() *AlibabaAlihealthExaminationItemsPublishAPIRequest {
return &AlibabaAlihealthExaminationItemsPublishAPIRequest{
Params: model.NewParams(7),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) Reset() {
r._isvPackages = r._isvPackages[:0]
r._isvPackRelationDTOS = r._isvPackRelationDTOS[:0]
r._isvItemRelationDTOS = r._isvItemRelationDTOS[:0]
r._hospitalCodes = r._hospitalCodes[:0]
r._isvItemPackDTOS = r._isvItemPackDTOS[:0]
r._isvItemDTOS = r._isvItemDTOS[:0]
r._groupId = ""
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetApiMethodName() string {
return "alibaba.alihealth.examination.items.publish"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetIsvPackages is IsvPackages Setter
// 套餐列表
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvPackages(_isvPackages []IsvPackage) error {
r._isvPackages = _isvPackages
r.Set("isv_packages", _isvPackages)
return nil
}
// GetIsvPackages IsvPackages Getter
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvPackages() []IsvPackage {
return r._isvPackages
}
// SetIsvPackRelationDTOS is IsvPackRelationDTOS Setter
// 加项包关系列表
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvPackRelationDTOS(_isvPackRelationDTOS []IsvPackRelationDto) error {
r._isvPackRelationDTOS = _isvPackRelationDTOS
r.Set("isv_pack_relation_d_t_o_s", _isvPackRelationDTOS)
return nil
}
// GetIsvPackRelationDTOS IsvPackRelationDTOS Getter
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvPackRelationDTOS() []IsvPackRelationDto {
return r._isvPackRelationDTOS
}
// SetIsvItemRelationDTOS is IsvItemRelationDTOS Setter
// 单项之间关系
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvItemRelationDTOS(_isvItemRelationDTOS []IsvItemRelationDto) error {
r._isvItemRelationDTOS = _isvItemRelationDTOS
r.Set("isv_item_relation_d_t_o_s", _isvItemRelationDTOS)
return nil
}
// GetIsvItemRelationDTOS IsvItemRelationDTOS Getter
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvItemRelationDTOS() []IsvItemRelationDto {
return r._isvItemRelationDTOS
}
// SetHospitalCodes is HospitalCodes Setter
// 体检机构标识
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetHospitalCodes(_hospitalCodes []string) error {
r._hospitalCodes = _hospitalCodes
r.Set("hospital_codes", _hospitalCodes)
return nil
}
// GetHospitalCodes HospitalCodes Getter
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetHospitalCodes() []string {
return r._hospitalCodes
}
// SetIsvItemPackDTOS is IsvItemPackDTOS Setter
// 加项包列表
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvItemPackDTOS(_isvItemPackDTOS []IsvItemPackDto) error {
r._isvItemPackDTOS = _isvItemPackDTOS
r.Set("isv_item_pack_d_t_o_s", _isvItemPackDTOS)
return nil
}
// GetIsvItemPackDTOS IsvItemPackDTOS Getter
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvItemPackDTOS() []IsvItemPackDto {
return r._isvItemPackDTOS
}
// SetIsvItemDTOS is IsvItemDTOS Setter
// 单项信息列表
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvItemDTOS(_isvItemDTOS []IsvItemDto) error {
r._isvItemDTOS = _isvItemDTOS
r.Set("isv_item_d_t_o_s", _isvItemDTOS)
return nil
}
// GetIsvItemDTOS IsvItemDTOS Getter
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvItemDTOS() []IsvItemDto {
return r._isvItemDTOS
}
// SetGroupId is GroupId Setter
// 商品id,机构保证全局唯一
func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetGroupId(_groupId string) error {
r._groupId = _groupId
r.Set("group_id", _groupId)
return nil
}
// GetGroupId GroupId Getter
func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetGroupId() string {
return r._groupId
}
var poolAlibabaAlihealthExaminationItemsPublishAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaAlihealthExaminationItemsPublishRequest()
},
}
// GetAlibabaAlihealthExaminationItemsPublishRequest 从 sync.Pool 获取 AlibabaAlihealthExaminationItemsPublishAPIRequest
func GetAlibabaAlihealthExaminationItemsPublishAPIRequest() *AlibabaAlihealthExaminationItemsPublishAPIRequest {
return poolAlibabaAlihealthExaminationItemsPublishAPIRequest.Get().(*AlibabaAlihealthExaminationItemsPublishAPIRequest)
}
// ReleaseAlibabaAlihealthExaminationItemsPublishAPIRequest 将 AlibabaAlihealthExaminationItemsPublishAPIRequest 放入 sync.Pool
func ReleaseAlibabaAlihealthExaminationItemsPublishAPIRequest(v *AlibabaAlihealthExaminationItemsPublishAPIRequest) {
v.Reset()
poolAlibabaAlihealthExaminationItemsPublishAPIRequest.Put(v)
}