package com.njcn.event.pojo.param;

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

import javax.validation.constraints.NotNull;


/**
 * @version 1.0.0
 * @author: zbj
 * @date: 2022/07/29
 */
@Data
@ApiModel
public class WaveTypeParam extends DeviceInfoParam.BusinessParam {
    @ApiModelProperty("搜索值")
    private String searchValue;
    @ApiModelProperty("触发类型")
    private String waveType;

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

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

    @NotNull(
            message = "通讯状态 0.离线 1.在线"
    )
    @ApiModelProperty(
            name = "comFlag",
            value = "通讯状态 0.离线 1.在线"
    )
    private Integer comFlag = 1;

    @ApiModelProperty(name = "type", value = "区分 0.pq 1.pms")
    private Integer type = 0;
}
