package com.coffee.bus.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.coffee.common.entity.TenantGenericEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import lombok.experimental.Accessors; import org.hibernate.validator.constraints.Length; /** * @author zsl * @version 1.0.0 * @ClassName BusDrugEntity.java * @Description TODO * @createTime 2022/4/189:22 */ @EqualsAndHashCode(callSuper = true) @Data @TableName(value = "bus_drug",autoResultMap = true) @ApiModel(value="药品管理", description="药品管理实体类") @ToString public class BusDrugEntity extends TenantGenericEntity { @ApiModelProperty(value = "药品名称") @Length(max = 255,message = "药品名称长度不得超过255个字节") private String name; @ApiModelProperty(value = "药品类型") @Length(max = 255,message = "药品类型不得超过255个字符") private String type; @ApiModelProperty(value = "药品单位") @Length(max = 255,message = "药品单位不得超过255个字符") private String unit; }