-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoUsceslIteminfoPutAPIRequest.go
606 lines (527 loc) · 16.6 KB
/
TaobaoUsceslIteminfoPutAPIRequest.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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
package uscesl
import (
"net/url"
"sync"
"github.com/bububa/opentaobao/model"
)
// TaobaoUsceslIteminfoPutAPIRequest 电子价签显示用商品信息写入 API请求
// taobao.uscesl.iteminfo.put
//
// 用于电子价签上显示的商品信息的写入,包含价格及促销信息
type TaobaoUsceslIteminfoPutAPIRequest struct {
model.Params
// 型号
_modelNum string
// 价格单位
_priceUnit string
// 品牌名
_brandName string
// 销售规格
_saleSpec string
// 分类
_categoryName string
// 等级
_rank string
// 商品变更状态
_itemChangeStatus string
// 实际销售价格,单位:分
_acctionPrice string
// 能效
_energyEfficiency string
// 商品skuId
_skuId string
// 促销开始时间:yyyy-MM-dd HH:mm:ss
_promotionStart string
// 商品条码
_itemBarCode string
// 商品名称
_itemTitle string
// 促销文案
_promotionText string
// 扩展属性C
_customizeFeatureC string
// 扩展属性D
_customizeFeatureD string
// 扩展属性E
_customizeFeatureE string
// 扩展属性F
_customizeFeatureF string
// 扩展属性G
_customizeFeatureG string
// 扩展属性H
_customizeFeatureH string
// 扩展属性I
_customizeFeatureI string
// 扩展属性J
_customizeFeatureJ string
// 二维码
_itemQrCode string
// 促销结束时间:yyyy-MM-dd HH:mm:ss
_promotionEnd string
// 促销原因
_promotionReason string
// 商品原价
_originalPrice string
// 商品简称
_shortTitle string
// 扩展属性B
_customizeFeatureB string
// 产地
_productionPlace string
// 扩展属性A
_customizeFeatureA string
// 商品状态0:在售 1:售罄
_itemStatus int64
// 商品编码
_itemId int64
// 门店ID
_shopId int64
// 促销状态0:非促销 1:促销
_ifPromotion bool
}
// NewTaobaoUsceslIteminfoPutRequest 初始化TaobaoUsceslIteminfoPutAPIRequest对象
func NewTaobaoUsceslIteminfoPutRequest() *TaobaoUsceslIteminfoPutAPIRequest {
return &TaobaoUsceslIteminfoPutAPIRequest{
Params: model.NewParams(34),
}
}
// Reset IRequest interface 方法, 清空结构体
func (r *TaobaoUsceslIteminfoPutAPIRequest) Reset() {
r._modelNum = ""
r._priceUnit = ""
r._brandName = ""
r._saleSpec = ""
r._categoryName = ""
r._rank = ""
r._itemChangeStatus = ""
r._acctionPrice = ""
r._energyEfficiency = ""
r._skuId = ""
r._promotionStart = ""
r._itemBarCode = ""
r._itemTitle = ""
r._promotionText = ""
r._customizeFeatureC = ""
r._customizeFeatureD = ""
r._customizeFeatureE = ""
r._customizeFeatureF = ""
r._customizeFeatureG = ""
r._customizeFeatureH = ""
r._customizeFeatureI = ""
r._customizeFeatureJ = ""
r._itemQrCode = ""
r._promotionEnd = ""
r._promotionReason = ""
r._originalPrice = ""
r._shortTitle = ""
r._customizeFeatureB = ""
r._productionPlace = ""
r._customizeFeatureA = ""
r._itemStatus = 0
r._itemId = 0
r._shopId = 0
r._ifPromotion = false
r.Params.ToZero()
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoUsceslIteminfoPutAPIRequest) GetApiMethodName() string {
return "taobao.uscesl.iteminfo.put"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoUsceslIteminfoPutAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoUsceslIteminfoPutAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetModelNum is ModelNum Setter
// 型号
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetModelNum(_modelNum string) error {
r._modelNum = _modelNum
r.Set("model_num", _modelNum)
return nil
}
// GetModelNum ModelNum Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetModelNum() string {
return r._modelNum
}
// SetPriceUnit is PriceUnit Setter
// 价格单位
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPriceUnit(_priceUnit string) error {
r._priceUnit = _priceUnit
r.Set("price_unit", _priceUnit)
return nil
}
// GetPriceUnit PriceUnit Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetPriceUnit() string {
return r._priceUnit
}
// SetBrandName is BrandName Setter
// 品牌名
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetBrandName(_brandName string) error {
r._brandName = _brandName
r.Set("brand_name", _brandName)
return nil
}
// GetBrandName BrandName Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetBrandName() string {
return r._brandName
}
// SetSaleSpec is SaleSpec Setter
// 销售规格
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetSaleSpec(_saleSpec string) error {
r._saleSpec = _saleSpec
r.Set("sale_spec", _saleSpec)
return nil
}
// GetSaleSpec SaleSpec Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetSaleSpec() string {
return r._saleSpec
}
// SetCategoryName is CategoryName Setter
// 分类
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCategoryName(_categoryName string) error {
r._categoryName = _categoryName
r.Set("category_name", _categoryName)
return nil
}
// GetCategoryName CategoryName Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCategoryName() string {
return r._categoryName
}
// SetRank is Rank Setter
// 等级
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetRank(_rank string) error {
r._rank = _rank
r.Set("rank", _rank)
return nil
}
// GetRank Rank Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetRank() string {
return r._rank
}
// SetItemChangeStatus is ItemChangeStatus Setter
// 商品变更状态
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemChangeStatus(_itemChangeStatus string) error {
r._itemChangeStatus = _itemChangeStatus
r.Set("item_change_status", _itemChangeStatus)
return nil
}
// GetItemChangeStatus ItemChangeStatus Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemChangeStatus() string {
return r._itemChangeStatus
}
// SetAcctionPrice is AcctionPrice Setter
// 实际销售价格,单位:分
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetAcctionPrice(_acctionPrice string) error {
r._acctionPrice = _acctionPrice
r.Set("acction_price", _acctionPrice)
return nil
}
// GetAcctionPrice AcctionPrice Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetAcctionPrice() string {
return r._acctionPrice
}
// SetEnergyEfficiency is EnergyEfficiency Setter
// 能效
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetEnergyEfficiency(_energyEfficiency string) error {
r._energyEfficiency = _energyEfficiency
r.Set("energy_efficiency", _energyEfficiency)
return nil
}
// GetEnergyEfficiency EnergyEfficiency Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetEnergyEfficiency() string {
return r._energyEfficiency
}
// SetSkuId is SkuId Setter
// 商品skuId
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetSkuId(_skuId string) error {
r._skuId = _skuId
r.Set("sku_id", _skuId)
return nil
}
// GetSkuId SkuId Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetSkuId() string {
return r._skuId
}
// SetPromotionStart is PromotionStart Setter
// 促销开始时间:yyyy-MM-dd HH:mm:ss
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionStart(_promotionStart string) error {
r._promotionStart = _promotionStart
r.Set("promotion_start", _promotionStart)
return nil
}
// GetPromotionStart PromotionStart Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionStart() string {
return r._promotionStart
}
// SetItemBarCode is ItemBarCode Setter
// 商品条码
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemBarCode(_itemBarCode string) error {
r._itemBarCode = _itemBarCode
r.Set("item_bar_code", _itemBarCode)
return nil
}
// GetItemBarCode ItemBarCode Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemBarCode() string {
return r._itemBarCode
}
// SetItemTitle is ItemTitle Setter
// 商品名称
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemTitle(_itemTitle string) error {
r._itemTitle = _itemTitle
r.Set("item_title", _itemTitle)
return nil
}
// GetItemTitle ItemTitle Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemTitle() string {
return r._itemTitle
}
// SetPromotionText is PromotionText Setter
// 促销文案
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionText(_promotionText string) error {
r._promotionText = _promotionText
r.Set("promotion_text", _promotionText)
return nil
}
// GetPromotionText PromotionText Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionText() string {
return r._promotionText
}
// SetCustomizeFeatureC is CustomizeFeatureC Setter
// 扩展属性C
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureC(_customizeFeatureC string) error {
r._customizeFeatureC = _customizeFeatureC
r.Set("customize_feature_c", _customizeFeatureC)
return nil
}
// GetCustomizeFeatureC CustomizeFeatureC Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureC() string {
return r._customizeFeatureC
}
// SetCustomizeFeatureD is CustomizeFeatureD Setter
// 扩展属性D
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureD(_customizeFeatureD string) error {
r._customizeFeatureD = _customizeFeatureD
r.Set("customize_feature_d", _customizeFeatureD)
return nil
}
// GetCustomizeFeatureD CustomizeFeatureD Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureD() string {
return r._customizeFeatureD
}
// SetCustomizeFeatureE is CustomizeFeatureE Setter
// 扩展属性E
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureE(_customizeFeatureE string) error {
r._customizeFeatureE = _customizeFeatureE
r.Set("customize_feature_e", _customizeFeatureE)
return nil
}
// GetCustomizeFeatureE CustomizeFeatureE Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureE() string {
return r._customizeFeatureE
}
// SetCustomizeFeatureF is CustomizeFeatureF Setter
// 扩展属性F
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureF(_customizeFeatureF string) error {
r._customizeFeatureF = _customizeFeatureF
r.Set("customize_feature_f", _customizeFeatureF)
return nil
}
// GetCustomizeFeatureF CustomizeFeatureF Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureF() string {
return r._customizeFeatureF
}
// SetCustomizeFeatureG is CustomizeFeatureG Setter
// 扩展属性G
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureG(_customizeFeatureG string) error {
r._customizeFeatureG = _customizeFeatureG
r.Set("customize_feature_g", _customizeFeatureG)
return nil
}
// GetCustomizeFeatureG CustomizeFeatureG Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureG() string {
return r._customizeFeatureG
}
// SetCustomizeFeatureH is CustomizeFeatureH Setter
// 扩展属性H
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureH(_customizeFeatureH string) error {
r._customizeFeatureH = _customizeFeatureH
r.Set("customize_feature_h", _customizeFeatureH)
return nil
}
// GetCustomizeFeatureH CustomizeFeatureH Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureH() string {
return r._customizeFeatureH
}
// SetCustomizeFeatureI is CustomizeFeatureI Setter
// 扩展属性I
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureI(_customizeFeatureI string) error {
r._customizeFeatureI = _customizeFeatureI
r.Set("customize_feature_i", _customizeFeatureI)
return nil
}
// GetCustomizeFeatureI CustomizeFeatureI Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureI() string {
return r._customizeFeatureI
}
// SetCustomizeFeatureJ is CustomizeFeatureJ Setter
// 扩展属性J
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureJ(_customizeFeatureJ string) error {
r._customizeFeatureJ = _customizeFeatureJ
r.Set("customize_feature_j", _customizeFeatureJ)
return nil
}
// GetCustomizeFeatureJ CustomizeFeatureJ Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureJ() string {
return r._customizeFeatureJ
}
// SetItemQrCode is ItemQrCode Setter
// 二维码
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemQrCode(_itemQrCode string) error {
r._itemQrCode = _itemQrCode
r.Set("item_qr_code", _itemQrCode)
return nil
}
// GetItemQrCode ItemQrCode Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemQrCode() string {
return r._itemQrCode
}
// SetPromotionEnd is PromotionEnd Setter
// 促销结束时间:yyyy-MM-dd HH:mm:ss
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionEnd(_promotionEnd string) error {
r._promotionEnd = _promotionEnd
r.Set("promotion_end", _promotionEnd)
return nil
}
// GetPromotionEnd PromotionEnd Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionEnd() string {
return r._promotionEnd
}
// SetPromotionReason is PromotionReason Setter
// 促销原因
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionReason(_promotionReason string) error {
r._promotionReason = _promotionReason
r.Set("promotion_reason", _promotionReason)
return nil
}
// GetPromotionReason PromotionReason Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionReason() string {
return r._promotionReason
}
// SetOriginalPrice is OriginalPrice Setter
// 商品原价
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetOriginalPrice(_originalPrice string) error {
r._originalPrice = _originalPrice
r.Set("original_price", _originalPrice)
return nil
}
// GetOriginalPrice OriginalPrice Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetOriginalPrice() string {
return r._originalPrice
}
// SetShortTitle is ShortTitle Setter
// 商品简称
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetShortTitle(_shortTitle string) error {
r._shortTitle = _shortTitle
r.Set("short_title", _shortTitle)
return nil
}
// GetShortTitle ShortTitle Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetShortTitle() string {
return r._shortTitle
}
// SetCustomizeFeatureB is CustomizeFeatureB Setter
// 扩展属性B
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureB(_customizeFeatureB string) error {
r._customizeFeatureB = _customizeFeatureB
r.Set("customize_feature_b", _customizeFeatureB)
return nil
}
// GetCustomizeFeatureB CustomizeFeatureB Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureB() string {
return r._customizeFeatureB
}
// SetProductionPlace is ProductionPlace Setter
// 产地
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetProductionPlace(_productionPlace string) error {
r._productionPlace = _productionPlace
r.Set("production_place", _productionPlace)
return nil
}
// GetProductionPlace ProductionPlace Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetProductionPlace() string {
return r._productionPlace
}
// SetCustomizeFeatureA is CustomizeFeatureA Setter
// 扩展属性A
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureA(_customizeFeatureA string) error {
r._customizeFeatureA = _customizeFeatureA
r.Set("customize_feature_a", _customizeFeatureA)
return nil
}
// GetCustomizeFeatureA CustomizeFeatureA Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureA() string {
return r._customizeFeatureA
}
// SetItemStatus is ItemStatus Setter
// 商品状态0:在售 1:售罄
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemStatus(_itemStatus int64) error {
r._itemStatus = _itemStatus
r.Set("item_status", _itemStatus)
return nil
}
// GetItemStatus ItemStatus Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemStatus() int64 {
return r._itemStatus
}
// SetItemId is ItemId Setter
// 商品编码
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemId(_itemId int64) error {
r._itemId = _itemId
r.Set("item_id", _itemId)
return nil
}
// GetItemId ItemId Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemId() int64 {
return r._itemId
}
// SetShopId is ShopId Setter
// 门店ID
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetShopId(_shopId int64) error {
r._shopId = _shopId
r.Set("shop_id", _shopId)
return nil
}
// GetShopId ShopId Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetShopId() int64 {
return r._shopId
}
// SetIfPromotion is IfPromotion Setter
// 促销状态0:非促销 1:促销
func (r *TaobaoUsceslIteminfoPutAPIRequest) SetIfPromotion(_ifPromotion bool) error {
r._ifPromotion = _ifPromotion
r.Set("if_promotion", _ifPromotion)
return nil
}
// GetIfPromotion IfPromotion Getter
func (r TaobaoUsceslIteminfoPutAPIRequest) GetIfPromotion() bool {
return r._ifPromotion
}
var poolTaobaoUsceslIteminfoPutAPIRequest = sync.Pool{
New: func() any {
return NewTaobaoUsceslIteminfoPutRequest()
},
}
// GetTaobaoUsceslIteminfoPutRequest 从 sync.Pool 获取 TaobaoUsceslIteminfoPutAPIRequest
func GetTaobaoUsceslIteminfoPutAPIRequest() *TaobaoUsceslIteminfoPutAPIRequest {
return poolTaobaoUsceslIteminfoPutAPIRequest.Get().(*TaobaoUsceslIteminfoPutAPIRequest)
}
// ReleaseTaobaoUsceslIteminfoPutAPIRequest 将 TaobaoUsceslIteminfoPutAPIRequest 放入 sync.Pool
func ReleaseTaobaoUsceslIteminfoPutAPIRequest(v *TaobaoUsceslIteminfoPutAPIRequest) {
v.Reset()
poolTaobaoUsceslIteminfoPutAPIRequest.Put(v)
}