package com.multictrl.modules.business.dto;

import com.multictrl.common.validator.group.AddGroup;
import com.multictrl.common.validator.group.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * AI识别预警
 *
 * @author Sdy
 * @since 1.0.0 2026-06-18
 */
@Data
@Schema(name = "AI识别预警")
public class AiWarningDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Null(message = "标识必须为空", groups = AddGroup.class)
    @NotNull(message = "标识不能为空", groups = UpdateGroup.class)
    @Schema(description = "标识")
    private Long id;

    @NotBlank(message = "应用标识不能为空", groups = AddGroup.class)
    @Schema(description = "应用id")
    private String appId;

    @NotBlank(message = "应用名称不能为空", groups = AddGroup.class)
    @Schema(description = "应用名称")
    private String appName;

    @NotBlank(message = "规则标识不能为空", groups = AddGroup.class)
    @Schema(description = "规则id")
    private String ruleId;

    @NotBlank(message = "规则名称不能为空", groups = AddGroup.class)
    @Schema(description = "规则名称")
    private String ruleName;

    @NotBlank(message = "状态不能为空", groups = {AddGroup.class, UpdateGroup.class})
    @Schema(description = "状态 0关闭 1开启")
    private String status;

    @NotBlank(message = "预警等级不能为空", groups = {AddGroup.class, UpdateGroup.class})
    @Schema(description = "预警等级 高 中 低")
    private String warningLevel;
}
