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

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

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

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

    /**
     * 风险最小值
     */
    @NotNull(message = "风险最小值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long minScore;

    /**
     * 风险最大值
     */
    @NotNull(message = "风险最大值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long maxScore;

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

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


}
