feat: 完善平台总后台模块
This commit is contained in:
14
backend/api/internal/models/wallet_recharge.go
Normal file
14
backend/api/internal/models/wallet_recharge.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
// WalletRecharge 对应 wallet_recharge,保存充值记录。
|
||||
type WalletRecharge struct {
|
||||
Entity
|
||||
WalletID uint64 `gorm:"column:wallet_id;not null;index" json:"wallet_id"`
|
||||
Amount int64 `gorm:"column:amount;not null" json:"amount"`
|
||||
Channel string `gorm:"column:channel;type:varchar(32);not null" json:"channel"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&WalletRecharge{}) }
|
||||
func (table *WalletRecharge) TableName() string { return "wallet_recharge" }
|
||||
Reference in New Issue
Block a user