package cc.mrbird.febs.dapp.dto;
|
|
import io.swagger.annotations.ApiModel;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotNull;
|
|
@Data
|
@ApiModel(value = "MallGoodsUpdateDto", description = "参数接收类")
|
public class MallGoodsUpdateDto {
|
private Long id;
|
//商品编号
|
@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;
|
|
private Long categoryId;
|
}
|