xiaoyong931011
2023-08-01 8e6989a4472063a2edb5e63c16610ccf8450a562
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
package cc.mrbird.febs.dapp.dto;
 
import io.swagger.annotations.ApiModel;
import lombok.Data;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;
 
@Data
@ApiModel(value = "AddMallGoodsDto", description = "参数接收类")
public class AddMallGoodsDto {
    //商品编号
    @NotBlank(message = "参数不能为空")
    private String goodsNo;
    //商品名称
    @NotBlank(message = "参数不能为空")
    private String goodsName;
    //商品介绍
    @NotBlank(message = "参数不能为空")
    private String goodsIntrodution;
    //缩略图
    @NotBlank(message = "参数不能为空")
    private String thumb;
 
    //商品参数
    @NotBlank(message = "参数不能为空")
    private String goodsParameter;
    //商品详情
    @NotBlank(message = "参数不能为空")
    private String goodsDetails;
    //是否上架;1-上架 2-下架
    private Integer isSale;
 
    /**
     * 上架
     */
    public static final Integer ISSALE_STATUS_ENABLE = 1;
    /**
     * 下架
     */
    public static final Integer ISSALE_STATUS_DISABLED = 2;
    //原价
    @NotBlank(message = "参数不能为空")
    private String originalPrice;
    //现价
    @NotBlank(message = "参数不能为空")
    private String presentPrice;
    /**
     * 销量
     */
    @NotNull(message = "参数不能为空")
    private Integer volume;
    /**
     * 排序
     */
    @NotNull(message = "参数不能为空")
    private Integer sortCnt;
 
}