Browse Source

debug

master
linquan 3 months ago
parent
commit
274c4e6afe
  1. 11
      api/v1/game/cdKey.go
  2. 7
      api/v1/game/manage.go
  3. 21
      api/v1/game/order.go
  4. 30
      api/v1/game/pub.go
  5. 5
      internal/controller/game_order.go
  6. 9
      internal/controller/game_pub.go
  7. 4
      internal/dao/internal/advertisement.go
  8. 4
      internal/dao/internal/casbin_rule.go
  9. 4
      internal/dao/internal/game_black_list.go
  10. 4
      internal/dao/internal/game_bug.go
  11. 4
      internal/dao/internal/game_bug_client.go
  12. 4
      internal/dao/internal/game_ccd_url.go
  13. 4
      internal/dao/internal/game_ccd_url_copy_1.go
  14. 4
      internal/dao/internal/game_ccd_version.go
  15. 4
      internal/dao/internal/game_cd_key.go
  16. 4
      internal/dao/internal/game_cd_password.go
  17. 4
      internal/dao/internal/game_channel_list.go
  18. 4
      internal/dao/internal/game_gift_exchange.go
  19. 4
      internal/dao/internal/game_login_url.go
  20. 4
      internal/dao/internal/game_mail.go
  21. 4
      internal/dao/internal/game_notice.go
  22. 4
      internal/dao/internal/game_notice_log.go
  23. 4
      internal/dao/internal/game_notice_model.go
  24. 4
      internal/dao/internal/game_online.go
  25. 4
      internal/dao/internal/game_recharge.go
  26. 4
      internal/dao/internal/game_recharge_control.go
  27. 4
      internal/dao/internal/game_recharge_copy_1.go
  28. 4
      internal/dao/internal/game_recharge_log.go
  29. 4
      internal/dao/internal/game_recharge_rebate.go
  30. 4
      internal/dao/internal/game_register.go
  31. 4
      internal/dao/internal/game_router.go
  32. 4
      internal/dao/internal/game_server_json_general.go
  33. 4
      internal/dao/internal/game_shop_log.go
  34. 4
      internal/dao/internal/game_unit.go
  35. 4
      internal/dao/internal/game_unit_copy_1.go
  36. 4
      internal/dao/internal/game_version.go
  37. 4
      internal/dao/internal/game_white_list.go
  38. 4
      internal/dao/internal/gm_operate_log.go
  39. 4
      internal/dao/internal/item_income_expense_records.go
  40. 64
      internal/dao/internal/login_logout_info.go
  41. 4
      internal/dao/internal/login_out_log.go
  42. 4
      internal/dao/internal/sys_auth_rule.go
  43. 4
      internal/dao/internal/sys_config.go
  44. 4
      internal/dao/internal/sys_dept.go
  45. 4
      internal/dao/internal/sys_dict_data.go
  46. 4
      internal/dao/internal/sys_dict_type.go
  47. 4
      internal/dao/internal/sys_login_log.go
  48. 4
      internal/dao/internal/sys_oper_log.go
  49. 4
      internal/dao/internal/sys_post.go
  50. 4
      internal/dao/internal/sys_role.go
  51. 4
      internal/dao/internal/sys_role_dept.go
  52. 4
      internal/dao/internal/sys_user.go
  53. 4
      internal/dao/internal/sys_user_online.go
  54. 4
      internal/dao/internal/sys_user_post.go
  55. 4
      internal/dao/internal/web_operate_log.go
  56. 2
      internal/model/do/advertisement.go
  57. 2
      internal/model/do/casbin_rule.go
  58. 2
      internal/model/do/game_black_list.go
  59. 2
      internal/model/do/game_bug.go
  60. 2
      internal/model/do/game_bug_client.go
  61. 2
      internal/model/do/game_ccd_url.go
  62. 2
      internal/model/do/game_ccd_url_copy_1.go
  63. 2
      internal/model/do/game_ccd_version.go
  64. 2
      internal/model/do/game_cd_key.go
  65. 2
      internal/model/do/game_cd_password.go
  66. 2
      internal/model/do/game_channel_list.go
  67. 2
      internal/model/do/game_gift_exchange.go
  68. 2
      internal/model/do/game_login_url.go
  69. 2
      internal/model/do/game_mail.go
  70. 2
      internal/model/do/game_notice.go
  71. 2
      internal/model/do/game_notice_log.go
  72. 2
      internal/model/do/game_notice_model.go
  73. 2
      internal/model/do/game_online.go
  74. 2
      internal/model/do/game_recharge.go
  75. 2
      internal/model/do/game_recharge_control.go
  76. 2
      internal/model/do/game_recharge_copy_1.go
  77. 2
      internal/model/do/game_recharge_log.go
  78. 2
      internal/model/do/game_recharge_rebate.go
  79. 2
      internal/model/do/game_register.go
  80. 2
      internal/model/do/game_router.go
  81. 2
      internal/model/do/game_server_json_general.go
  82. 2
      internal/model/do/game_shop_log.go
  83. 2
      internal/model/do/game_unit.go
  84. 2
      internal/model/do/game_unit_copy_1.go
  85. 2
      internal/model/do/game_version.go
  86. 2
      internal/model/do/game_white_list.go
  87. 2
      internal/model/do/gm_operate_log.go
  88. 2
      internal/model/do/item_income_expense_records.go
  89. 34
      internal/model/do/login_logout_info.go
  90. 2
      internal/model/do/login_out_log.go
  91. 2
      internal/model/do/sys_auth_rule.go
  92. 2
      internal/model/do/sys_config.go
  93. 2
      internal/model/do/sys_dept.go
  94. 2
      internal/model/do/sys_dict_data.go
  95. 2
      internal/model/do/sys_dict_type.go
  96. 2
      internal/model/do/sys_login_log.go
  97. 2
      internal/model/do/sys_oper_log.go
  98. 2
      internal/model/do/sys_post.go
  99. 2
      internal/model/do/sys_role.go
  100. 2
      internal/model/do/sys_role_dept.go
  101. Some files were not shown because too many files have changed in this diff Show More

