package com.njcn.harmonic.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.harmonic.constant.HarmonicValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author denghuajun
 * @version 1.0.0
 * @date 2022/3/28
 */
@Data
public class NormHistoryParam {
    @ApiModelProperty("时间")
    @NotBlank(message = HarmonicValidMessage.DATA_NOT_BLANK)
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchTime;

    @ApiModelProperty("监测点id")
    private String lineId;

    @ApiModelProperty("相别")
    private String phaseType;

    @ApiModelProperty("指标")
    private String targetCode;

    @ApiModelProperty("类型(1-平均值；2-最小值；3-最大值；4-CP95值)")
    private Integer valueType;

    @ApiModelProperty("次数")
    private Integer number;
}
