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

import org.dromara.payment.common.domain.BusAccounts;
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;

/**
 * 资金账户汇总业务对象 bus_accounts
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusAccounts.class, reverseConvertGenerate = false)
public class BusAccountsBo extends BaseEntity {

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

    /**
     * 结算中心id
     */
    @NotNull(message = "结算中心id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sydId;

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

    /**
     * 账户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;

    /**
     * 余额
     */
    @NotNull(message = "余额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long balance;

    /**
     * 冻结金额
     */
    @NotNull(message = "冻结金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long frozen;

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

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

    /**
     * 状态（0:未开通 1:开通成功 2:冻结 3:开通中 4:开通失败）
     */
    @NotNull(message = "状态（0:未开通 1:开通成功 2:冻结 3:开通中 4:开通失败）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 开户类型（0:系统 6：服务商  9：商户 ）
     */
    @NotNull(message = "开户类型（0:系统 6：服务商  9：商户 ）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer addYpe;

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

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


}
