package com.securitycontrol.entity.background.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author：cwchen
 * @date：2024-03-20-14:12
 * @version：1.0
 * @description：边带设备-vo
 */
@Data
public class DeviceBdVo {

    @ApiModelProperty(value = "边带ID")
    private String id;

    @ApiModelProperty(value = "边带名称")
    @NotBlank(message = "边带名称不能为空", groups = {Query.class})
    @Length(max = 50, message = "边带名称字符长度不能超过50", groups = {Query.class})
    private String bdName;

    @ApiModelProperty(value = "边带编码")
    @NotBlank(message = "边带编码不能为空", groups = {Query.class})
    @Length(max = 50, message = "边带编码字符长度不能超过50", groups = {Query.class})
    private String bdCode;

    @ApiModelProperty(value = "边带ip")
    @NotBlank(message = "边带ip不能为空", groups = {Query.class})
    @Length(max = 50, message = "边带ip字符长度不能超过50", groups = {Query.class})
    @Pattern(regexp = "((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",message = "ip格式不正确",groups = {Query.class})
    private String bdIp;

    @ApiModelProperty(value = "边带型号")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String bdType;

    @ApiModelProperty(value = "边带型号名称")
    private String bdTypeName;

    @ApiModelProperty(value = "设备类型编码")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String typeCode;

    @ApiModelProperty(value = "设备类型名称")
    private String typeCodeName;

    @ApiModelProperty(value = "杆塔id")
    private String gtId;

    @ApiModelProperty(value = "杆塔名称")
    private String gtName;

    @ApiModelProperty(value = "标段编码")
    private String bidCode;

    @ApiModelProperty(value = "工程名称")
    private String proName;

    @ApiModelProperty(value = "创建时间")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String updateTime;

    @ApiModelProperty(value = "绑定时间")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String bindTime;

    @ApiModelProperty(value = "1.新增 2.修改")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer type;

    /**
     * 查询条件限制
     */
    public interface Query {
    }
}