11
api/v1/game/cdKey.go

@ -44,11 +44,12 @@ type GetGiftExchangeListRes struct {
type UpdateGiftExchangeReq struct {
g.Meta `path:"/cdKey/updateGiftExchange" tags:"cdKey" method:"get" summary:"修改兑换表"`
Id int32 `p:"configId" v:"required#id不能为空"`
Channel string `p:"channel"`
StartTime string `p:"startTime"`
StopTime string `p:"stopTime"`
Times int32 `p:"times"`
Id int32 `p:"configId" v:"required#id不能为空"`
Channel string `p:"channel"`
StartTime string `p:"startTime"`
StopTime string `p:"stopTime"`
Times int32 `p:"times"`
Awards []Award `p:"awards"`
}
type UpdateGiftExchangeRes struct {

7
api/v1/game/manage.go

@ -46,9 +46,10 @@ type ListGmRes struct {
}
type SetGmToClientReq struct {
g.Meta `path:"/mange/setclientgm" tags:"账号" method:"get" summary:"开GM权限"`
Uids string `p:"uids"`
State int `p:"state"`
g.Meta `path:"/mange/setclientgm" tags:"账号" method:"get" summary:"开GM权限"`
ServerId int `p:"serverId"`
Uids string `p:"uids"`
State int `p:"state"`
}
type SetGmToClientRes struct {

21
api/v1/game/order.go

@ -2,6 +2,7 @@ package game
import (
"github.com/gogf/gf/v2/frame/g"
"tyj_admin/api/v1/common"
"tyj_admin/internal/model/entity"
)
@ -181,3 +182,23 @@ type ChangeOrderStateRes struct {
g.Meta `mime:"application/json"`
ResData int `json:"data"`
}
// 修改订单状态
type GetGMOrderListReq struct {
g.Meta `path:"/order/gmList" tags:"订单" method:"get" summary:"获取订单"`
Uid int32 `p:"uid"`
ServerId int32 `p:"server"`
Config int32 `p:"config"`
TradeNo string `p:"tradeNo"`
CTime string `p:"cTime"`
ETime string `p:"eTime"`
User string `p:"user"`
Channel string `p:"channel"`
common.PageReq
}
type GetGMOrderListRes struct {
g.Meta `mime:"application/json"`
List []entity.GameRechargeLog `json:"list"`
common.ListRes
}

30
api/v1/game/pub.go

@ -93,19 +93,23 @@ type GetOutIdRes struct {
}
type LoginOutReq struct {
g.Meta `path:"/loginOut" tags:"外部接口" method:"post" summary:"添加登录登出记录"`
Uid int64 `p:"uid"`
State int `p:"state"`
Day int `p:"day"`
GameTime int `p:"gameTime"`
Scale int `p:"scale"`
VillagerNum int `p:"villagerNum"`
Prosperity int `p:"prosperity"`
Copper int `p:"copper"`
GoldIngot int `p:"goldIngot"`
BaseFood int `p:"baseFood"`
Server int `p:"serverId"`
Name string `p:"valleyName"`
g.Meta `path:"/loginOut" tags:"外部接口" method:"post" summary:"添加登录登出记录"`
Uid int64 `p:"uid"`
State int `p:"state"`
Day int `p:"day"`
GameTime int `p:"gameTime"`
Scale int `p:"scale"`
VillagerNum int `p:"villagerNum"`
Prosperity int `p:"prosperity"`
Copper int `p:"copper"`
GoldIngot int `p:"goldIngot"`
BaseFood int `p:"baseFood"`
Server int `p:"serverId"`
Name string `p:"valleyName"`
VouchersNum int `p:"vouchersNum"`
RechargeTotal int `p:"rechargeTotal"`
StoreSum int `p:"storeSum"`
StoneAmount int `p:"stoneAmount"`
}
type LoginOutRes struct {

5
internal/controller/game_order.go

@ -75,3 +75,8 @@ func (c *orderController) ChangeOrderState(ctx context.Context, req *game.Change
res, err = serviceGame.GameOrder().ChangeOrderState(ctx, req)
return res, err
}
func (c *orderController) GetGMOrderList(ctx context.Context, req *game.GetGMOrderListReq) (res *game.GetGMOrderListRes, err error) {
res, err = serviceGame.GameOrder().GetGMOrderList(ctx, req)
return res, err
}

9
internal/controller/game_pub.go

@ -41,15 +41,6 @@ func (c *pubController) GetLoginUrl(ctx context.Context, req *game.GetGameLoginU
}
func (c *pubController) GetCCD(ctx context.Context, req *game.GetGameCCDReq) (res *game.GetGameCCDRes, err error) {
//req1 := new(game.GetGameNoticeReq)
//res1 := new(game.GetGameNoticeRes)
//req1.NoticeType = 3
//req1.Channel = req.ChannelType
//res1, err = serviceGame.GameNotice().GetGameNotice(ctx, req1)
//if res1.Status != 1 {
// return nil, gerror.New("ip黑名单!")
//}
var set map[string]struct{}
set = make(map[string]struct{})
set["Android"] = struct{}{}

4
internal/dao/internal/advertisement.go

@ -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
@ -116,6 +116,6 @@ func (dao *AdvertisementDao) 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 *AdvertisementDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *AdvertisementDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/casbin_rule.go

@ -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
@ -80,6 +80,6 @@ func (dao *CasbinRuleDao) 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 *CasbinRuleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *CasbinRuleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_black_list.go

@ -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
@ -70,6 +70,6 @@ func (dao *GameBlackListDao) 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 *GameBlackListDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameBlackListDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_bug.go

@ -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
@ -84,6 +84,6 @@ func (dao *GameBugDao) 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 *GameBugDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameBugDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_bug_client.go

@ -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
@ -92,6 +92,6 @@ func (dao *GameBugClientDao) 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 *GameBugClientDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameBugClientDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_ccd_url.go

@ -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
@ -86,6 +86,6 @@ func (dao *GameCcdUrlDao) 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 *GameCcdUrlDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameCcdUrlDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_ccd_url_copy_1.go

@ -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
@ -86,6 +86,6 @@ func (dao *GameCcdUrlCopy1Dao) 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 *GameCcdUrlCopy1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameCcdUrlCopy1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_ccd_version.go

@ -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
@ -70,6 +70,6 @@ func (dao *GameCcdVersionDao) 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 *GameCcdVersionDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameCcdVersionDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_cd_key.go

@ -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
@ -80,6 +80,6 @@ func (dao *GameCdKeyDao) 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 *GameCdKeyDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameCdKeyDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_cd_password.go

@ -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
@ -74,6 +74,6 @@ func (dao *GameCdPasswordDao) 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 *GameCdPasswordDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameCdPasswordDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_channel_list.go

@ -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
@ -72,6 +72,6 @@ func (dao *GameChannelListDao) 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 *GameChannelListDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameChannelListDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_gift_exchange.go

@ -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
@ -90,6 +90,6 @@ func (dao *GameGiftExchangeDao) 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 *GameGiftExchangeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameGiftExchangeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_login_url.go

@ -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
@ -108,6 +108,6 @@ func (dao *GameLoginUrlDao) 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 *GameLoginUrlDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameLoginUrlDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_mail.go

@ -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
@ -94,6 +94,6 @@ func (dao *GameMailDao) 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 *GameMailDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameMailDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_notice.go

@ -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
@ -78,6 +78,6 @@ func (dao *GameNoticeDao) 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 *GameNoticeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameNoticeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_notice_log.go

@ -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
@ -88,6 +88,6 @@ func (dao *GameNoticeLogDao) 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 *GameNoticeLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameNoticeLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_notice_model.go

@ -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
@ -76,6 +76,6 @@ func (dao *GameNoticeModelDao) 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 *GameNoticeModelDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameNoticeModelDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_online.go

@ -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
@ -76,6 +76,6 @@ func (dao *GameOnlineDao) 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 *GameOnlineDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameOnlineDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_recharge.go

@ -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
@ -102,6 +102,6 @@ func (dao *GameRechargeDao) 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 *GameRechargeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameRechargeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_recharge_control.go

@ -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
@ -70,6 +70,6 @@ func (dao *GameRechargeControlDao) 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 *GameRechargeControlDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameRechargeControlDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_recharge_copy_1.go

@ -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
@ -98,6 +98,6 @@ func (dao *GameRechargeCopy1Dao) 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 *GameRechargeCopy1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameRechargeCopy1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_recharge_log.go

@ -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
@ -86,6 +86,6 @@ func (dao *GameRechargeLogDao) 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 *GameRechargeLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameRechargeLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_recharge_rebate.go

@ -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
@ -72,6 +72,6 @@ func (dao *GameRechargeRebateDao) 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 *GameRechargeRebateDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameRechargeRebateDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_register.go

@ -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
@ -80,6 +80,6 @@ func (dao *GameRegisterDao) 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 *GameRegisterDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameRegisterDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_router.go

@ -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
@ -84,6 +84,6 @@ func (dao *GameRouterDao) 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 *GameRouterDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
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)
}

4
internal/dao/internal/game_server_json_general.go

@ -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
@ -80,6 +80,6 @@ func (dao *GameServerJsonGeneralDao) 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 *GameServerJsonGeneralDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
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)
}

4
internal/dao/internal/game_shop_log.go

@ -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
@ -80,6 +80,6 @@ func (dao *GameShopLogDao) 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 *GameShopLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameShopLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_unit.go

@ -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
@ -98,6 +98,6 @@ func (dao *GameUnitDao) 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 *GameUnitDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameUnitDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_unit_copy_1.go

@ -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
@ -96,6 +96,6 @@ func (dao *GameUnitCopy1Dao) 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 *GameUnitCopy1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameUnitCopy1Dao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_version.go

@ -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
@ -72,6 +72,6 @@ func (dao *GameVersionDao) 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 *GameVersionDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameVersionDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/game_white_list.go

@ -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
@ -70,6 +70,6 @@ func (dao *GameWhiteListDao) 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 *GameWhiteListDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GameWhiteListDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/gm_operate_log.go

@ -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
@ -88,6 +88,6 @@ func (dao *GmOperateLogDao) 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 *GmOperateLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *GmOperateLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/item_income_expense_records.go

@ -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
@ -84,6 +84,6 @@ func (dao *ItemIncomeExpenseRecordsDao) 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 *ItemIncomeExpenseRecordsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *ItemIncomeExpenseRecordsDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

64
internal/dao/internal/login_logout_info.go

@ -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)
}

