package com.miraclegarden.smsmessage.model;

/**
 * **********************
 *
 * @Author MiracleGarden
 * 创建时间： 2026/4/5
 * 银行账户信息数据模型
 * **********************
 */
public class BankInfo {
    private String id;              // 银行ID (bankInfoId)
    private String bankName;        // 银行名称
    private String account;         // 账户
    private String remark;          // 备注
    private String userId;          // 用户ID
    private String createdAt;       // 创建时间
    private String updatedAt;       // 更新时间

    public BankInfo() {
    }

    public BankInfo(String bankName, String account, String remark) {
        this.bankName = bankName;
        this.account = account;
        this.remark = remark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * 获取显示名称：银行名 + 账户
     */
    public String getDisplayName() {
        if (account != null && !account.isEmpty()) {
            return bankName + " (" + account + ")";
        }
        return bankName;
    }
}
