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

import org.dromara.payment.operator.domain.BusOperatorAccount;
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_operator_account
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BusOperatorAccount.class, reverseConvertGenerate = false)
public class BusOperatorAccountBo extends BaseEntity {

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

    /**
     * 运营商id
     */
    @NotNull(message = "运营商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long opId;

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

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

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

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

    /**
     * 已提现金额（分）
     */
    @NotNull(message = "已提现金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cashout;

    /**
     * 提现中金额（分）
     */
    @NotNull(message = "提现中金额（分）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cashouting;

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

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

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

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


    private String name;

    //开户行
    private String khh;

    //联行号
    private String lhh;



}
