package com.hotwj.platform.config.riskLevelConfig.domain.bo;

import com.hotwj.platform.config.riskLevelConfig.domain.HotRiskLevelConfig;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 风险等级划分业务对象 hot_risk_level_config
 *
 * @author shihongwei
 * @date 2026-01-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotRiskLevelConfig.class, reverseConvertGenerate = false)
public class HotRiskLevelConfigBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 取值
     */
    @NotNull(message = "取值不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long levelValue;

    /**
     * 说明
     */
    @NotBlank(message = "说明不能为空", groups = {AddGroup.class, EditGroup.class})
    private String levelName;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String description;

    /**
     * 类型: 1=可能性, 2=严重程度
     */
    @NotNull(message = "类型: 1=可能性, 2=严重程度不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long type;

    /**
     * 0=正常, 1=已删除
     */
//    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;


}
