package com.fizz.business.form;


import com.fizz.business.constants.enums.AlarmStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @author chenhao
 * @date 2023/04/26
 */
@Getter
@Setter
public class QueryAlarmForm extends PageForm implements Serializable {

    @Schema(description = "钢卷号")
    private String matId;

    @Schema(description = "状态，INIT-初始化，UNCONFIRMED-报警未确认，CONFIRM-报警已确认")
    private List<AlarmStatusEnum> statuses;

    @Schema(description = "报警类型 1:持续5min的报警 2：立即报警")
    private String alarmType;

    @Schema(description = "开始日期,yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @Schema(description = "结束日期,yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
}
