add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
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
package com.iotechn.unimall.data.dto.product;
 
import com.dobbinsoft.fw.core.annotation.doc.ApiField;
import com.dobbinsoft.fw.core.entiy.SuperDTO;
import com.iotechn.unimall.data.enums.SpuActivityType;
import com.iotechn.unimall.data.enums.StatusType;
import lombok.Data;
 
import java.util.Date;
 
/**
 * Created by rize on 2019/7/6.
 */
@Data
public class SkuDTO extends SuperDTO {
 
    @ApiField(description = "商品ID")
    private Long spuId;
 
    @ApiField(description = "条形码")
    private String barCode;
 
    @ApiField(description = "规格名称")
    private String title;
 
    @ApiField(description = "所属类目ID")
    private Long categoryId;
 
    @ApiField(description = "商品标题")
    private String spuTitle;
 
    /**
     * TODO 注释格式
     */
    @ApiField(description = "每个规格的具体值 格式: ")
    private String specification;
 
    @ApiField(description = "规格图片")
    private String img;
 
    @ApiField(description = "SPU商品图片")
    private String spuImg;
    @ApiField(description = "原始价格(仅显示作用)")
    private Integer originalPrice;
 
    @ApiField(description = "价格")
    private Integer price;
 
    @ApiField(description = "VIP价格")
    private Integer vipPrice;
 
    @ApiField(description = "库存")
    private Integer stock;
 
    @ApiField(description = "重量(G)")
    private Integer weight;
 
    @ApiField(description = "运费模板ID")
    private Long freightTemplateId;
 
    @ApiField(description = "状态", enums = StatusType.class)
    private Integer status;
 
    @ApiField(description = "计量单位")
    private String unit;
 
    @ApiField(description = "活动类型", enums = SpuActivityType.class)
    private Integer activityType;
 
    @ApiField(description = "活动ID")
    private Long activityId;
 
    @ApiField(description = "活动开始时间")
    private Date gmtActivityStart;
 
    @ApiField(description = "活动结束时间")
    private Date gmtActivityEnd;
 
}