package cn.lili.modules.goods.entity.dos; import cn.lili.mybatis.BaseIdEntity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.Size; /** * 商品规格项 * * @author pikachu * @since 2020-02-18 15:18:56 */ @Data @TableName("li_specification") @ApiModel(value = "规格项") public class Specification extends BaseIdEntity { private static final long serialVersionUID = 147792597901239486L; /** * 规格名称 */ @NotEmpty(message = "规格名称不能为空") @Size(max = 20, message = "规格名称不能超过20个字符") @ApiModelProperty(value = "规格名称", required = true) private String specName; /** * 所属卖家 0属于平台 *
* 店铺自定义规格暂时废弃 2021-06-23 * 后续推出新配置方式 */ @ApiModelProperty(hidden = true) private String storeId; /** * 规格值名字 */ @TableField(value = "spec_value") @ApiModelProperty(value = "规格值名字, 《,》分割") @Length(max = 255, message = "长度超出限制") private String specValue; }