package com.railway.business.baseinfo.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author railway
 */
@Data
@ApiModel("线路信息")
public class BaseLineQuery {

  @ApiModelProperty(value = "线路所属单位ID")
  private Long deptId;

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

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

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

}