|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
// ==========================================================================
|
|
|
|
|
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
|
|
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
|
|
|
// ==========================================================================
|
|
|
|
|
|
|
|
|
|
package internal |
|
|
|
@ -20,36 +20,44 @@ type LoginLogoutInfoDao struct {
|
|
|
|
|
|
|
|
|
|
// LoginLogoutInfoColumns defines and stores column names for table login_logout_info.
|
|
|
|
|
type LoginLogoutInfoColumns struct { |
|
|
|
|
Id string //
|
|
|
|
|
Uid string //
|
|
|
|
|
State string // 1: 登录,2: 登出
|
|
|
|
|
CDate string //
|
|
|
|
|
GameTime string // 游戏时间
|
|
|
|
|
Scale string // 规模
|
|
|
|
|
VillagerNum string // 村民数量
|
|
|
|
|
Prosperity string // 繁荣值
|
|
|
|
|
Copper string // 铜币
|
|
|
|
|
GoldIngot string // 桃花石
|
|
|
|
|
BaseFood string // 基础食物
|
|
|
|
|
Day string // 游戏天数
|
|
|
|
|
Server string // 区服
|
|
|
|
|
Id string //
|
|
|
|
|
Uid string //
|
|
|
|
|
State string // 1: 登录,2: 登出
|
|
|
|
|
CDate string //
|
|
|
|
|
GameTime string // 游戏时间
|
|
|
|
|
Scale string // 规模
|
|
|
|
|
VillagerNum string // 村民数量
|
|
|
|
|
Prosperity string // 繁荣值
|
|
|
|
|
Copper string // 铜币
|
|
|
|
|
GoldIngot string // 桃花石
|
|
|
|
|
BaseFood string // 基础食物
|
|
|
|
|
Day string // 游戏天数
|
|
|
|
|
Server string // 区服
|
|
|
|
|
VouchersNum string //
|
|
|
|
|
RechargeTotal string //
|
|
|
|
|
StoreSum string //
|
|
|
|
|
StoneAmount string //
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// loginLogoutInfoColumns holds the columns for table login_logout_info.
|
|
|
|
|
var loginLogoutInfoColumns = LoginLogoutInfoColumns{ |
|
|
|
|
Id: "id", |
|
|
|
|
Uid: "uid", |
|
|
|
|
State: "state", |
|
|
|
|
CDate: "c_date", |
|
|
|
|
GameTime: "game_time", |
|
|
|
|
Scale: "scale", |
|
|
|
|
VillagerNum: "villager_num", |
|
|
|
|
Prosperity: "prosperity", |
|
|
|
|
Copper: "copper", |
|
|
|
|
GoldIngot: "goldIngot", |
|
|
|
|
BaseFood: "base_food", |
|
|
|
|
Day: "day", |
|
|
|
|
Server: "server", |
|
|
|
|
Id: "id", |
|
|
|
|
Uid: "uid", |
|
|
|
|
State: "state", |
|
|
|
|
CDate: "c_date", |
|
|
|
|
GameTime: "game_time", |
|
|
|
|
Scale: "scale", |
|
|
|
|
VillagerNum: "villager_num", |
|
|
|
|
Prosperity: "prosperity", |
|
|
|
|
Copper: "copper", |
|
|
|
|
GoldIngot: "goldIngot", |
|
|
|
|
BaseFood: "base_food", |
|
|
|
|
Day: "day", |
|
|
|
|
Server: "server", |
|
|
|
|
VouchersNum: "vouchersNum", |
|
|
|
|
RechargeTotal: "rechargeTotal", |
|
|
|
|
StoreSum: "storeSum", |
|
|
|
|
StoneAmount: "stoneAmount", |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// NewLoginLogoutInfoDao creates and returns a new DAO object for table data access.
|
|
|
|
@ -92,6 +100,6 @@ func (dao *LoginLogoutInfoDao) Ctx(ctx context.Context) *gdb.Model {
|
|
|
|
|
//
|
|
|
|
|
// Note that, you should not Commit or Rollback the transaction in function f
|
|
|
|
|
// as it is automatically handled by this function.
|
|
|
|
|
func (dao *LoginLogoutInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) { |
|
|
|
|
func (dao *LoginLogoutInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) { |
|
|
|
|
return dao.Ctx(ctx).Transaction(ctx, f) |
|
|
|
|
} |
|
|
|
|