-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlihealthExaminationServiceareaCheckAPIRequest.go
222 lines (191 loc) · 6.74 KB
/
AlibabaAlihealthExaminationServiceareaCheckAPIRequest.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
package examination
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlihealthExaminationServiceareaCheckAPIRequest 体检机构对接_上门检测服务范围查询 API请求
// alibaba.alihealth.examination.servicearea.check
//
// 体检机构对接_上门检测服务范围查询
type AlibabaAlihealthExaminationServiceareaCheckAPIRequest struct {
model.Params
// 机构套餐编码
_packageCode string
// 上门检测地址
_address string
// 上门检测地址纬度
_latitude string
// 上门检测地址经度
_longitude string
// 省份名称(高德)
_province string
// 省份编码(高德adcode)
_provinceCode string
// 城市名称(高德)
_city string
// 城市编码(高德adcode)
_cityCode string
// 区域名称(高德)
_district string
// 区域编码(高德adcode)
_districtCode string
}
// NewAlibabaAlihealthExaminationServiceareaCheckRequest 初始化AlibabaAlihealthExaminationServiceareaCheckAPIRequest对象
func NewAlibabaAlihealthExaminationServiceareaCheckRequest() *AlibabaAlihealthExaminationServiceareaCheckAPIRequest {
return &AlibabaAlihealthExaminationServiceareaCheckAPIRequest{
Params: model.NewParams(10),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) Reset() {
r._packageCode = ""
r._address = ""
r._latitude = ""
r._longitude = ""
r._province = ""
r._provinceCode = ""
r._city = ""
r._cityCode = ""
r._district = ""
r._districtCode = ""
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetApiMethodName() string {
return "alibaba.alihealth.examination.servicearea.check"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetPackageCode is PackageCode Setter
// 机构套餐编码
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetPackageCode(_packageCode string) error {
r._packageCode = _packageCode
r.Set("package_code", _packageCode)
return nil
}
// GetPackageCode PackageCode Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetPackageCode() string {
return r._packageCode
}
// SetAddress is Address Setter
// 上门检测地址
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetAddress(_address string) error {
r._address = _address
r.Set("address", _address)
return nil
}
// GetAddress Address Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetAddress() string {
return r._address
}
// SetLatitude is Latitude Setter
// 上门检测地址纬度
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetLatitude(_latitude string) error {
r._latitude = _latitude
r.Set("latitude", _latitude)
return nil
}
// GetLatitude Latitude Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetLatitude() string {
return r._latitude
}
// SetLongitude is Longitude Setter
// 上门检测地址经度
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetLongitude(_longitude string) error {
r._longitude = _longitude
r.Set("longitude", _longitude)
return nil
}
// GetLongitude Longitude Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetLongitude() string {
return r._longitude
}
// SetProvince is Province Setter
// 省份名称(高德)
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetProvince(_province string) error {
r._province = _province
r.Set("province", _province)
return nil
}
// GetProvince Province Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetProvince() string {
return r._province
}
// SetProvinceCode is ProvinceCode Setter
// 省份编码(高德adcode)
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetProvinceCode(_provinceCode string) error {
r._provinceCode = _provinceCode
r.Set("province_code", _provinceCode)
return nil
}
// GetProvinceCode ProvinceCode Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetProvinceCode() string {
return r._provinceCode
}
// SetCity is City Setter
// 城市名称(高德)
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetCity(_city string) error {
r._city = _city
r.Set("city", _city)
return nil
}
// GetCity City Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetCity() string {
return r._city
}
// SetCityCode is CityCode Setter
// 城市编码(高德adcode)
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetCityCode(_cityCode string) error {
r._cityCode = _cityCode
r.Set("city_code", _cityCode)
return nil
}
// GetCityCode CityCode Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetCityCode() string {
return r._cityCode
}
// SetDistrict is District Setter
// 区域名称(高德)
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetDistrict(_district string) error {
r._district = _district
r.Set("district", _district)
return nil
}
// GetDistrict District Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetDistrict() string {
return r._district
}
// SetDistrictCode is DistrictCode Setter
// 区域编码(高德adcode)
func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetDistrictCode(_districtCode string) error {
r._districtCode = _districtCode
r.Set("district_code", _districtCode)
return nil
}
// GetDistrictCode DistrictCode Getter
func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetDistrictCode() string {
return r._districtCode
}
var poolAlibabaAlihealthExaminationServiceareaCheckAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaAlihealthExaminationServiceareaCheckRequest()
},
}
// GetAlibabaAlihealthExaminationServiceareaCheckRequest 从 sync.Pool 获取 AlibabaAlihealthExaminationServiceareaCheckAPIRequest
func GetAlibabaAlihealthExaminationServiceareaCheckAPIRequest() *AlibabaAlihealthExaminationServiceareaCheckAPIRequest {
return poolAlibabaAlihealthExaminationServiceareaCheckAPIRequest.Get().(*AlibabaAlihealthExaminationServiceareaCheckAPIRequest)
}
// ReleaseAlibabaAlihealthExaminationServiceareaCheckAPIRequest 将 AlibabaAlihealthExaminationServiceareaCheckAPIRequest 放入 sync.Pool
func ReleaseAlibabaAlihealthExaminationServiceareaCheckAPIRequest(v *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) {
v.Reset()
poolAlibabaAlihealthExaminationServiceareaCheckAPIRequest.Put(v)
}