package cn.iocoder.yudao.module.system.controller.admin.biz.vo;

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

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @Author: jinyd
 * @CreateTime: 2024/11/4  13:34
 * @Description:
 * @Version: 4.0
 */


@Schema(description = "管理后台 - 设备报警新增/修改 Request VO")
@Data
public class DeviceWarnSaveReqVO {

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

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17273")
    @NotNull(message = "设备id不能为空")
    private Long deviceProductId;

    @Schema(description = "关联主键ID", example = "4359")
    private Long relevanceId;

    @Schema(description = "设备Mac")
    private String deviceMac;

    @Schema(description = "sn码")
    private String snCode;

    @Schema(description = "报警级别", example = "2")
    private Integer status;

    @Schema(description = "报警类型", example = "1")
    private Integer alarmType;

    @Schema(description = "报警时间")
    private LocalDateTime warnTime;

    @Schema(description = "报警参数")
    private String warnParam;

    @Schema(description = "日志类型", example = "2")
    private Integer logType;

    @Schema(description = "描述", example = "你猜")
    private String remark;

    @Schema(description = "处理人")
    private String processPerson;

    @Schema(description = "处理人ID", example = "29853")
    private String processId;

    @Schema(description = "处理方式", example = "2")
    private String processType;

    @Schema(description = "处理状态")
    private Integer state;

}
