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

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

/**
 * 自雇者账户业务对象 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 {

    /**
     * 主键
     */
    private Long id;

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

    /**
     * 账户id
     */
    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:是）
     */
    private Long isDefault;

    /**
     * 添加时间
     */
    private Date addTime;

    /**
     * 银行卡照片
     */
    private String bankCardPic;

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

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


    private Integer status;


}
