package org.dromara.work.domain.bo;

import org.dromara.work.domain.TpUserAuth;
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.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户认证业务对象 tp_user_auth
 *
 * @author Maosw
 * @date 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpUserAuth.class, reverseConvertGenerate = false)
public class TpUserAuthBo extends BaseEntity {

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

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

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

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idCard;

    /**
     * 性别 1-男  0-女
     */
    private Integer sex;

    /**
     * 从业时间
     */
    private Date professionStartYear;

    /**
     * 从业类型 1-家装 2-工装
     */
    private Integer workType;

    /**
     * 区域
     */
    private String region;

    /**
     * 身份证正面图URL
     */
    private String idCardFront;

    /**
     * 身份证反面图URL
     */
    private String idCardBack;

    /**
     * 认证类型 1-普通认证  2-酷家乐
     */
    private Integer type;

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

    /**
     * 认证状态 1-待审核  2-审核通过  3-审核拒绝
     */
    private Integer status;

}
