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

import com.hotwj.platform.securityManagement.trainingParticipant.domain.HotTrainingParticipant;
import io.github.linpeilie.annotations.AutoMapper;
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;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 培训参与人员业务对象 hot_training_participant
 *
 * @author shihongwei
 * @date 2025-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotTrainingParticipant.class, reverseConvertGenerate = false)
public class HotTrainingParticipantBo extends BaseEntity {

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

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

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

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private String userId;

    /**
     * 姓名
     */
    private String userName;

    /**
     * 性别，男/女
     */
    private String gender;

    /**
     * 身份证号
     */
    private String idCardNo;

    /**
     * 学习进度，0-100，单位%
     */
    private BigDecimal learnProgress;

    /**
     * 是否完成学习 0=否 1=是
     */
    private Long isCompleted;

    /**
     * 完成时间
     */
    private Date completeTime;

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

    /**
     * 人员类型
     */
    private Long personType;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 是否通过  1=通过 0=未通过
     */
    private Long isPass;

    /**
     * 学员签名OSS文件ID
     */
    private Long signatureOssId;

    /**
     * 学习照片OSS文件id(json)
     */
    private String studyPhotoOssId;

    /**
     * 创建人显示名称
     */
    private String createByName;

    /**
     * 最后修改人显示名称
     */
    private String updateByName;

    /**
     * 是否可审核 1=是 0=否
     */
    private Long canAudit;


}
