package model import "bkb-seller/global" type BankCard struct { AccountName string `gorm:"size:50" json:"account_name"` // 户名 BankCode string `gorm:"size:50" json:"bank_code"` // 收款行 SwiftCode string `gorm:"size:20" json:"swift_code"` // 银行国际代码 CardNumber string `gorm:"size:50" json:"card_number"` // 银行卡号 Address string `gorm:"size:255" json:"address"` // 收款人地址 Country string `gorm:"size:255" json:"country"` // 国家/地区 Currency string `gorm:"size:10" json:"currency"` // 币种 USD:美元 } type Account struct { global.MG_MODEL Platform string `gorm:"size:50" json:"platform"` //平台 saller(买家端) / customer(客户端) / influencer(网红端) UserID string `gorm:"size:50;index" json:"userID"` //用户id Type int `gorm:"type:int(1)" json:"type"` // 类型 1:paypal 2:银行卡 BankCard IDCard string `gorm:"size:30" json:"idCard"` // Phone string `gorm:"size:20" json:"phone"` // Sort int `gorm:"type:int" json:"sort"` // 排序值 IsDefault bool `gorm:"type:tinyint" json:"is_default"` // 是否为默认 0:非默认 1:默认 } func (Account) TableName() string { return "account" }