admin
2021-06-26 5d9e2fbeab87327ce11080485bf4d971f93f542a
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
package com.matrix.system.app.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
 
/**
 * @author wzy
 * @date 2020-12-23
 **/
@ApiModel(value = "CreateOderItemDto", description = "提交订单明细接收类")
public class CreateOderItemDto {
 
    @NotNull(message = "商品ID不能为空")
    @ApiModelProperty(value = "商品ID", example = "1234")
    private Long goodsId;
 
    @NotNull(message = "数量不能为空")
    @ApiModelProperty(value = "购买数量", example = "1")
    private Integer count;
 
    @NotNull(message = "参数错误")
    @ApiModelProperty(value = "是否赠送 是/否", example = "否")
    private String isFree;
 
    @NotNull(message = "参数错误")
    @ApiModelProperty(value = "商品类型", example = "家居产品")
    private String goodsType;
 
    public String getGoodsType() {
        return goodsType;
    }
 
    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }
 
    public Long getGoodsId() {
        return goodsId;
    }
 
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }
 
    public Integer getCount() {
        return count;
    }
 
    public void setCount(Integer count) {
        this.count = count;
    }
 
    public String getIsFree() {
        if ("1".equals(isFree)) {
            return "是";
        } else {
            return "否";
        }
    }
 
    public void setIsFree(String isFree) {
        this.isFree = isFree;
    }
}