package com.njcn.energy.pojo.param;

import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModel;
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;

/**
 * pqs
 *
 * @author cdf
 * @date 2022/4/18
 */
@Data
@ApiModel
public class LoadStatisticParam {

    @ApiModelProperty(value = "统计指标",required = true)
    @NotBlank(message = "统计指标不可为空")
    private String tagType;

    @ApiModelProperty(value = "负荷类型",required = true)
    @NotEmpty(message = "负荷类型不可为空")
    private List<String>  loadType;

    @ApiModelProperty(value = "值类型  0.最大值 1.最小值",required = true)
    @NotEmpty(message = "值类型不可为空")
    private List<Integer> valType;

    @ApiModelProperty(value = "开始时间",required = true)
    @NotBlank(message = "开始时间不可为空")
    @DateTimeStrValid
    private String startTime;

    @ApiModelProperty(value = "结束时间",required = true)
    @NotBlank(message = "结束时间不可为空")
    @DateTimeStrValid
    private String endTime;

    @ApiModelProperty(value = "同比环比开始时间",required = true)
    @NotBlank(message = "同比环比开始时间不可为空")
    private String startTimeBi;

    @ApiModelProperty(value = "同比环比结束时间",required = true)
    @NotBlank(message = "同比环比结束时间不可为空")
    @DateTimeStrValid
    private String endTimeBi;


}
