BusDrugEntity.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.coffee.bus.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.coffee.common.entity.TenantGenericEntity;
  4. import io.swagger.annotations.ApiModel;
  5. import io.swagger.annotations.ApiModelProperty;
  6. import lombok.Data;
  7. import lombok.EqualsAndHashCode;
  8. import lombok.ToString;
  9. import lombok.experimental.Accessors;
  10. import org.hibernate.validator.constraints.Length;
  11. /**
  12. * @author zsl
  13. * @version 1.0.0
  14. * @ClassName BusDrugEntity.java
  15. * @Description TODO
  16. * @createTime 2022/4/189:22
  17. */
  18. @EqualsAndHashCode(callSuper = true)
  19. @Data
  20. @TableName(value = "bus_drug",autoResultMap = true)
  21. @ApiModel(value="药品管理", description="药品管理实体类")
  22. @ToString
  23. public class BusDrugEntity extends TenantGenericEntity<String,String> {
  24. @ApiModelProperty(value = "药品名称")
  25. @Length(max = 255,message = "药品名称长度不得超过255个字节")
  26. private String name;
  27. @ApiModelProperty(value = "药品类型")
  28. @Length(max = 255,message = "药品类型不得超过255个字符")
  29. private String type;
  30. @ApiModelProperty(value = "药品单位")
  31. @Length(max = 255,message = "药品单位不得超过255个字符")
  32. private String unit;
  33. }