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

import com.hotwj.platform.config.hiddenDangerInspectStore.domain.HotHiddenDangerInspectStore;
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_hidden_danger_inspect_store
 *
 * @author shihongwei
 * @date 2025-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotHiddenDangerInspectStore.class, reverseConvertGenerate = false)
public class HotHiddenDangerInspectStoreBo extends BaseEntity {

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

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    /**
     * 检查类型 1=企业 2=车辆 3=人员
     */
    @NotNull(message = "检查类型 1=企业 2=车辆 3=人员不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long inspectType;

    /**
     * 隐患排查内容
     */
    @NotBlank(message = "隐患排查内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String content;

    /**
     * 正常项
     */
    @NotBlank(message = "正常项不能为空", groups = {AddGroup.class, EditGroup.class})
    private String normalText;

    /**
     * 异常项
     */
    @NotBlank(message = "异常项不能为空", groups = {AddGroup.class, EditGroup.class})
    private String abnormalText;

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

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


}
