24 changed files with 796 additions and 101 deletions
@ -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" |
||||
) |
||||
|
||||
// internalGameRouterDao is internal type for wrapping internal DAO implements.
|
||||
type internalGameRouterDao = *internal.GameRouterDao |
||||
|
||||
// gameRouterDao is the data access object for table game_router.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type gameRouterDao struct { |
||||
internalGameRouterDao |
||||
} |
||||
|
||||
var ( |
||||
// GameRouter is globally public accessible object for table game_router operations.
|
||||
GameRouter = gameRouterDao{ |
||||
internal.NewGameRouterDao(), |
||||
} |
||||
) |
||||
|
||||
// Fill with you ideas below.
|
@ -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" |
||||
) |
||||
|
||||
// internalGameServerJsonDao is internal type for wrapping internal DAO implements.
|
||||
type internalGameServerJsonDao = *internal.GameServerJsonDao |
||||
|
||||
// gameServerJsonDao is the data access object for table game_server_json.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type gameServerJsonDao struct { |
||||
internalGameServerJsonDao |
||||
} |
||||
|
||||
var ( |
||||
// GameServerJson is globally public accessible object for table game_server_json operations.
|
||||
GameServerJson = gameServerJsonDao{ |
||||
internal.NewGameServerJsonDao(), |
||||
} |
||||
) |
||||
|
||||
// Fill with you ideas below.
|
@ -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" |
||||
) |
||||
|
||||
// internalGameServerJsonGeneralDao is internal type for wrapping internal DAO implements.
|
||||
type internalGameServerJsonGeneralDao = *internal.GameServerJsonGeneralDao |
||||
|
||||
// gameServerJsonGeneralDao is the data access object for table game_server_json_general.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type gameServerJsonGeneralDao struct { |
||||
internalGameServerJsonGeneralDao |
||||
} |
||||
|
||||
var ( |
||||
// GameServerJsonGeneral is globally public accessible object for table game_server_json_general operations.
|
||||
GameServerJsonGeneral = gameServerJsonGeneralDao{ |
||||
internal.NewGameServerJsonGeneralDao(), |
||||
} |
||||
) |
||||
|
||||
// Fill with you ideas below.
|
@ -0,0 +1,91 @@
|
||||
// ==========================================================================
|
||||
// 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" |
||||
) |
||||
|
||||
// GameRouterDao is the data access object for table game_router.
|
||||
type GameRouterDao 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 GameRouterColumns // columns contains all the column names of Table for convenient usage.
|
||||
} |
||||
|
||||
// GameRouterColumns defines and stores column names for table game_router.
|
||||
type GameRouterColumns struct { |
||||
Id string //
|
||||
ServerId string //
|
||||
RealmIp string //
|
||||
RealmPort string //
|
||||
RealmStep string //
|
||||
RealmNum string //
|
||||
RouterIp string //
|
||||
RouterPort string //
|
||||
RouterNum string //
|
||||
RouterStep string //
|
||||
} |
||||
|
||||
// gameRouterColumns holds the columns for table game_router.
|
||||
var gameRouterColumns = GameRouterColumns{ |
||||
Id: "id", |
||||
ServerId: "server_id", |
||||
RealmIp: "realm_ip", |
||||
RealmPort: "realm_port", |
||||
RealmStep: "realm_step", |
||||
RealmNum: "realm_num", |
||||
RouterIp: "router_ip", |
||||
RouterPort: "router_port", |
||||
RouterNum: "router_num", |
||||
RouterStep: "router_step", |
||||
} |
||||
|
||||
// NewGameRouterDao creates and returns a new DAO object for table data access.
|
||||
func NewGameRouterDao() *GameRouterDao { |
||||
return &GameRouterDao{ |
||||
group: "default", |
||||
table: "game_router", |
||||
columns: gameRouterColumns, |
||||
} |
||||
} |
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *GameRouterDao) DB() gdb.DB { |
||||
return g.DB(dao.group) |
||||
} |
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *GameRouterDao) Table() string { |
||||
return dao.table |
||||
} |
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *GameRouterDao) Columns() GameRouterColumns { |
||||
return dao.columns |
||||
} |
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *GameRouterDao) Group() string { |
||||
return dao.group |
||||
} |
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *GameRouterDao) 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 *GameRouterDao) 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,83 @@
|
||||
// ==========================================================================
|
||||
// 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" |
||||
) |
||||
|
||||
// GameServerJsonDao is the data access object for table game_server_json.
|
||||
type GameServerJsonDao 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 GameServerJsonColumns // columns contains all the column names of Table for convenient usage.
|
||||
} |
||||
|
||||
// GameServerJsonColumns defines and stores column names for table game_server_json.
|
||||
type GameServerJsonColumns struct { |
||||
Id string //
|
||||
GameDbUrl string //
|
||||
GameDbName string //
|
||||
Platform string //
|
||||
InnerIp string //
|
||||
CreateTime string //
|
||||
} |
||||
|
||||
// gameServerJsonColumns holds the columns for table game_server_json.
|
||||
var gameServerJsonColumns = GameServerJsonColumns{ |
||||
Id: "id", |
||||
GameDbUrl: "game_db_url", |
||||
GameDbName: "game_db_name", |
||||
Platform: "platform", |
||||
InnerIp: "inner_ip", |
||||
CreateTime: "create_time", |
||||
} |
||||
|
||||
// NewGameServerJsonDao creates and returns a new DAO object for table data access.
|
||||
func NewGameServerJsonDao() *GameServerJsonDao { |
||||
return &GameServerJsonDao{ |
||||
group: "default", |
||||
table: "game_server_json", |
||||
columns: gameServerJsonColumns, |
||||
} |
||||
} |
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *GameServerJsonDao) DB() gdb.DB { |
||||
return g.DB(dao.group) |
||||
} |
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *GameServerJsonDao) Table() string { |
||||
return dao.table |
||||
} |
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *GameServerJsonDao) Columns() GameServerJsonColumns { |
||||
return dao.columns |
||||
} |
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *GameServerJsonDao) Group() string { |
||||
return dao.group |
||||
} |
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *GameServerJsonDao) 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 *GameServerJsonDao) 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,85 @@
|
||||
// ==========================================================================
|
||||
// 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" |
||||
) |
||||
|
||||
// GameServerJsonGeneralDao is the data access object for table game_server_json_general.
|
||||
type GameServerJsonGeneralDao 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 GameServerJsonGeneralColumns // columns contains all the column names of Table for convenient usage.
|
||||
} |
||||
|
||||
// GameServerJsonGeneralColumns defines and stores column names for table game_server_json_general.
|
||||
type GameServerJsonGeneralColumns struct { |
||||
Id string //
|
||||
SdkAddress string //
|
||||
UniqueAddress string //
|
||||
IdentityCheckAddress string //
|
||||
RechargeWhiteListIps string //
|
||||
GmWhiteListUrl string //
|
||||
BackstageRechargeUrl string //
|
||||
} |
||||
|
||||
// gameServerJsonGeneralColumns holds the columns for table game_server_json_general.
|
||||
var gameServerJsonGeneralColumns = GameServerJsonGeneralColumns{ |
||||
Id: "id", |
||||
SdkAddress: "sdk_address", |
||||
UniqueAddress: "unique_address", |
||||
IdentityCheckAddress: "identity_check_address", |
||||
RechargeWhiteListIps: "recharge_white_list_ips", |
||||
GmWhiteListUrl: "gm_white_list_url", |
||||
BackstageRechargeUrl: "backstage_recharge_url", |
||||
} |
||||
|
||||
// NewGameServerJsonGeneralDao creates and returns a new DAO object for table data access.
|
||||
func NewGameServerJsonGeneralDao() *GameServerJsonGeneralDao { |
||||
return &GameServerJsonGeneralDao{ |
||||
group: "default", |
||||
table: "game_server_json_general", |
||||
columns: gameServerJsonGeneralColumns, |
||||
} |
||||
} |
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *GameServerJsonGeneralDao) DB() gdb.DB { |
||||
return g.DB(dao.group) |
||||
} |
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *GameServerJsonGeneralDao) Table() string { |
||||
return dao.table |
||||
} |
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *GameServerJsonGeneralDao) Columns() GameServerJsonGeneralColumns { |
||||
return dao.columns |
||||
} |
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *GameServerJsonGeneralDao) Group() string { |
||||
return dao.group |
||||
} |
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *GameServerJsonGeneralDao) 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 *GameServerJsonGeneralDao) 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,24 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do |
||||
|
||||
import ( |
||||
"github.com/gogf/gf/v2/frame/g" |
||||
) |
||||
|
||||
// GameRouter is the golang structure of table game_router for DAO operations like Where/Data.
|
||||
type GameRouter struct { |
||||
g.Meta `orm:"table:game_router, do:true"` |
||||
Id interface{} //
|
||||
ServerId interface{} //
|
||||
RealmIp interface{} //
|
||||
RealmPort interface{} //
|
||||
RealmStep interface{} //
|
||||
RealmNum interface{} //
|
||||
RouterIp interface{} //
|
||||
RouterPort interface{} //
|
||||
RouterNum interface{} //
|
||||
RouterStep interface{} //
|
||||
} |
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// 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" |
||||
) |
||||
|
||||
// GameServerJson is the golang structure of table game_server_json for DAO operations like Where/Data.
|
||||
type GameServerJson struct { |
||||
g.Meta `orm:"table:game_server_json, do:true"` |
||||
Id interface{} //
|
||||
GameDbUrl interface{} //
|
||||
GameDbName interface{} //
|
||||
Platform interface{} //
|
||||
InnerIp interface{} //
|
||||
CreateTime *gtime.Time //
|
||||
} |
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do |
||||
|
||||
import ( |
||||
"github.com/gogf/gf/v2/frame/g" |
||||
) |
||||
|
||||
// GameServerJsonGeneral is the golang structure of table game_server_json_general for DAO operations like Where/Data.
|
||||
type GameServerJsonGeneral struct { |
||||
g.Meta `orm:"table:game_server_json_general, do:true"` |
||||
Id interface{} //
|
||||
SdkAddress interface{} //
|
||||
UniqueAddress interface{} //
|
||||
IdentityCheckAddress interface{} //
|
||||
RechargeWhiteListIps interface{} //
|
||||
GmWhiteListUrl interface{} //
|
||||
BackstageRechargeUrl interface{} //
|
||||
} |
@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity |
||||
|
||||
// GameRouter is the golang structure for table game_router.
|
||||
type GameRouter struct { |
||||
Id int `json:"id" description:""` |
||||
ServerId string `json:"serverId" description:""` |
||||
RealmIp string `json:"realmIp" description:""` |
||||
RealmPort int `json:"realmPort" description:""` |
||||
RealmStep int `json:"realmStep" description:""` |
||||
RealmNum int `json:"realmNum" description:""` |
||||
RouterIp string `json:"routerIp" description:""` |
||||
RouterPort int `json:"routerPort" description:""` |
||||
RouterNum int `json:"routerNum" description:""` |
||||
RouterStep int `json:"routerStep" description:""` |
||||
} |
@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity |
||||
|
||||
import ( |
||||
"github.com/gogf/gf/v2/os/gtime" |
||||
) |
||||
|
||||
// GameServerJson is the golang structure for table game_server_json.
|
||||
type GameServerJson struct { |
||||
Id int `json:"id" description:""` |
||||
GameDbUrl string `json:"gameDbUrl" description:""` |
||||
GameDbName string `json:"gameDbName" description:""` |
||||
Platform int `json:"platform" description:""` |
||||
InnerIp string `json:"innerIp" description:""` |
||||
CreateTime *gtime.Time `json:"createTime" description:""` |
||||
} |
@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity |
||||
|
||||
// GameServerJsonGeneral is the golang structure for table game_server_json_general.
|
||||
type GameServerJsonGeneral struct { |
||||
Id int `json:"id" description:""` |
||||
SdkAddress string `json:"sdkAddress" description:""` |
||||
UniqueAddress string `json:"uniqueAddress" description:""` |
||||
IdentityCheckAddress string `json:"identityCheckAddress" description:""` |
||||
RechargeWhiteListIps string `json:"rechargeWhiteListIps" description:""` |
||||
GmWhiteListUrl string `json:"gmWhiteListUrl" description:""` |
||||
BackstageRechargeUrl string `json:"backstageRechargeUrl" description:""` |
||||
} |
Loading…
Reference in new issue