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 ElectComparaParam {

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

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

    @ApiModelProperty(value = "值类型")
    private String valType;

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

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

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

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

    @ApiModelProperty(value = "统计类型")
    @NotNull(message = "0.电度 1.电费")
    private Integer statisticType;


}
