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

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

import javax.validation.constraints.Pattern;

/**
 * @author denghuajun
 * @date 2022/2/28
 *
 */

@Data
public class PulicTimeParam {

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

    @ApiModelProperty("开始时间")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchBeginTime;

    @ApiModelProperty("结束时间")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchEndTime;

    @ApiModelProperty("统计类型 1.年 2.季 3.月 4.周 5.天")
    private Integer timeFlag;

}
