| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_brand") |
| | | @ApiModel(value="TBrand对象", description="镜架/镜片品牌表") |
| | | public class TBrand implements Serializable { |
| | | public class TBrand extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "品牌名称") |
| | | @Length(max = 15,message = "品牌名称不能超过15个字符") |
| | | @TableField("name") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "类型 1镜架 2镜片") |
| | | @NotNull(message = "品牌类型不能为空") |
| | | @TableField("type") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "状态 1启用 2禁用") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | @ApiModelProperty(value = "是否为主要品牌 1是2否") |
| | | @TableField("isMain") |