-
Notifications
You must be signed in to change notification settings - Fork 9
/
Item.go
546 lines (220 loc) · 11.6 KB
/
Item.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
package qimen
// Item
type Item struct {
// 商品编码
ItemCode string `json:"itemCode,omitempty" xml:"itemCode,omitempty"`
// 后端商品编码
ItemId string `json:"itemId,omitempty" xml:"itemId,omitempty"`
// 组合商品中的该商品个数
Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
// ownerCode
OwnerCode string `json:"ownerCode,omitempty" xml:"ownerCode,omitempty"`
// test
BrandName string `json:"brandName,omitempty" xml:"brandName,omitempty"`
// test
Sn string `json:"sn,omitempty" xml:"sn,omitempty"`
// test
IsSNMgmt string `json:"isSNMgmt,omitempty" xml:"isSNMgmt,omitempty"`
// test
BarCode string `json:"barCode,omitempty" xml:"barCode,omitempty"`
// test
Color string `json:"color,omitempty" xml:"color,omitempty"`
// test
Size string `json:"size,omitempty" xml:"size,omitempty"`
// test
Length string `json:"length,omitempty" xml:"length,omitempty"`
// test
Width string `json:"width,omitempty" xml:"width,omitempty"`
// test
Height string `json:"height,omitempty" xml:"height,omitempty"`
// test
Volume string `json:"volume,omitempty" xml:"volume,omitempty"`
// test
GrossWeight string `json:"grossWeight,omitempty" xml:"grossWeight,omitempty"`
// test
NetWeight string `json:"netWeight,omitempty" xml:"netWeight,omitempty"`
// test
TareWeight string `json:"tareWeight,omitempty" xml:"tareWeight,omitempty"`
// test
SafetyStock string `json:"safetyStock,omitempty" xml:"safetyStock,omitempty"`
// test
StockUnit string `json:"stockUnit,omitempty" xml:"stockUnit,omitempty"`
// test
StockStatus string `json:"stockStatus,omitempty" xml:"stockStatus,omitempty"`
// test
ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"`
// test
ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"`
// test
IsShelfLifeMgmt string `json:"isShelfLifeMgmt,omitempty" xml:"isShelfLifeMgmt,omitempty"`
// test
ShelfLife string `json:"shelfLife,omitempty" xml:"shelfLife,omitempty"`
// test
RejectLifecycle string `json:"rejectLifecycle,omitempty" xml:"rejectLifecycle,omitempty"`
// test
LockupLifecycle string `json:"lockupLifecycle,omitempty" xml:"lockupLifecycle,omitempty"`
// test
AdventLifecycle string `json:"adventLifecycle,omitempty" xml:"adventLifecycle,omitempty"`
// test
BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"`
// test
BatchRemark string `json:"batchRemark,omitempty" xml:"batchRemark,omitempty"`
// test
IsBatchMgmt string `json:"isBatchMgmt,omitempty" xml:"isBatchMgmt,omitempty"`
// test
PackCode string `json:"packCode,omitempty" xml:"packCode,omitempty"`
// test
Pcs string `json:"pcs,omitempty" xml:"pcs,omitempty"`
// test
OriginAddress string `json:"originAddress,omitempty" xml:"originAddress,omitempty"`
// test
ApprovalNumber string `json:"approvalNumber,omitempty" xml:"approvalNumber,omitempty"`
// test
IsFragile string `json:"isFragile,omitempty" xml:"isFragile,omitempty"`
// test
IsHazardous string `json:"isHazardous,omitempty" xml:"isHazardous,omitempty"`
// test
PricingCategory string `json:"pricingCategory,omitempty" xml:"pricingCategory,omitempty"`
// test
IsSku string `json:"isSku,omitempty" xml:"isSku,omitempty"`
// test
PackageMaterial string `json:"packageMaterial,omitempty" xml:"packageMaterial,omitempty"`
// test
Price string `json:"price,omitempty" xml:"price,omitempty"`
// test
IsAreaSale string `json:"isAreaSale,omitempty" xml:"isAreaSale,omitempty"`
// test
NormalQty string `json:"normalQty,omitempty" xml:"normalQty,omitempty"`
// test
DefectiveQty string `json:"defectiveQty,omitempty" xml:"defectiveQty,omitempty"`
// test
ReceiveQty string `json:"receiveQty,omitempty" xml:"receiveQty,omitempty"`
// test
ExCode string `json:"exCode,omitempty" xml:"exCode,omitempty"`
// test
DiscountPrice string `json:"discountPrice,omitempty" xml:"discountPrice,omitempty"`
// test
InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"`
// test
PlanQty string `json:"planQty,omitempty" xml:"planQty,omitempty"`
// test
SourceOrderCode string `json:"sourceOrderCode,omitempty" xml:"sourceOrderCode,omitempty"`
// test
SubSourceOrderCode string `json:"subSourceOrderCode,omitempty" xml:"subSourceOrderCode,omitempty"`
// test
ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"`
// test
OrderLineNo string `json:"orderLineNo,omitempty" xml:"orderLineNo,omitempty"`
// test
ActualQty string `json:"actualQty,omitempty" xml:"actualQty,omitempty"`
// test
Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
// test
Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
// test
WarehouseCode string `json:"warehouseCode,omitempty" xml:"warehouseCode,omitempty"`
// test
LockQuantity string `json:"lockQuantity,omitempty" xml:"lockQuantity,omitempty"`
// test
OrderCode string `json:"orderCode,omitempty" xml:"orderCode,omitempty"`
// test
OrderType string `json:"orderType,omitempty" xml:"orderType,omitempty"`
// test
OutBizCode string `json:"outBizCode,omitempty" xml:"outBizCode,omitempty"`
// test
ProductCode string `json:"productCode,omitempty" xml:"productCode,omitempty"`
// test
PaperQty string `json:"paperQty,omitempty" xml:"paperQty,omitempty"`
// test
DiffQuantity string `json:"diffQuantity,omitempty" xml:"diffQuantity,omitempty"`
// test
ExtCode string `json:"extCode,omitempty" xml:"extCode,omitempty"`
// test
LackQty string `json:"lackQty,omitempty" xml:"lackQty,omitempty"`
// test
Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
// test
SnCode string `json:"snCode,omitempty" xml:"snCode,omitempty"`
// test
GoodsCode string `json:"goodsCode,omitempty" xml:"goodsCode,omitempty"`
// test
StandardPrice string `json:"standardPrice,omitempty" xml:"standardPrice,omitempty"`
// test
ReferencePrice string `json:"referencePrice,omitempty" xml:"referencePrice,omitempty"`
// test
Discount string `json:"discount,omitempty" xml:"discount,omitempty"`
// test
ActualAmount string `json:"actualAmount,omitempty" xml:"actualAmount,omitempty"`
// test
PriceAdjustment *PriceAdjustment `json:"priceAdjustment,omitempty" xml:"priceAdjustment,omitempty"`
// test
LatestUpdateTime string `json:"latestUpdateTime,omitempty" xml:"latestUpdateTime,omitempty"`
// test
ChangeTime string `json:"changeTime,omitempty" xml:"changeTime,omitempty"`
// test
TempRequirement string `json:"tempRequirement,omitempty" xml:"tempRequirement,omitempty"`
// test
ChannelCode string `json:"channelCode,omitempty" xml:"channelCode,omitempty"`
// test
OriginCode string `json:"originCode,omitempty" xml:"originCode,omitempty"`
// test
Batchs []Batch `json:"batchs,omitempty" xml:"batchs,omitempty"`
// 商品名称
ItemName string `json:"itemName,omitempty" xml:"itemName,omitempty"`
// 备注
Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
// 库存商品总量
TotalQty int64 `json:"totalQty,omitempty" xml:"totalQty,omitempty"`
// 商品简称
ShortName string `json:"shortName,omitempty" xml:"shortName,omitempty"`
// 英文名
EnglishName string `json:"englishName,omitempty" xml:"englishName,omitempty"`
// 商品属性(如红色;XXL)
SkuProperty string `json:"skuProperty,omitempty" xml:"skuProperty,omitempty"`
// 渠道中的商品标题
Title string `json:"title,omitempty" xml:"title,omitempty"`
// 商品类别ID
CategoryId string `json:"categoryId,omitempty" xml:"categoryId,omitempty"`
// 商品类别名称
CategoryName string `json:"categoryName,omitempty" xml:"categoryName,omitempty"`
// 商品类型(ZC=正常商品;FX=分销商品;ZH=组合商品;ZP=赠品;BC=包材;HC=耗材;FL=辅料;XN=虚拟品;FS=附属品;CC=残次品;OTHER=其它;只传英文编码)
ItemType string `json:"itemType,omitempty" xml:"itemType,omitempty"`
// 吊牌价
TagPrice string `json:"tagPrice,omitempty" xml:"tagPrice,omitempty"`
// 零售价
RetailPrice string `json:"retailPrice,omitempty" xml:"retailPrice,omitempty"`
// 成本价
CostPrice string `json:"costPrice,omitempty" xml:"costPrice,omitempty"`
// 采购价
PurchasePrice string `json:"purchasePrice,omitempty" xml:"purchasePrice,omitempty"`
// 季节编码
SeasonCode string `json:"seasonCode,omitempty" xml:"seasonCode,omitempty"`
// 季节名称
SeasonName string `json:"seasonName,omitempty" xml:"seasonName,omitempty"`
// 品牌代码
BrandCode string `json:"brandCode,omitempty" xml:"brandCode,omitempty"`
// 创建时间(YYYY-MM-DD HH:MM:SS)
CreateTime string `json:"createTime,omitempty" xml:"createTime,omitempty"`
// 更新时间(YYYY-MM-DD HH:MM:SS)
UpdateTime string `json:"updateTime,omitempty" xml:"updateTime,omitempty"`
// 是否有效(Y/N ;默认为N)
IsValid string `json:"isValid,omitempty" xml:"isValid,omitempty"`
// 销售配送方式(0=自配|1=菜鸟)
LogisticsType string `json:"logisticsType,omitempty" xml:"logisticsType,omitempty"`
// 是否液体, Y/N, (默认为N)
IsLiquid string `json:"isLiquid,omitempty" xml:"isLiquid,omitempty"`
// 签收状态
Status string `json:"status,omitempty" xml:"status,omitempty"`
// temp
SupplierCode string `json:"supplierCode,omitempty" xml:"supplierCode,omitempty"`
// isLocked
IsLocked string `json:"isLocked,omitempty" xml:"isLocked,omitempty"`
// 货品编码,HZ1234,string(50),,
ScItemCode string `json:"scItemCode,omitempty" xml:"scItemCode,omitempty"`
// 计划调拨数量,Item1234,string(50),,
PlanCount string `json:"planCount,omitempty" xml:"planCount,omitempty"`
// 实际出库数量,Item1234,string(50),,
OutCount string `json:"outCount,omitempty" xml:"outCount,omitempty"`
// 实际入库数量,Item1234,string(50),,
InCount string `json:"inCount,omitempty" xml:"inCount,omitempty"`
}