BaseStation.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.railway.business.baseinfo.domain;
  2. import com.railway.common.core.domain.BaseEntity;
  3. import io.swagger.annotations.ApiModel;
  4. import io.swagger.annotations.ApiModelProperty;
  5. import lombok.Data;
  6. import lombok.EqualsAndHashCode;
  7. import org.hibernate.validator.constraints.Length;
  8. /**
  9. * @author railway
  10. */
  11. @Data
  12. @ApiModel("区间/站场")
  13. @EqualsAndHashCode(callSuper = true)
  14. public class BaseStation extends BaseEntity {
  15. @ApiModelProperty(value = "主键", hidden = true)
  16. private Long stationId;
  17. @ApiModelProperty(value = "线路id")
  18. private Long lineId;
  19. @ApiModelProperty(value = "区间站场名称")
  20. @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
  21. private String stationName;
  22. @ApiModelProperty(value = "区间站场类型")
  23. @Length(min = 1, max = 4, message = "【区间站场类型】长度必须介于 {min} 和 {max} 之间")
  24. private String stationType;
  25. @ApiModelProperty(value = "显示顺序")
  26. private Integer orderNum;
  27. @ApiModelProperty(value = "删除标志(0代表存在 1代表删除)")
  28. @Length(min = 1, max = 1, message = "【删除标志(0代表存在 1代表删除)】长度必须介于 {min} 和 {max} 之间")
  29. private String delFlag;
  30. }