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


import com.njcn.web.constant.ValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;


/**
 * pqs
 *
 * @author cdf
 * @date 2023/4/24
 */
@Data
public class DeptGetLineParam {

    @NotBlank(message = "部门id不可为空")
    @ApiModelProperty(name = "deptId",value = "部门id")
    private String deptId;

    @ApiModelProperty(name = "serverName",value = "系统类型 0.event-boot 1.harmonic-boot")
    private String serverName;

    @ApiModelProperty(name = "systemType",value = "0.只返回主网的监测点信息; 1.只返回配网的监测点信息; null、2.返回主网配网两种监测点信息")
    private Integer systemType;

    @ApiModelProperty(name = "monitorStateAll",value = "true.只返回在线监测点信息 false.返回全部监测点信息")
    private Boolean monitorStateRunning=true;

    @ApiModelProperty(name = "isUpToGrid",value = "0.非送国网 1.需要送国网的")
    private Integer isUpToGrid;
    /**
     * 0-电网侧
     * 1-非电网侧
     */
    @ApiModelProperty("电网侧标识")
    @Range(min = 0, max = 2, message = "电网侧标识" + ValidMessage.PARAM_FORMAT_ERROR)
    private Integer powerFlag;

    /**
     * 监测点运行状态（0：运行；1：检修；2：停运；3：调试；4：退运）pq使用
     */
    @ApiModelProperty("监测点运行状态")
    @Range(min = 0, max = 2, message = "监测点运行状态" + ValidMessage.PARAM_FORMAT_ERROR)
    private Integer lineRunFlag;

    @ApiModelProperty("搜索值")
    private String searchValue;
}
