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

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * pms-device
 *
 * @author cdf
 * @date 2022/10/25
 */
@Data
public class MonitorStatus {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "监测点编号")
    @NotEmpty(message = "监测点编号不能为空")
    private List<String> id;

    @ApiModelProperty(value = "数据状态(0:删除 1:正常 2:退役)")
    @NotNull(message = "数据类型不能为空")
    private Integer status;

    @Data
    public static class PwMonitorStatus {
        private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "监测点编号")
        @NotEmpty(message = "监测点编号不能为空")
        private List<String> id;

        @ApiModelProperty(name = "1.I类监测点 2.II类监测点 3.III类监测")
        @NotNull(message = "类型不能为空")
        private Integer type;

        @ApiModelProperty(value = "数据状态(0:删除 1:正常 2:退役)")
        @NotNull(message = "数据类型不能为空")
        private Integer status;

        @ApiModelProperty(value = "III类监测点小类 0.用电用户 1.发电用户 默认用电")
        private Integer smallType;
    }

    @Data
    public static class Status {
        private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "id")
        @NotEmpty(message = "id集合不能为空")
        private List<String> id;

        @ApiModelProperty(value = "数据类型：0-删除；1-待审核；2-已审核；")
        @NotNull(message = "数据类型不能为空")
        private Integer status;
    }
}