4
internal/dao/internal/login_out_log.go

@ -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
@ -76,6 +76,6 @@ func (dao *LoginOutLogDao) 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 *LoginOutLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *LoginOutLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_auth_rule.go

@ -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
@ -110,6 +110,6 @@ func (dao *SysAuthRuleDao) 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 *SysAuthRuleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysAuthRuleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_config.go

@ -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
@ -86,6 +86,6 @@ func (dao *SysConfigDao) 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 *SysConfigDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysConfigDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_dept.go

@ -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
@ -94,6 +94,6 @@ func (dao *SysDeptDao) 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 *SysDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_dict_data.go

@ -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
@ -94,6 +94,6 @@ func (dao *SysDictDataDao) 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 *SysDictDataDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysDictDataDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_dict_type.go

@ -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
@ -84,6 +84,6 @@ func (dao *SysDictTypeDao) 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 *SysDictTypeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysDictTypeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_login_log.go

@ -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
@ -86,6 +86,6 @@ func (dao *SysLoginLogDao) 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 *SysLoginLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysLoginLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_oper_log.go

@ -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
@ -98,6 +98,6 @@ func (dao *SysOperLogDao) 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 *SysOperLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysOperLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_post.go

@ -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
@ -88,6 +88,6 @@ func (dao *SysPostDao) 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 *SysPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_role.go

