package cn.iocoder.yudao.module.pms.controller.admin.qhse.accident.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Set;

@Schema(description = "管理后台 - QHSE事故上报新增/修改 Request VO")
@Data
public class IotAccidentReportSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4798")
    private Long id;

    private Long accidentId;

    @Schema(description = "事件事件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "事件事件不能为空")
    private LocalDateTime actualTime;

    @Schema(description = "事件级别", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "事件级别不能为空")
    private String accidentGrade;

    @Schema(description = "事件类型", example = "2")
    private String accidentType;

    @Schema(description = "事件地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "事件地址不能为空")
    private String accidentAddress;

    @Schema(description = "部门id", example = "13049")
    private Long deptId;

    @Schema(description = "队伍名称", example = "李四")
    private String deptName;

    @Schema(description = "现场负责人")
    private String dutyPerson;

    @Schema(description = "事件损失情况")
    private String lossSituation;

    @Schema(description = "现场采取措施")
    private String emergencyMeasure;

    @Schema(description = "事件简要经过", example = "随便")
    private String description;

    @Schema(description = "附件/现场图片")
    private String pic;

    @Schema(description = "当前操作人数组", example = "1")
    private Set<Long> currentPerson;
    /**
     * 流程状态位
     */
    private String flowStatus;
    /**
     * 事件状态
     */
    private String status;

    @Schema(description = "备注", example = "随便")
    private String remark;

}