package org.dromara.payment.worker.domain.bo;

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;
import org.dromara.payment.worker.domain.UserWorker;

/**
 * 自雇者业务对象 user_worker
 *
 * @author LionLi
 * @date 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserWorker.class, reverseConvertGenerate = false)
public class UserWorkerBo extends BaseEntity {

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

    /**
     * 微信openid
     */
    @NotBlank(message = "微信openid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openId;

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

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 银行卡是否认证（0:否 1:是）
     */
    @NotNull(message = "银行卡是否认证（0:否 1:是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isAuthentication;

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

    /**
     * 身份证正面图片
     */
    @NotBlank(message = "身份证正面图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cardPositive;

    /**
     * 身份证反面图片
     */
    @NotBlank(message = "身份证反面图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cardBack;

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

    /**
     * 银行账号
     */
    @NotBlank(message = "银行账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankCard;

    /**
     * 是否实名认证（0:否 1:是）
     */
    @NotNull(message = "是否实名认证（0:否 1:是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isAuth;

    /**
     * 是否签约（0:否 1:是）
     */
    @NotNull(message = "是否签约（0:否 1:是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isSign;

    /**
     * 签约时间
     */
    @NotNull(message = "签约时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date signTime;

    /**
     * 是否临时税务登记（0:否 1:是）
     */
    @NotNull(message = "是否临时税务登记（0:否 1:是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isRegister;

    /**
     * 人脸照片
     */
    @NotBlank(message = "人脸照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photoPath;

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

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

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

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

    /**
     * 添加时间
     */
    @NotNull(message = "添加时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date addTime;

    /**
     * 添加人
     */
    @NotBlank(message = "添加人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addBy;

    /**
     * 编辑人
     */
    @NotBlank(message = "编辑人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String editer;

    /**
     * 编辑时间
     */
    @NotNull(message = "编辑时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date editTime;

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

    /**
     * 户籍地址
     */
    @NotBlank(message = "户籍地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 出生日期
     */
    @NotNull(message = "出生日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date birthday;

    /**
     * 签发机关
     */
    @NotBlank(message = "签发机关不能为空", groups = { AddGroup.class, EditGroup.class })
    private String issue;

    /**
     * 签发日期
     */
    @NotNull(message = "签发日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date issueDate;

    /**
     * 失效日期
     */
    @NotBlank(message = "失效日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String expiryDate;

    /**
     * 推荐人
     */
    @NotBlank(message = "推荐人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String referrerBy;

    /**
     * 支付宝登录号(支持邮箱和手机号格式)
     */
    @NotBlank(message = "支付宝登录号(支持邮箱和手机号格式)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alipayLogonId;

    /**
     * 状态（1：启用 2：禁用）
     */
    @NotNull(message = "状态（1：启用 2：禁用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


    private Long merId;


}
