-
Notifications
You must be signed in to change notification settings - Fork 9
/
AlibabaAlihealthMdeerVideoSyncAPIRequest.go
398 lines (345 loc) · 11.2 KB
/
AlibabaAlihealthMdeerVideoSyncAPIRequest.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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
package alihealthmdeer
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// AlibabaAlihealthMdeerVideoSyncAPIRequest 合作伙伴视频同步给医知鹿接口 API请求
// alibaba.alihealth.mdeer.video.sync
//
// 合伙做伴内容同步接口,用来视频同步
type AlibabaAlihealthMdeerVideoSyncAPIRequest struct {
model.Params
// 合作方头像url
_partnerPortraitUrl string
// 作者电话
_phoneNumber string
// 作者简介
_authorIntroduction string
// 作者科室
_authorDepartment string
// 作者级别
_authorLevel string
// 医院级别
_hospitalLevel string
// 医院名称
_hospitalName string
// 作者头像
_portraitUrl string
// 作者名称
_authorName string
// 作者id
_authorId string
// 合作方主页
_partnerHomepage string
// 合作方名称
_partnerName string
// 发布日期
_releaseDate string
// 视频文件url
_videoFileUrl string
// 视频落地页
_videoMobileUrl string
// 视频简介
_videoIntroduction string
// 视频长度
_videoLength string
// 视频所述疾病
_disease string
// 预览图url
_priviewUrl string
// 视频标题
_videoTitle string
// 视频id
_videoId string
}
// NewAlibabaAlihealthMdeerVideoSyncRequest 初始化AlibabaAlihealthMdeerVideoSyncAPIRequest对象
func NewAlibabaAlihealthMdeerVideoSyncRequest() *AlibabaAlihealthMdeerVideoSyncAPIRequest {
return &AlibabaAlihealthMdeerVideoSyncAPIRequest{
Params: model.NewParams(21),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) Reset() {
r._partnerPortraitUrl = ""
r._phoneNumber = ""
r._authorIntroduction = ""
r._authorDepartment = ""
r._authorLevel = ""
r._hospitalLevel = ""
r._hospitalName = ""
r._portraitUrl = ""
r._authorName = ""
r._authorId = ""
r._partnerHomepage = ""
r._partnerName = ""
r._releaseDate = ""
r._videoFileUrl = ""
r._videoMobileUrl = ""
r._videoIntroduction = ""
r._videoLength = ""
r._disease = ""
r._priviewUrl = ""
r._videoTitle = ""
r._videoId = ""
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetApiMethodName() string {
return "alibaba.alihealth.mdeer.video.sync"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetPartnerPortraitUrl is PartnerPortraitUrl Setter
// 合作方头像url
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPartnerPortraitUrl(_partnerPortraitUrl string) error {
r._partnerPortraitUrl = _partnerPortraitUrl
r.Set("partner_portrait_url", _partnerPortraitUrl)
return nil
}
// GetPartnerPortraitUrl PartnerPortraitUrl Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPartnerPortraitUrl() string {
return r._partnerPortraitUrl
}
// SetPhoneNumber is PhoneNumber Setter
// 作者电话
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPhoneNumber(_phoneNumber string) error {
r._phoneNumber = _phoneNumber
r.Set("phone_number", _phoneNumber)
return nil
}
// GetPhoneNumber PhoneNumber Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPhoneNumber() string {
return r._phoneNumber
}
// SetAuthorIntroduction is AuthorIntroduction Setter
// 作者简介
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorIntroduction(_authorIntroduction string) error {
r._authorIntroduction = _authorIntroduction
r.Set("author_introduction", _authorIntroduction)
return nil
}
// GetAuthorIntroduction AuthorIntroduction Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorIntroduction() string {
return r._authorIntroduction
}
// SetAuthorDepartment is AuthorDepartment Setter
// 作者科室
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorDepartment(_authorDepartment string) error {
r._authorDepartment = _authorDepartment
r.Set("author_department", _authorDepartment)
return nil
}
// GetAuthorDepartment AuthorDepartment Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorDepartment() string {
return r._authorDepartment
}
// SetAuthorLevel is AuthorLevel Setter
// 作者级别
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorLevel(_authorLevel string) error {
r._authorLevel = _authorLevel
r.Set("author_level", _authorLevel)
return nil
}
// GetAuthorLevel AuthorLevel Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorLevel() string {
return r._authorLevel
}
// SetHospitalLevel is HospitalLevel Setter
// 医院级别
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetHospitalLevel(_hospitalLevel string) error {
r._hospitalLevel = _hospitalLevel
r.Set("hospital_level", _hospitalLevel)
return nil
}
// GetHospitalLevel HospitalLevel Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetHospitalLevel() string {
return r._hospitalLevel
}
// SetHospitalName is HospitalName Setter
// 医院名称
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetHospitalName(_hospitalName string) error {
r._hospitalName = _hospitalName
r.Set("hospital_name", _hospitalName)
return nil
}
// GetHospitalName HospitalName Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetHospitalName() string {
return r._hospitalName
}
// SetPortraitUrl is PortraitUrl Setter
// 作者头像
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPortraitUrl(_portraitUrl string) error {
r._portraitUrl = _portraitUrl
r.Set("portrait_url", _portraitUrl)
return nil
}
// GetPortraitUrl PortraitUrl Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPortraitUrl() string {
return r._portraitUrl
}
// SetAuthorName is AuthorName Setter
// 作者名称
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorName(_authorName string) error {
r._authorName = _authorName
r.Set("author_name", _authorName)
return nil
}
// GetAuthorName AuthorName Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorName() string {
return r._authorName
}
// SetAuthorId is AuthorId Setter
// 作者id
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorId(_authorId string) error {
r._authorId = _authorId
r.Set("author_id", _authorId)
return nil
}
// GetAuthorId AuthorId Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorId() string {
return r._authorId
}
// SetPartnerHomepage is PartnerHomepage Setter
// 合作方主页
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPartnerHomepage(_partnerHomepage string) error {
r._partnerHomepage = _partnerHomepage
r.Set("partner_homepage", _partnerHomepage)
return nil
}
// GetPartnerHomepage PartnerHomepage Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPartnerHomepage() string {
return r._partnerHomepage
}
// SetPartnerName is PartnerName Setter
// 合作方名称
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPartnerName(_partnerName string) error {
r._partnerName = _partnerName
r.Set("partner_name", _partnerName)
return nil
}
// GetPartnerName PartnerName Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPartnerName() string {
return r._partnerName
}
// SetReleaseDate is ReleaseDate Setter
// 发布日期
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetReleaseDate(_releaseDate string) error {
r._releaseDate = _releaseDate
r.Set("release_date", _releaseDate)
return nil
}
// GetReleaseDate ReleaseDate Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetReleaseDate() string {
return r._releaseDate
}
// SetVideoFileUrl is VideoFileUrl Setter
// 视频文件url
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoFileUrl(_videoFileUrl string) error {
r._videoFileUrl = _videoFileUrl
r.Set("video_file_url", _videoFileUrl)
return nil
}
// GetVideoFileUrl VideoFileUrl Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoFileUrl() string {
return r._videoFileUrl
}
// SetVideoMobileUrl is VideoMobileUrl Setter
// 视频落地页
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoMobileUrl(_videoMobileUrl string) error {
r._videoMobileUrl = _videoMobileUrl
r.Set("video_mobile_url", _videoMobileUrl)
return nil
}
// GetVideoMobileUrl VideoMobileUrl Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoMobileUrl() string {
return r._videoMobileUrl
}
// SetVideoIntroduction is VideoIntroduction Setter
// 视频简介
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoIntroduction(_videoIntroduction string) error {
r._videoIntroduction = _videoIntroduction
r.Set("video_introduction", _videoIntroduction)
return nil
}
// GetVideoIntroduction VideoIntroduction Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoIntroduction() string {
return r._videoIntroduction
}
// SetVideoLength is VideoLength Setter
// 视频长度
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoLength(_videoLength string) error {
r._videoLength = _videoLength
r.Set("video_length", _videoLength)
return nil
}
// GetVideoLength VideoLength Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoLength() string {
return r._videoLength
}
// SetDisease is Disease Setter
// 视频所述疾病
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetDisease(_disease string) error {
r._disease = _disease
r.Set("disease", _disease)
return nil
}
// GetDisease Disease Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetDisease() string {
return r._disease
}
// SetPriviewUrl is PriviewUrl Setter
// 预览图url
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPriviewUrl(_priviewUrl string) error {
r._priviewUrl = _priviewUrl
r.Set("priview_url", _priviewUrl)
return nil
}
// GetPriviewUrl PriviewUrl Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPriviewUrl() string {
return r._priviewUrl
}
// SetVideoTitle is VideoTitle Setter
// 视频标题
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoTitle(_videoTitle string) error {
r._videoTitle = _videoTitle
r.Set("video_title", _videoTitle)
return nil
}
// GetVideoTitle VideoTitle Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoTitle() string {
return r._videoTitle
}
// SetVideoId is VideoId Setter
// 视频id
func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoId(_videoId string) error {
r._videoId = _videoId
r.Set("video_id", _videoId)
return nil
}
// GetVideoId VideoId Getter
func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoId() string {
return r._videoId
}
var poolAlibabaAlihealthMdeerVideoSyncAPIRequest = sync.Pool{
New: func() any {
return NewAlibabaAlihealthMdeerVideoSyncRequest()
},
}
// GetAlibabaAlihealthMdeerVideoSyncRequest 从 sync.Pool 获取 AlibabaAlihealthMdeerVideoSyncAPIRequest
func GetAlibabaAlihealthMdeerVideoSyncAPIRequest() *AlibabaAlihealthMdeerVideoSyncAPIRequest {
return poolAlibabaAlihealthMdeerVideoSyncAPIRequest.Get().(*AlibabaAlihealthMdeerVideoSyncAPIRequest)
}
// ReleaseAlibabaAlihealthMdeerVideoSyncAPIRequest 将 AlibabaAlihealthMdeerVideoSyncAPIRequest 放入 sync.Pool
func ReleaseAlibabaAlihealthMdeerVideoSyncAPIRequest(v *AlibabaAlihealthMdeerVideoSyncAPIRequest) {
v.Reset()
poolAlibabaAlihealthMdeerVideoSyncAPIRequest.Put(v)
}