package com.njcn.device.pms.pojo.param;

import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class TractionStationParam {

    @ApiModelProperty(name = "id",value = "牵引站编号")
    @NotBlank(message = "牵引站编号不可为空")
    private String id;

    @ApiModelProperty(name = "name", value = "牵引站名称")
    @NotBlank(message = "牵引站名称不可为空")
    private String name;

    @ApiModelProperty(name = "orgName", value = "组织机构名称")
    @NotBlank(message = "组织机构名称不可为空")
    private String orgName;

    @ApiModelProperty(name = "orgId", value = "组织机构编号")
    @NotBlank(message = "组织机构编号不可为空")
    private String orgId;

    @ApiModelProperty(name = "operationName", value = "运维单位名称")
    @NotBlank(message = "运维单位名称不可为空")
    private String operationName;

    @ApiModelProperty(name = "operationId", value = "运维单位编号")
    @NotBlank(message = "运维单位编号不可为空")
    private String operationId;

    @ApiModelProperty(name = "voltageLevel", value = "供电电压等级")
    @NotBlank(message = "供电电压等级不可为空")
    private String voltageLevel;

    @ApiModelProperty(name = "railwayLineId", value = "铁路线路编号")
    private String railwayLineId;

    @ApiModelProperty(name = "railwayLineName", value = "铁路线路名称")
    @NotBlank(message = "铁路线路名称不可为空")
    private String railwayLineName;

    @ApiModelProperty(name = "railwayType", value = "铁路线路类型")
    @NotBlank(message = "铁路线路类型不可为空")
    private String railwayType;

    @ApiModelProperty(name = "connetGroupWay", value = "牵引站变压器接线方式")
    @NotBlank(message = "牵引站变压器接线方式不可为空")
    private String connetGroupWay;

    @ApiModelProperty(name = "ratedCapacity", value = "牵引站变电容量")
    @NotNull(message = "牵引站变电容量不可为空")
    private Float ratedCapacity;

    @ApiModelProperty(name = "powerId", value = "供电变电站编号")
    @NotBlank(message = "供电变电站编号不可为空")
    private String powerId;

    @ApiModelProperty(name = "powerName", value = "供电变电站名称")
    @NotBlank(message = "供电变电站名称不可为空")
    private String powerName;

    @ApiModelProperty(name = "powerVoltageLevel", value = "供电变电站电压等级")
    @NotBlank(message = "供电变电站电压等级不可为空")
    private String powerVoltageLevel;

    @ApiModelProperty(name = "ifSpecial", value = "是否专线供电：0-否;1-是;")
    @NotNull(message = "是否专线供电")
    private Integer ifSpecial;

    @ApiModelProperty(name = "createdDate", value = "创建日期")
    @NotBlank(message = "创建日期不可为空")
    @DateTimeStrValid(format = "yyyy-MM-dd",message = "创建日期格式有误")
    private String createdDate;

    @ApiModelProperty(name = "userTag", value = "用户标签")
    private String userTag;

    @ApiModelProperty(name = "isUpToGrid", value = "是否是上送国网监测点,0-否 1-是")
    @NotNull(message = "是否是上送国网监测点不可为空")
    private Integer isUpToGrid;


}
