19 changed files with 408 additions and 50 deletions
@ -0,0 +1,115 @@
|
||||
// ==========================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// ==========================================================================
|
||||
|
||||
package internal |
||||
|
||||
import ( |
||||
"context" |
||||
|
||||
"github.com/gogf/gf/v2/database/gdb" |
||||
"github.com/gogf/gf/v2/frame/g" |
||||
) |
||||
|
||||
// LoginLogoutInfoGmDao is the data access object for table login_logout_info_gm.
|
||||
type LoginLogoutInfoGmDao struct { |
||||
table string // table is the underlying table name of the DAO.
|
||||
group string // group is the database configuration group name of current DAO.
|
||||
columns LoginLogoutInfoGmColumns // columns contains all the column names of Table for convenient usage.
|
||||
} |
||||
|
||||
// LoginLogoutInfoGmColumns defines and stores column names for table login_logout_info_gm.
|
||||
type LoginLogoutInfoGmColumns 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 // 区服
|
||||
VouchersNum string //
|
||||
RechargeTotal string //
|
||||
StoreSum string //
|
||||
StoneAmount string //
|
||||
Item7307 string //
|
||||
Item7315 string //
|
||||
Item7316 string //
|
||||
Item7319 string //
|
||||
Item7312 string //
|
||||
} |
||||
|
||||
// loginLogoutInfoGmColumns holds the columns for table login_logout_info_gm.
|
||||
var loginLogoutInfoGmColumns = LoginLogoutInfoGmColumns{ |
||||
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", |
||||
Item7307: "item7307", |
||||
Item7315: "item7315", |
||||
Item7316: "item7316", |
||||
Item7319: "item7319", |
||||
Item7312: "item7312", |
||||
} |
||||
|
||||
// NewLoginLogoutInfoGmDao creates and returns a new DAO object for table data access.
|
||||
func NewLoginLogoutInfoGmDao() *LoginLogoutInfoGmDao { |
||||
return &LoginLogoutInfoGmDao{ |
||||
group: "default", |
||||
table: "login_logout_info_gm", |
||||
columns: loginLogoutInfoGmColumns, |
||||
} |
||||
} |
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *LoginLogoutInfoGmDao) DB() gdb.DB { |
||||
return g.DB(dao.group) |
||||
} |
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *LoginLogoutInfoGmDao) Table() string { |
||||
return dao.table |
||||
} |
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *LoginLogoutInfoGmDao) Columns() LoginLogoutInfoGmColumns { |
||||
return dao.columns |
||||
} |
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *LoginLogoutInfoGmDao) Group() string { |
||||
return dao.group |
||||
} |
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *LoginLogoutInfoGmDao) Ctx(ctx context.Context) *gdb.Model { |
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx) |
||||
} |
||||
|
||||
// Transaction wraps the transaction logic using function f.
|
||||
// It rollbacks the transaction and returns the error from function f if it returns non-nil error.
|
||||
// It commits the transaction and returns nil if function f returns nil.
|
||||
//
|
||||
// Note that, you should not Commit or Rollback the transaction in function f
|
||||
// as it is automatically handled by this function.
|
||||
func (dao *LoginLogoutInfoGmDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) { |
||||
return dao.Ctx(ctx).Transaction(ctx, f) |
||||
} |
@ -0,0 +1,27 @@
|
||||
// =================================================================================
|
||||
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
|
||||
// =================================================================================
|
||||
|
||||
package dao |
||||
|
||||
import ( |
||||
"tyj_admin/internal/dao/internal" |
||||
) |
||||
|
||||
// internalLoginLogoutInfoGmDao is internal type for wrapping internal DAO implements.
|
||||
type internalLoginLogoutInfoGmDao = *internal.LoginLogoutInfoGmDao |
||||
|
||||
// loginLogoutInfoGmDao is the data access object for table login_logout_info_gm.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type loginLogoutInfoGmDao struct { |
||||
internalLoginLogoutInfoGmDao |
||||
} |
||||
|
||||
var ( |
||||
// LoginLogoutInfoGm is globally public accessible object for table login_logout_info_gm operations.
|
||||
LoginLogoutInfoGm = loginLogoutInfoGmDao{ |
||||
internal.NewLoginLogoutInfoGmDao(), |
||||
} |
||||
) |
||||
|
||||
// Fill with you ideas below.
|
@ -0,0 +1,37 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do |
||||
|
||||
import ( |
||||
"github.com/gogf/gf/v2/frame/g" |
||||
"github.com/gogf/gf/v2/os/gtime" |
||||
) |
||||
|
||||
// LoginLogoutInfoGm is the golang structure of table login_logout_info_gm for DAO operations like Where/Data.
|
||||
type LoginLogoutInfoGm struct { |
||||
g.Meta `orm:"table:login_logout_info_gm, do:true"` |
||||
Id interface{} //
|
||||
Uid interface{} //
|
||||
State interface{} // 1: 登录,2: 登出
|
||||
CDate *gtime.Time //
|
||||
GameTime interface{} // 游戏时间
|
||||
Scale interface{} // 规模
|
||||
VillagerNum interface{} // 村民数量
|
||||
Prosperity interface{} // 繁荣值
|
||||
Copper interface{} // 铜币
|
||||
GoldIngot interface{} // 桃花石
|
||||
BaseFood interface{} // 基础食物
|
||||
Day interface{} // 游戏天数
|
||||
Server interface{} // 区服
|
||||
VouchersNum interface{} //
|
||||
RechargeTotal interface{} //
|
||||
StoreSum interface{} //
|
||||
StoneAmount interface{} //
|
||||
Item7307 interface{} //
|
||||
Item7315 interface{} //
|
||||
Item7316 interface{} //
|
||||
Item7319 interface{} //
|
||||
Item7312 interface{} //
|
||||
} |
@ -0,0 +1,35 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity |
||||
|
||||
import ( |
||||
"github.com/gogf/gf/v2/os/gtime" |
||||
) |
||||
|
||||
// LoginLogoutInfoGm is the golang structure for table login_logout_info_gm.
|
||||
type LoginLogoutInfoGm struct { |
||||
Id int64 `json:"id" description:""` |
||||
Uid int64 `json:"uid" description:""` |
||||
State int `json:"state" description:"1: 登录,2: 登出"` |
||||
CDate *gtime.Time `json:"cDate" description:""` |
||||
GameTime int `json:"gameTime" description:"游戏时间"` |
||||
Scale int `json:"scale" description:"规模"` |
||||
VillagerNum int `json:"villagerNum" description:"村民数量"` |
||||
Prosperity int `json:"prosperity" description:"繁荣值"` |
||||
Copper int `json:"copper" description:"铜币"` |
||||
GoldIngot int `json:"goldIngot" description:"桃花石"` |
||||
BaseFood int `json:"baseFood" description:"基础食物"` |
||||
Day int `json:"day" description:"游戏天数"` |
||||
Server int `json:"server" description:"区服"` |
||||
VouchersNum int `json:"vouchersNum" description:""` |
||||
RechargeTotal int `json:"rechargeTotal" description:""` |
||||
StoreSum int `json:"storeSum" description:""` |
||||
StoneAmount int `json:"stoneAmount" description:""` |
||||
Item7307 int `json:"item7307" description:""` |
||||
Item7315 int `json:"item7315" description:""` |
||||
Item7316 int `json:"item7316" description:""` |
||||
Item7319 int `json:"item7319" description:""` |
||||
Item7312 int `json:"item7312" description:""` |
||||
} |
Loading…
Reference in new issue