✨ 新增几大中心功能
This commit is contained in:
16
server/model/app/app_user_asset.go
Normal file
16
server/model/app/app_user_asset.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package app
|
||||
|
||||
import "time"
|
||||
|
||||
// AppUserAsset 玩家资产(金额单位:厘)
|
||||
type AppUserAsset struct {
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
AppUserID uint `json:"appUserId" gorm:"uniqueIndex;not null"`
|
||||
AccountBalanceLi int64 `json:"accountBalanceLi" gorm:"not null;default:0;comment:账户余额(厘)"`
|
||||
AccountFrozenLi int64 `json:"accountFrozenLi" gorm:"not null;default:0;comment:账户余额冻结(厘)"`
|
||||
GameCoinBalanceLi int64 `json:"gameCoinBalanceLi" gorm:"not null;default:0;comment:游戏币余额(厘)"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
func (AppUserAsset) TableName() string { return "app_user_assets" }
|
||||
Reference in New Issue
Block a user