无关风月
2024-12-09 2053b8fe0e98d4b4449bc756a93ced78f42277c4
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
package com.jilongda.optometry.vo;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
@Data
@ApiModel("主页商品Vo")
public class IndexGoodVO {
    private Long id;
    @ApiModelProperty(value = "产品名称")
    private String goodsName;
    @ApiModelProperty(value = "产品规格")
    private String goodsSpecifications;
    @ApiModelProperty(value = "产品图片")
    private String goodsPicture;
    @ApiModelProperty(value = "1是常用产品,0不是")
    private Integer isUsual;
    @ApiModelProperty(value = "已购数量")
    private Integer count;
    public IndexGoodVO() {
        // 初始化时,如果 isUsual 为 null,则将其设为 0
        if (this.isUsual == null) {
            this.isUsual = 0;
        }
        if (this.count == null) {
            this.count = 0;
        }
    }
 
}