123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- package dto;
- import com.baomidou.mybatisplus.annotation.TableName;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import lombok.experimental.Accessors;
- import org.hibernate.validator.constraints.Length;
- import javax.validation.constraints.NotBlank;
- import javax.validation.constraints.NotEmpty;
- import javax.validation.constraints.NotNull;
- import java.io.Serializable;
- import java.math.BigDecimal;
- import java.util.List;
- @Data
- @EqualsAndHashCode(callSuper = false)
- @Accessors(chain = true)
- @TableName("eb_store_product")
- @ApiModel(value = "StoreProductAddRequest对象", description = "商品添加对象")
- public class StoreProductAddRequest implements Serializable {
- private static final long serialVersionUID = -452373239606480650L;
- @ApiModelProperty(value = "商品id|添加时不填,修改时必填")
- private Long id;
- @ApiModelProperty(value = "商品图片", required = true)
- @NotBlank(message = "商品图片不能为空")
- @Length(max = 255, message = "商品图片名称长度不能超过255个字符")
- private String image;
- @ApiModelProperty(value = "轮播图", required = true)
- @NotBlank(message = "轮播图不能为空")
- @Length(max = 2000, message = "轮播图名称长度不能超过2000个字符")
- private String sliderImage;
- @ApiModelProperty(value = "商品名称", required = true)
- @NotBlank(message = "商品名称不能为空")
- @Length(max = 128, message = "商品名称长度不能超过128个字符")
- private String storeName;
- @ApiModelProperty(value = "商品简介", required = true)
- // @NotBlank(message = "商品简介不能为空")
- @Length(max = 256, message = "商品简介长度不能超过256个字符")
- private String storeInfo;
- @ApiModelProperty(value = "关键字", required = true)
- @Length(max = 255, message = "关键字长度不能超过255个字符")
- // @NotBlank(message = "关键字不能为空")
- private String keyword;
- @ApiModelProperty(value = "分类id|逗号分隔", required = true)
- @NotBlank(message = "商品分类不能为空")
- @Length(max = 64, message = "商品分类组合长度不能超过64个字符")
- private String cateId;
- @ApiModelProperty(value = "单位名", required = true)
- // @NotBlank(message = "单位名称不能为空")
- @Length(max = 32, message = "单位名长度不能超过32个字符")
- private String unitName;
- @ApiModelProperty(value = "排序")
- private Integer sort;
- @ApiModelProperty(value = "是否热卖")
- private Integer isHot;
- @ApiModelProperty(value = "是否优惠")
- private Integer isBenefit;
- @ApiModelProperty(value = "是否精品")
- private Integer isBest;
- @ApiModelProperty(value = "是否新品")
- private Integer isNew;
- @ApiModelProperty(value = "是否优品推荐")
- private Integer isGood;
- @ApiModelProperty(value = "获得积分")
- private Integer giveIntegral;
- @ApiModelProperty(value = "是否单独分佣", required = true)
- // @NotNull(message = "是否单独分佣不能为空")
- private Integer isSub;
- @ApiModelProperty(value = "虚拟销量")
- private Integer ficti;
- @ApiModelProperty(value = "运费模板ID", required = true)
- // @NotNull(message = "运费模板不能为空")
- private Integer tempId;
- @ApiModelProperty(value = "规格 0单 1多", required = true)
- @NotNull(message = "商品规格类型不能为空")
- private Integer specType;
- @ApiModelProperty(value = "活动显示排序 0=默认,1=秒杀,2=砍价,3=拼团")
- private List<String> activity;
- @ApiModelProperty(value = "商品属性", required = true)
- @NotEmpty(message = "商品属性不能为空")
- private List<StoreProductAttrAddRequest> attr;
- @ApiModelProperty(value = "商品属性详情", required = true)
- @NotEmpty(message = "商品属性详情不能为空")
- private List<StoreProductAttrValueAddRequest> attrValue;
- @ApiModelProperty(value = "商品描述")
- private String content;
- @ApiModelProperty(value = "优惠券id集合")
- private List<Integer> couponIds;
- @ApiModelProperty(value = "展示图")
- @Length(max = 1000, message = "展示图名称长度不能超过1000个字符")
- private String flatPattern;
- @ApiModelProperty("品牌")
- private String itemBrand;
- @ApiModelProperty("货号")
- private String itemNumber;
- @ApiModelProperty("库存预警值")
- private Integer stockThreshold;
- @ApiModelProperty("供应商")
- private String itemSupplier;
- @ApiModelProperty(value = "状态 (0:未上架,1:上架)")
- private Integer isShow;
- @ApiModelProperty(value = "商品价格")
- private BigDecimal price;
- @ApiModelProperty(value = "市场价")
- private BigDecimal otPrice;
- @ApiModelProperty(value = "库存")
- private Integer stock;
- }
|