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

import com.hotwj.platform.securityManagement.trainingAudit.domain.HotTrainingAudit;
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;

import java.util.Date;

/**
 * 培训审核业务对象 hot_training_audit
 *
 * @author shihongwei
 * @date 2025-12-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotTrainingAudit.class, reverseConvertGenerate = false)
public class HotTrainingAuditBo 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
     */
    private String userId;

    /**
     * 是否通过  1=通过 0=未通过
     */
    @NotNull(message = "是否通过  1=通过 0=未通过不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isPass;

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

    /**
     * 审核人ID
     */
    private String auditorId;

    /**
     * 审核人姓名
     */
    private String auditorName;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核人签字图片url
     */
    @NotBlank(message = "审核人签字图片url不能为空", groups = {AddGroup.class, EditGroup.class})
    private String signImgUrl;

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


}
