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

import org.dromara.payment.sys.domain.SysSydAccount;
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;

/**
 * 服务商账户业务对象 sys_syd_account
 *
 * @author LionLi
 * @date 2024-03-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysSydAccount.class, reverseConvertGenerate = false)
public class SysSydAccountBo 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 accId;

    /**
     * 账户类型（0:主账户 1:个人服务费账户）
     */
    @NotNull(message = "账户类型（0:主账户 1:个人服务费账户）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long accType;

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

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

    /**
     * 已开票金额
     */
    @NotNull(message = "已开票金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long invoice;

    /**
     * 状态（1:正常 2:冻结）
     */
    @NotNull(message = "状态（1:正常 2:冻结）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

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


}
