package com.usky.sas.service.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * 首页预警历史分页请求
 */
@Data
@ApiModel("首页预警历史查询请求")
public class HomepageAlertHistoryRequest {

    @ApiModelProperty(value = "当前页码", example = "1")
    @Min(value = 1, message = "页码必须大于0")
    private Integer current = 1;

    @ApiModelProperty(value = "每页大小", example = "10")
    @Min(value = 1, message = "每页大小必须大于0")
    @Max(value = 100, message = "每页大小不能超过100")
    private Integer size = 10;

    /**
     * 事件类型（当前仅 snap 支持开启通知的预警）
     */
    @ApiModelProperty(value = "事件类型", example = "snap", allowableValues = "snap")
    @NotBlank(message = "事件类型不能为空")
    private String eventType = "snap";

}
