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

import com.njcn.common.pojo.constant.PatternRegex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @version 1.0.0
 * @author: chenchao
 * @date: 2022/05/26 16:28
 */
@Data
@ApiModel
public class DeviceLogParam {

    /**
     * 套餐类型
     */
    @ApiModelProperty("套餐类型,为空表示查询所有")
    private String type;
    /**
     * 开始时间
     */
    @ApiModelProperty("开始时间")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchBeginTime;
    /**
     * 结束时间
     */
    @ApiModelProperty("结束时间")
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchEndTime;
    /**
     * 页码
     */
    @ApiModelProperty("页码")
    @NotNull(message = "页码不可为空")
    @Range(min = 1,message = "页码必须大于0")
    private Integer pageNum;
    /**
     * 条数
     */
    @ApiModelProperty("条数")
    @NotNull(message = "条数不可为空")
    @Range(min = 1,message = "条数必须大于0")
    private Integer pageSize;


}
