2026-07-27 00:18:42 +08:00
|
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
|
|
import "git.apinb.com/bsm-sdk/core/database"
|
|
|
|
|
|
|
|
|
|
|
|
// WalletRecharge 对应 wallet_recharge,保存充值记录。
|
|
|
|
|
|
type WalletRecharge struct {
|
2026-07-27 12:02:08 +08:00
|
|
|
|
Entity // 公共实体字段
|
|
|
|
|
|
WalletID uint64 `gorm:"column:wallet_id;not null;index" json:"wallet_id"` // wallet_id 业务字段
|
|
|
|
|
|
Amount int64 `gorm:"column:amount;not null" json:"amount"` // amount 业务字段
|
|
|
|
|
|
Channel string `gorm:"column:channel;type:varchar(32);not null" json:"channel"` // channel 业务字段
|
2026-07-27 00:18:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() { database.AppendMigrate(&WalletRecharge{}) }
|
|
|
|
|
|
func (table *WalletRecharge) TableName() string { return "wallet_recharge" }
|