package com.railway.business.baseinfo.domain;

import com.railway.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * @author railway
 */
@Data
@ApiModel("线路信息")
@EqualsAndHashCode(callSuper = true)
public class BaseLine extends BaseEntity {

  @ApiModelProperty(value = "主键")
  private Long lineId;

  @ApiModelProperty(value = "线路名称")
  @Length(min = 1, max = 30, message = "【线路名称】长度必须介于 {min} 和 {max} 之间")
  private String lineName;

  @ApiModelProperty(value = "速度等级")
  @Length(max = 20, message = "【速度等级】长度必须介于 {min} 和 {max} 之间")
  private String lineSddj;

  @ApiModelProperty(value = "线路类型")
  @Length(max = 20, message = "【线路类型】长度必须介于 {min} 和 {max} 之间")
  private String lineType;

  @ApiModelProperty(value = "线路等级")
  @Length(max = 20, message = "【线路等级】长度必须介于 {min} 和 {max} 之间")
  private String lineDj;

  @ApiModelProperty(value = "运营里程")
  private BigDecimal lineYylc;

  @ApiModelProperty(value = "开始公里标")
  private BigDecimal startMarker;

  @ApiModelProperty(value = "结束公里标")
  private BigDecimal endMarker;

  @ApiModelProperty(value = "显示顺序")
  private Integer orderNum;

  @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
  @Length(min = 1, max = 1, message = "【删除标志（0代表存在 1代表删除）】长度必须介于 {min} 和 {max} 之间")
  private String delFlag;

}