package com.njcn.csharmonic.param;


import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
public class TrendDataQueryParam {

    @ApiModelProperty(value = "监测点")
    @NotBlank(message = "监测点ID不可为空")
    private String lineId;

    @ApiModelProperty(name = "searchBeginTime", value = "开始时间")
    @NotBlank(message = "起始时间不可为空")
    @DateTimeStrValid(message = "起始时间格式出错")
    private String searchBeginTime;

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

    @ApiModelProperty(value = "用于选择多个指标及谐波次数")
    List<TrendDataQueryParam> list;
    @ApiModelProperty(value = "指标组id")
    private String statisticalId;
    @ApiModelProperty(value = "取值类型（Max，Min，cp95，avg）")
    private String valueType;

    @ApiModelProperty(value = "一次值：Primary;二次值：Secondary")
    private String dataLevel;

    @ApiModelProperty(value = "频次2-50")
    private String frequency;

}
