models defined

This commit is contained in:
goder 2026-02-14 22:21:23 +08:00
parent 88c36de6ec
commit b1b3c7ed79
4 changed files with 21 additions and 25 deletions

View File

@ -4,14 +4,12 @@ import "bygdata/global"
type UserBonusStats struct { type UserBonusStats struct {
global.GVA_MODEL global.GVA_MODEL
Xid *string `json:"xid" form:"xid" gorm:"column:xid;size:100;" binding:"required"` Xid *string `json:"xid" form:"xid" gorm:"column:xid;size:100;" binding:"required"`
UserNo *string `json:"userNo" form:"userNo" gorm:"column:user_no;size:50;" binding:"required"` UserNo *string `json:"userNo" form:"userNo" gorm:"column:user_no;size:50;" binding:"required"`
Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"` Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"`
GameType *int `json:"gameType" form:"gameType" gorm:"column:game_type;type:int;"` Coin *int `json:"coin" form:"coin" gorm:"column:coin;type:int;"`
GameId *string `json:"gameId" form:"gameId" gorm:"column:game_id;size:20;"` Count *int `json:"count" form:"count" gorm:"column:count;type:int;"`
BetCoin *int `json:"betCoin" form:"betCoin" gorm:"column:game_type;type:int;"` Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"`
BetCount *int `json:"betCount" form:"betCount" gorm:"column:bet_count;type:int;"`
Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"`
} }
func (UserBonusStats) TableName() string { func (UserBonusStats) TableName() string {

View File

@ -9,7 +9,7 @@ type UserGameStats struct {
Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"` Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"`
GameType *int `json:"gameType" form:"gameType" gorm:"column:game_type;type:int;"` GameType *int `json:"gameType" form:"gameType" gorm:"column:game_type;type:int;"`
GameId *string `json:"gameId" form:"gameId" gorm:"column:game_id;size:20;"` GameId *string `json:"gameId" form:"gameId" gorm:"column:game_id;size:20;"`
BetCoin *int `json:"betCoin" form:"betCoin" gorm:"column:game_type;type:int;"` BetCoin *int `json:"betCoin" form:"betCoin" gorm:"column:bet_coin;type:int;"`
BetCount *int `json:"betCount" form:"betCount" gorm:"column:bet_count;type:int;"` BetCount *int `json:"betCount" form:"betCount" gorm:"column:bet_count;type:int;"`
Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"` Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"`
} }

View File

@ -4,14 +4,13 @@ import "bygdata/global"
type UserPaymentStats struct { type UserPaymentStats struct {
global.GVA_MODEL global.GVA_MODEL
Xid *string `json:"xid" form:"xid" gorm:"column:xid;size:100;" binding:"required"` Xid *string `json:"xid" form:"xid" gorm:"column:xid;size:100;" binding:"required"`
UserNo *string `json:"userNo" form:"userNo" gorm:"column:user_no;size:50;" binding:"required"` UserNo *string `json:"userNo" form:"userNo" gorm:"column:user_no;size:50;" binding:"required"`
Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"` Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"`
GameType *int `json:"gameType" form:"gameType" gorm:"column:game_type;type:int;"` Money *int `json:"money" form:"money" gorm:"column:money;type:int;"`
GameId *string `json:"gameId" form:"gameId" gorm:"column:game_id;size:20;"` Coin *int `json:"coin" form:"coin" gorm:"column:coin;type:int;"`
BetCoin *int `json:"betCoin" form:"betCoin" gorm:"column:game_type;type:int;"` Count *int `json:"count" form:"count" gorm:"column:count;type:int;"`
BetCount *int `json:"betCount" form:"betCount" gorm:"column:bet_count;type:int;"` Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"`
Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"`
} }
func (UserPaymentStats) TableName() string { func (UserPaymentStats) TableName() string {

View File

@ -4,14 +4,13 @@ import "bygdata/global"
type UserWithdrawalStats struct { type UserWithdrawalStats struct {
global.GVA_MODEL global.GVA_MODEL
Xid *string `json:"xid" form:"xid" gorm:"column:xid;size:100;" binding:"required"` Xid *string `json:"xid" form:"xid" gorm:"column:xid;size:100;" binding:"required"`
UserNo *string `json:"userNo" form:"userNo" gorm:"column:user_no;size:50;" binding:"required"` UserNo *string `json:"userNo" form:"userNo" gorm:"column:user_no;size:50;" binding:"required"`
Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"` Ymd *string `json:"ymd" form:"ymd" gorm:"column:ymd;size:10;"`
GameType *int `json:"gameType" form:"gameType" gorm:"column:game_type;type:int;"` Money *int `json:"money" form:"money" gorm:"column:money;type:int;"`
GameId *string `json:"gameId" form:"gameId" gorm:"column:game_id;size:20;"` Coin *int `json:"coin" form:"coin" gorm:"column:coin;type:int;"`
BetCoin *int `json:"betCoin" form:"betCoin" gorm:"column:game_type;type:int;"` Count *int `json:"count" form:"count" gorm:"column:count;type:int;"`
BetCount *int `json:"betCount" form:"betCount" gorm:"column:bet_count;type:int;"` Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"`
Ut *int64 `json:"ut" form:"ut" gorm:"column:ut;type:bigint;"`
} }
func (UserWithdrawalStats) TableName() string { func (UserWithdrawalStats) TableName() string {