package org.dromara.mp.domain.bo;

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 org.dromara.mp.domain.UserWorkerAccount;

import java.util.Date;

/**
 * 自雇者账户业务对象 user_worker_account
 *
 * @author LionLi
 * @date 2024-04-28
 * @date 2024-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserWorkerAccount.class, reverseConvertGenerate = false)
public class UserWorkerAccountBo extends BaseEntity {

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

    /**
     * 自雇者id
     */
    @NotNull(message = "自雇者id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long workId;

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

    /**
     * 银行类型（字典）
     */
    @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 isDefault;

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

    /**
     * 银行卡照片
     */
    @NotBlank(message = "银行卡照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankCardPic;

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

    /**
     * 结算通道
     */
    @NotBlank(message = "结算通道不能为空", groups = { AddGroup.class, EditGroup.class })
    private String passage;


    private String cardType;


}
