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

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import java.io.Serializable;


/**
 * @version 1.0.0
 * @author: zbj
 * @date: 2023/03/20
 */
@Data
public class LargeScreenParam extends BaseParam implements Serializable {

    @ApiModelProperty(name = "deptIndex", value = "部门索引", required = true)
    @NotBlank(message = "部门索引不可为空")
    private String deptIndex;

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

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

    @ApiModelProperty("返回条数")
    private Integer limit;
}