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;
|
}
|
}
|
|
}
|