package com.njcn.event.pojo.param;

import com.njcn.device.pojo.param.DeviceInfoParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @version 1.0.0
 * @author: chenchao
 * @date: 2022/06/06 14:07
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TransientParam extends DeviceInfoParam.BusinessParam {

    @ApiModelProperty("页码")
    @NotNull(message = "页码不可为空")
    @Range(min = 1,message = "页码必须大于0")
    private Integer pageNum;

    @ApiModelProperty("条数")
    @NotNull(message = "条数不可为空")
    @Range(min = 1,message = "条数必须大于0")
    private Integer pageSize;

}