@ -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
@ -82,6 +82,6 @@ func (dao *SysRoleDao) 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 *SysRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysRoleDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_role_dept.go

@ -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
@ -70,6 +70,6 @@ func (dao *SysRoleDeptDao) 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 *SysRoleDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysRoleDeptDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_user.go

@ -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
@ -108,6 +108,6 @@ func (dao *SysUserDao) 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 *SysUserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysUserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_user_online.go

@ -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
@ -82,6 +82,6 @@ func (dao *SysUserOnlineDao) 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 *SysUserOnlineDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysUserOnlineDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/sys_user_post.go

@ -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
@ -70,6 +70,6 @@ func (dao *SysUserPostDao) 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 *SysUserPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *SysUserPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

4
internal/dao/internal/web_operate_log.go

@ -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
@ -82,6 +82,6 @@ func (dao *WebOperateLogDao) 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 *WebOperateLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx *gdb.TX) error) (err error) {
func (dao *WebOperateLogDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

2
internal/model/do/advertisement.go

@ -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 do

2
internal/model/do/casbin_rule.go

@ -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 do

2
internal/model/do/game_black_list.go

@ -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 do

2
internal/model/do/game_bug.go

@ -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 do

2
internal/model/do/game_bug_client.go

@ -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 do

2
internal/model/do/game_ccd_url.go

@ -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 do

2
internal/model/do/game_ccd_url_copy_1.go

@ -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 do

2
internal/model/do/game_ccd_version.go

@ -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 do

2
internal/model/do/game_cd_key.go

@ -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 do

2
internal/model/do/game_cd_password.go

@ -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 do

2
internal/model/do/game_channel_list.go

@ -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 do

2
internal/model/do/game_gift_exchange.go

@ -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 do

2
internal/model/do/game_login_url.go

@ -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 do

2
internal/model/do/game_mail.go

@ -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 do

2
internal/model/do/game_notice.go

@ -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 do

2
internal/model/do/game_notice_log.go

@ -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 do

2
internal/model/do/game_notice_model.go

@ -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 do

2
internal/model/do/game_online.go

@ -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 do

2
internal/model/do/game_recharge.go

@ -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 do

2
internal/model/do/game_recharge_control.go

@ -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 do

2
internal/model/do/game_recharge_copy_1.go

@ -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 do

2
internal/model/do/game_recharge_log.go

@ -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 do

2
internal/model/do/game_recharge_rebate.go

@ -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 do

2
internal/model/do/game_register.go

@ -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 do

2
internal/model/do/game_router.go

@ -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 do

2
internal/model/do/game_server_json_general.go

@ -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 do

2
internal/model/do/game_shop_log.go

@ -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 do

2
internal/model/do/game_unit.go

@ -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 do

2
internal/model/do/game_unit_copy_1.go

@ -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 do

2
internal/model/do/game_version.go

@ -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 do

2
internal/model/do/game_white_list.go

@ -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 do

2
internal/model/do/gm_operate_log.go

@ -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 do

2
internal/model/do/item_income_expense_records.go

@ -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 do

34
internal/model/do/login_logout_info.go

@ -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 do
@ -11,18 +11,22 @@ import (
// LoginLogoutInfo is the golang structure of table login_logout_info for DAO operations like Where/Data.
type LoginLogoutInfo struct {
g.Meta `orm:"table:login_logout_info, 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{} // 区服
g.Meta `orm:"table:login_logout_info, 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{} //
}

2
internal/model/do/login_out_log.go

@ -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 do

2
internal/model/do/sys_auth_rule.go

@ -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 do

2
internal/model/do/sys_config.go

@ -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 do

2
internal/model/do/sys_dept.go

@ -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 do

2
internal/model/do/sys_dict_data.go

@ -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 do

2
internal/model/do/sys_dict_type.go

@ -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 do

2
internal/model/do/sys_login_log.go

@ -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 do

2
internal/model/do/sys_oper_log.go

@ -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 do

2
internal/model/do/sys_post.go

@ -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 do

2
internal/model/do/sys_role.go

@ -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 do

2
internal/model/do/sys_role_dept.go

@ -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 do

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save