package com.hotwj.platform.securityManagement.trainingOutline.domain.bo;

import com.hotwj.platform.securityManagement.trainingOutline.domain.HotTrainingOutline;
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_training_outline
 *
 * @author shihongwei
 * @date 2026-05-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotTrainingOutline.class, reverseConvertGenerate = false)
public class HotTrainingOutlineBo extends BaseEntity {

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

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 上级大纲ID，年度为0
     */
    private Long parentId;

    /**
     * 大纲层级：1=年度，2=月度，3=周度
     */
    @NotNull(message = "大纲层级不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long outlineLevel;

    /**
     * 大纲名称
     */
    @NotBlank(message = "大纲名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String outlineName;

    /**
     * 大纲文件
     */
    @NotBlank(message = "大纲文件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String outlineFile;

    /**
     * 培训类型（字典值）
     */
    @NotBlank(message = "培训类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String trainingType;

    /**
     * 是否启用：0=禁用，1=启用
     */
    private Long isEnabled;

    /**
     * 排序号，越小越靠前
     */
    private Long sortNo;

    /**
     * 备注
     */
    private String remark;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
