活动模块,计划任务模块 加入第三方

This commit is contained in:
ayflying
2025-02-28 12:12:03 +08:00
parent 6d2b68a202
commit e9540d0971
103 changed files with 4258 additions and 74 deletions

53
internal/game/act/act.go Normal file
View File

@@ -0,0 +1,53 @@
package act
import (
"fmt"
"github.com/ayflying/utility_go/aycache"
"github.com/ayflying/utility_go/service2"
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/os/gctx"
"github.com/gogf/gf/v2/os/gtime"
"time"
)
var (
Cache = aycache.New()
ActIdListIsShow map[int]func(uid int64) bool
RedDotList map[string]func(uid int64) int32
)
func GetCacheKey(uid int64, actId int) string {
return fmt.Sprintf("actRedDot:%s:%d:%d", gtime.Now().Format("Ymd"), actId, uid)
}
// 刷新缓存
func RefreshCache(uid int64, actId int) {
Cache.Remove(gctx.New(), GetCacheKey(uid, actId))
service2.GameAct().RefreshGetRedDotCache(uid)
}
func GetRedDot(uid int64, actId int) *gvar.Var {
get, _ := Cache.Get(nil, GetCacheKey(uid, actId))
return get
}
func SetRedDot(uid int64, actId int, redDot int32) {
Cache.Set(nil, GetCacheKey(uid, actId), redDot, time.Hour)
}
// 注册隐藏活动接口
func AddIsShowRegistrar(actId int, isShow func(uid int64) bool) {
if ActIdListIsShow == nil {
ActIdListIsShow = make(map[int]func(uid int64) bool)
}
ActIdListIsShow[actId] = isShow
}
// 注册红点接口
func AddRedDotRegistrar(key string, redDot func(uid int64) int32) {
if RedDotList == nil {
RedDotList = make(map[string]func(uid int64) int32)
}
RedDotList[key] = redDot
}

View File

@@ -0,0 +1,266 @@
package gameAct
import (
"fmt"
"github.com/ayflying/utility_go/aycache"
"github.com/ayflying/utility_go/internal/game/act"
"github.com/ayflying/utility_go/internal/model/do"
"github.com/ayflying/utility_go/internal/model/entity"
"github.com/ayflying/utility_go/service2"
"github.com/ayflying/utility_go/tools"
"github.com/gogf/gf/v2/container/gset"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gctx"
"github.com/gogf/gf/v2/os/gtime"
"strconv"
"strings"
"time"
)
var (
ctx = gctx.New()
Name = "game_act"
ActList = gset.New(true)
)
type sGameAct struct {
}
func new() *sGameAct {
return &sGameAct{}
}
func init() {
service2.RegisterGameAct(new())
}
// Info 获取活动信息
//
// @Description: 根据用户ID和活动ID获取活动信息
// @receiver s *sGameAct: 代表活动操作的结构体实例
// @param uid int64: 用户ID
// @param actId int: 活动ID
// @return data *v1.Act: 返回活动信息结构体指针
// @return err error: 返回错误信息
func (s *sGameAct) Info(uid int64, actId int) (data *g.Var, err error) {
if uid == 0 || actId == 0 {
g.Log().Error(ctx, "当前参数为空")
return
}
// 构造缓存键名
keyCache := fmt.Sprintf("act:%v:%v", actId, uid)
// 尝试从Redis缓存中获取活动信息
get, err := g.Redis().Get(ctx, keyCache)
if !get.IsEmpty() {
// 如果缓存中存在将数据扫描到data结构体中并返回
data = get
return
}
// 从数据库中查询活动信息
getDb, err := g.Model(Name).Where(do.GameAct{
Uid: uid,
ActId: actId,
}).Fields("action").OrderDesc("updated_at").Value()
getDb.Scan(&data)
if data == nil || data.IsEmpty() {
return
}
// 将查询到的活动信息保存到Redis缓存中
_, err = g.Redis().Set(ctx, keyCache, data)
var ActUidUpdateTimeCacheKey = fmt.Sprintf("act:update:%d", uid)
aycache.New("redis").Set(ctx, ActUidUpdateTimeCacheKey, uid, time.Hour*24*3)
return
}
// Set 将指定用户的活动信息存储到Redis缓存中。
//
// @Description:
// @receiver s *sGameAct: 表示sGameAct类型的实例。
// @param uid int64: 用户的唯一标识。
// @param actId int: 活动的唯一标识。
// @param data interface{}: 要存储的活动信息数据。
// @return err error: 返回错误信息如果操作成功则返回nil。
func (s *sGameAct) Set(uid int64, actId int, data interface{}) (err error) {
if uid == 0 || actId == 0 {
g.Log().Error(ctx, "当前参数为空")
return
}
// 构造缓存键名
keyCache := fmt.Sprintf("act:%v:%v", actId, uid)
if data == nil {
_, err = g.Redis().Del(ctx, keyCache)
return
}
// 将活动信息保存到Redis缓存并将用户ID添加到活动索引集合中
_, err = g.Redis().Set(ctx, keyCache, data)
//插入集合
ActList.Add(actId)
return
}
func (s *sGameAct) Saves() (err error) {
//遍历执行
ActList.Iterator(func(i interface{}) bool {
err = s.Save(i.(int))
return true
})
return
}
func (s *sGameAct) Save(actId int) (err error) {
cacheKey := fmt.Sprintf("act:%v:*", actId)
//获取当前用户的key值
//keys, err := utils.RedisScan(cacheKey)
//if len(keys) > 10000 {
// keys = keys[:10000]
//}
//循环获取缓存数据
err = tools.Redis.RedisScanV2(cacheKey, func(keys []string) (err error) {
var add []interface{}
var delKey []string
for _, cacheKey = range keys {
result := strings.Split(cacheKey, ":")
actId, err = strconv.Atoi(result[1])
var uid int64
uid, err = strconv.ParseInt(result[2], 10, 64)
if err != nil {
continue
}
cacheGet, _ := g.Redis().Get(ctx, cacheKey)
//最后删除key
delKey = append(delKey, cacheKey)
if uid == 0 {
//跳过为空的用户缓存
continue
}
if cacheGet.IsEmpty() {
//空数据也不巴保存
continue
}
var ActUidUpdateTimeCacheKey = fmt.Sprintf("act:update:%d", uid)
//如果有活跃,跳过持久化
if getBool, _ := aycache.New("redis").Contains(ctx, ActUidUpdateTimeCacheKey); getBool {
continue
}
////如果1天没有活跃跳过
//user, _ := service.MemberUser().Info(uid)
//if user.UpdatedAt.Seconds < gtime.Now().Add(consts.ActSaveTime).Unix() {
// continue
//}
//获取数据库数据
var data *entity.GameAct
// 从数据库中查询活动信息
err = g.Model(Name).Where(do.GameAct{
Uid: uid,
ActId: actId,
}).Fields("uid,act_id").Scan(&data)
if err != nil {
g.Log().Debugf(ctx, "当前数据错误: %v", cacheKey)
continue
}
actionData := cacheGet.String()
if data == nil {
//data =
add = append(add, &do.GameAct{
ActId: actId,
Uid: uid,
Action: actionData,
})
} else {
//覆盖数据
data.Action = actionData
add = append(add, data)
}
}
//批量写入数据库
if len(add) > 0 {
dbRes, err2 := g.Model(Name).Batch(30).Data(add).Save()
add = make([]interface{}, 0)
if err2 != nil {
g.Log().Error(ctx, err2)
return
}
for _, v := range delKey {
_, err2 = g.Redis().Del(ctx, v)
if err2 != nil {
g.Log().Error(ctx, err2)
return
}
}
delKey = make([]string, 0)
count, _ := dbRes.RowsAffected()
g.Log().Debugf(ctx, "当前 %v 写入数据库: %v 条", actId, count)
}
if err != nil {
g.Log().Error(ctx, "当前临时数据入库失败: %v", err)
}
return err
})
return
}
// 清空GetRedDot缓存
func (s *sGameAct) RefreshGetRedDotCache(uid int64) {
//cacheKey2 := fmt.Sprintf("gameAct:GetRedDot:%d", uid)
cacheKey := fmt.Sprintf("gameAct:GetRedDot:%s:%d", gtime.Now().Format("Ymd"), uid)
act.Cache.Remove(gctx.New(), cacheKey)
}
//
//func (s *sGameAct) GetRedDot(uid int64) (res map[string]int32, err error) {
// cacheKey := fmt.Sprintf("gameAct:GetRedDot:%s:%d", gtime.Now().Format("Ymd"), uid)
// if get, _ := act.Cache.Get(ctx, cacheKey); !get.IsEmpty() {
// err = get.Scan(&res)
// return
// }
//
// res = make(map[string]int32)
//
// //res["notice_count"] = 0
// //获取所有帖子红点
// for _, v := range communityNotice.Types {
// res[fmt.Sprintf("notice_%d", v)], err = service.CommunityNotice().Ping(uid, noticeV1.NoticeType(v))
// }
//
// //邮件红点
// res["mail_count"], err = service.GameMail().RedDot(uid)
//
// //act1可领取数量
// res["act1_count"], err = act1.New().RedDot(uid)
//
// //act2可领取数量
// res["act2_count"], err = act2.New().RedDot(uid)
//
// //成就红点
// res["act4_count"], err = act4.New().RedDot(uid)
//
// //广告点击
// res["act6_count"], err = act6.New().RedDot(uid)
//
// for k, v := range act.RedDotList {
// res[k] = v(uid)
// }
//
// aycache.New().Set(ctx, cacheKey, res, time.Hour)
// return
//}

10
internal/logic/logic.go Normal file
View File

@@ -0,0 +1,10 @@
// ==========================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package logic
import (
_ "github.com/ayflying/utility_go/internal/logic/gameAct"
_ "github.com/ayflying/utility_go/internal/logic/systemCron"
)

View File

@@ -0,0 +1,71 @@
package systemCron
import (
"encoding/json"
"fmt"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/gclient"
"github.com/gogf/gf/v2/os/gtime"
)
type Status struct {
Code int `json:"code"`
Message string `json:"message"`
Data struct {
Status int `json:"status"`
} `json:"data"`
}
func (s *sSystemCron) Guardian(DingTalkWebHook string) {
var list []struct {
Name string
Address string
}
cfg, _ := g.Cfg().Get(ctx, "serverList")
cfg.Scan(&list)
for _, v := range list {
get, err := g.Client().Discovery(nil).Get(ctx, v.Address+"/callback/status")
defer get.Close()
if err != nil {
s.DingTalk(DingTalkWebHook, fmt.Sprintf("监控报警:服务端访问失败 (%v 服务器),err=%v", v.Name, err))
} else if get.StatusCode != 200 {
s.DingTalk(DingTalkWebHook, fmt.Sprintf("监控报警:服务端访问失败 (%v 服务器),code=%v,err=%v", v.Name, get.StatusCode, err))
} else {
var ststus Status
err = json.Unmarshal(get.ReadAll(), &ststus)
if ststus.Code != 0 {
s.DingTalk(DingTalkWebHook, fmt.Sprintf("监控报警:服务端访问失败 (%v 服务器),msg=%v", v.Name, ststus.Message))
}
}
}
}
// DingTalk 发送钉钉消息
//
// @Description: 向指定的钉钉机器人发送消息。
// @receiver s: 系统定时任务结构体指针。
// @param value: 要发送的消息内容。
func (s *sSystemCron) DingTalk(DingTalkWebHook string, value string) (res *gclient.Response) {
// 从配置中获取发送者名称
name, _ := g.Cfg().Get(ctx, "name")
// 定义钉钉机器人发送消息的URL其中access_token为固定值
url := DingTalkWebHook
url += "&timestamp=" + gtime.Now().TimestampMilliStr()
// 使用goroutine异步发送消息
var post = g.Map{
"msgtype": "text",
"text": g.Map{
"content": "通知姬 " + name.String() + "\n" + value + "\n" + gtime.Now().String(),
},
}
// 构建发送的消息体,包含消息类型和内容
res, err := g.Client().Discovery(nil).ContentJson().Post(ctx, url, post)
if err != nil {
g.Log().Info(ctx, err)
}
return
}

View File

@@ -0,0 +1,5 @@
package systemCron
func (s *sSystemCron) ReadLog() {
}

View File

@@ -0,0 +1,305 @@
package systemCron
import (
"context"
"github.com/ayflying/utility_go/api/system/v1"
"github.com/ayflying/utility_go/service2"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gcron"
"github.com/gogf/gf/v2/os/gctx"
"github.com/gogf/gf/v2/os/gtimer"
"sync"
"time"
)
var (
ctx = gctx.New()
)
// sSystemCron 结构体定义了系统定时任务的秒计时器。
// 它包含了不同时间周期的任务,如秒、分钟、小时、天、周、月、年以及特定的工作日任务。
type sSystemCron struct {
//互斥锁
Lock sync.Mutex
// 每秒执行的任务
SecondlyTask []func() error
// 每分钟执行的任务
MinutelyTask []func() error
// 每小时执行的任务
HourlyTask []func() error
// 每天执行的任务
DailyTask []func() error
// 每周执行的任务
WeeklyTask []func() error
// 每月执行的任务
MonthlyTask []func() error
// 每年执行的任务
YearlyTask []func() error
// 每周一执行的任务
MondayTask []func() error
// 每周二执行的任务
TuesdayTask []func() error
// 每周三执行的任务
WednesdayTask []func() error
// 每周四执行的任务
ThursdayTask []func() error
// 每周五执行的任务
FridayTask []func() error
// 每周六执行的任务
SaturdayTask []func() error
// 每周日执行的任务
SundayTask []func() error
}
func New() *sSystemCron {
return &sSystemCron{}
}
func init() {
service2.RegisterSystemCron(New())
}
// AddCron 添加一个定时任务到相应的调度列表中。
//
// @Description: 根据指定的类型将函数添加到不同的任务列表中,以供后续执行。
// @receiver s: sSystemCron的实例代表一个调度系统。
// @param typ: 任务的类型,决定该任务将被添加到哪个列表中。对应不同的时间间隔。
// @param _func: 要添加的任务函数该函数执行时应该返回一个error。
func (s *sSystemCron) AddCron(typ v1.CronType, _func func() error) {
//加锁
s.Lock.Lock()
defer s.Lock.Unlock()
switch typ {
case v1.CronType_SECOND:
s.SecondlyTask = append(s.SecondlyTask, _func) // 将函数添加到每秒执行的任务列表中
case v1.CronType_MINUTE:
s.MinutelyTask = append(s.MinutelyTask, _func) // 将函数添加到每分钟执行的任务列表中
case v1.CronType_HOUR:
s.HourlyTask = append(s.HourlyTask, _func) // 将函数添加到每小时执行的任务列表中
case v1.CronType_DAILY:
s.DailyTask = append(s.DailyTask, _func) // 将函数添加到每日执行的任务列表中
case v1.CronType_WEEK:
s.WeeklyTask = append(s.WeeklyTask, _func) // 将函数添加到每周执行的任务列表中
case v1.CronType_MONTH:
s.MonthlyTask = append(s.MonthlyTask, _func) // 将函数添加到每月执行的任务列表中
case v1.CronType_YEAR:
s.YearlyTask = append(s.YearlyTask, _func) // 将函数添加到每年执行的任务列表中
case v1.CronType_MONDAY:
s.MondayTask = append(s.MondayTask, _func) // 将函数添加到每周一执行的任务列表中
case v1.CronType_TUESDAY:
s.TuesdayTask = append(s.TuesdayTask, _func) // 将函数添加到每周二的任务列表中
case v1.CronType_WEDNESDAY:
s.WednesdayTask = append(s.WednesdayTask, _func) // 将函数添加到每周三执行的任务列表中
case v1.CronType_THURSDAY:
s.ThursdayTask = append(s.ThursdayTask, _func) // 将函数添加到每周四执行的任务列表中
case v1.CronType_FRIDAY:
s.FridayTask = append(s.FridayTask, _func) // 将函数添加到每周五执行的任务列表中
case v1.CronType_SATURDAY:
s.SaturdayTask = append(s.SaturdayTask, _func) // 将函数添加到每周六执行的任务列表中
case v1.CronType_SUNDAY:
s.SundayTask = append(s.SundayTask, _func) // 将函数添加到每周日的任务列表中
}
}
// StartCron 开始计划任务执行
//
// @Description:
// @receiver s
// @return err
func (s *sSystemCron) StartCron() (err error) {
g.Log().Debug(ctx, "启动计划任务定时器详情")
//每秒任务
gtimer.SetInterval(ctx, time.Second, func(ctx context.Context) {
//g.Log().Debug(ctx, "每秒定时器")
err = s.secondlyTask()
})
//每分钟任务
_, err = gcron.AddSingleton(ctx, "0 * * * * *", func(ctx context.Context) {
//g.Log().Debug(ctx, "每分钟定时器")
err = s.minutelyTask()
})
//每小时任务
_, err = gcron.AddSingleton(ctx, "0 0 * * * *", func(ctx context.Context) {
g.Log().Debug(ctx, "每小时定时器")
err = s.hourlyTask()
})
//每天任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * *", func(ctx context.Context) {
g.Log().Debug(ctx, "每日定时器")
err = s.dailyTask()
})
//每周任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * 1", func(ctx context.Context) {
g.Log().Debug(ctx, "每周一定时器")
err = s.weeklyTask(1)
})
//每周二任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * 2", func(ctx context.Context) {
g.Log().Debug(ctx, "每周二定时器")
err = s.weeklyTask(2)
})
//周三任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * 3", func(ctx context.Context) {
g.Log().Debug(ctx, "周三定时器")
err = s.weeklyTask(3)
})
//周四任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * 4", func(ctx context.Context) {
g.Log().Debug(ctx, "周四定时器")
err = s.weeklyTask(4)
})
//周五任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * 5", func(ctx context.Context) {
g.Log().Debug(ctx, "周五定时器")
err = s.fridayTask()
})
//周六任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * 6", func(ctx context.Context) {
g.Log().Debug(ctx, "周六定时器")
err = s.weeklyTask(6)
})
//周日任务
_, err = gcron.AddSingleton(ctx, "0 0 0 * * 0", func(ctx context.Context) {
g.Log().Debug(ctx, "周日定时器")
err = s.weeklyTask(7)
})
//每月任务
_, err = gcron.AddSingleton(ctx, "0 0 0 1 * *", func(ctx context.Context) {
g.Log().Debug(ctx, "每月定时器")
err = s.monthlyTask()
})
_, err = gcron.AddSingleton(ctx, "0 0 0 1 1 *", func(ctx context.Context) {
g.Log().Debug(ctx, "每年定时器")
err = s.monthlyTask()
})
return
}
// 每妙任务
func (s *sSystemCron) secondlyTask() (err error) {
if len(s.SecondlyTask) == 0 {
return
}
for _, _func := range s.SecondlyTask {
err = _func()
if err != nil {
g.Log().Error(ctx, err)
}
}
return
}
// 每分钟任务
func (s *sSystemCron) minutelyTask() (err error) {
if len(s.MinutelyTask) == 0 {
return
}
for _, _func := range s.MinutelyTask {
err = _func()
if err != nil {
g.Log().Error(ctx, err)
}
}
return
}
// 每小时任务
func (s *sSystemCron) hourlyTask() (err error) {
if len(s.HourlyTask) == 0 {
return
}
for _, _func := range s.HourlyTask {
err = _func()
if err != nil {
g.Log().Error(ctx, err)
}
}
return
}
// 每天任务
func (s *sSystemCron) dailyTask() (err error) {
if len(s.DailyTask) == 0 {
return
}
for _, _func := range s.DailyTask {
err = _func()
if err != nil {
g.Log().Error(ctx, err)
}
}
return
}
// 每周任务
func (s *sSystemCron) weeklyTask(day int) (err error) {
var arr []func() error
switch day {
case 1:
arr = s.MondayTask
case 2:
arr = s.TuesdayTask
case 3:
arr = s.WednesdayTask
case 4:
arr = s.ThursdayTask
case 5:
arr = s.FridayTask
case 6:
arr = s.SaturdayTask
case 7:
arr = s.SundayTask
default:
arr = s.WeeklyTask
return
}
if len(arr) == 0 {
return
}
for _, _func := range arr {
err = _func()
if err != nil {
g.Log().Error(ctx, err)
}
}
return
}
// 周五任务
func (s *sSystemCron) fridayTask() (err error) {
if len(s.FridayTask) == 0 {
return
}
for _, _func := range s.FridayTask {
err = _func()
if err != nil {
g.Log().Error(ctx, err)
}
}
return
}
// 每月任务
func (s *sSystemCron) monthlyTask() (err error) {
if len(s.MonthlyTask) == 0 {
return
}
for _, _func := range s.MonthlyTask {
err = _func()
if err != nil {
g.Log().Error(ctx, err)
}
}
return
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityFans is the golang structure of table shiningu_community_fans for DAO operations like Where/Data.
type CommunityFans struct {
g.Meta `orm:"table:shiningu_community_fans, do:true"`
Uid interface{} // 用户编号
Fans interface{} // 粉丝编号
CreatedAt *gtime.Time // 关注时间
}

View File

@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityFeeds is the golang structure of table shiningu_community_feeds for DAO operations like Where/Data.
type CommunityFeeds struct {
g.Meta `orm:"table:shiningu_community_feeds, do:true"`
Id interface{} // 流水
Uid interface{} //
PostId interface{} // 帖子编号
CreatedAt *gtime.Time // 创建时间
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityGift is the golang structure of table shiningu_community_gift for DAO operations like Where/Data.
type CommunityGift struct {
g.Meta `orm:"table:shiningu_community_gift, do:true"`
Id interface{} //
Uid interface{} // 收礼玩家编号
FromUid interface{} // 送礼玩家编号
Type interface{} // 送礼类型
Pid interface{} // 帖子编号
ItemId interface{} // 礼物编号
Count interface{} // 礼物数量
CreatedAt *gtime.Time // 创建时间
}

View File

@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// CommunityMenu is the golang structure of table shiningu_community_menu for DAO operations like Where/Data.
type CommunityMenu struct {
g.Meta `orm:"table:shiningu_community_menu, do:true"`
Id interface{} //
Name interface{} // 栏目名称
}

View File

@@ -0,0 +1,25 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityNotice is the golang structure of table shiningu_community_notice for DAO operations like Where/Data.
type CommunityNotice struct {
g.Meta `orm:"table:shiningu_community_notice, do:true"`
Id interface{} //
Uid interface{} // 用户编号
FromUid interface{} // 对方用户编号
Type interface{} // 类型
Sid interface{} // 来源编号
Content interface{} // 正文
Extend interface{} // 附加属性
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
Status interface{} // 通知状态
}

View File

@@ -0,0 +1,38 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPosts is the golang structure of table shiningu_community_posts for DAO operations like Where/Data.
type CommunityPosts struct {
g.Meta `orm:"table:shiningu_community_posts, do:true"`
Id interface{} // 帖子编号
Tid interface{} // 帖子栏目
Uid interface{} // 发布者
Click interface{} // 点击数
LikeCount interface{} // 点赞数量
CollectCount interface{} // 收藏数量
Popularity interface{} // 人气度热度
Charm interface{} // 魅力值
Language interface{} // 语言
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
Topic1 interface{} // 话题1
Topic2 interface{} // 话题2
Status interface{} // 帖子状态 -1限流 0 正常
Recommend interface{} // 小编推荐
Extend interface{} // 附加信息
At interface{} // 用户的at功能
Period interface{} // 最新期数
Price interface{} // 当前价格
Index interface{} // 索引编号
Gesture interface{} // 手势
CharacterNum interface{} // 角色数量
}

View File

@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// CommunityPosts0 is the golang structure of table shiningu_community_posts_0 for DAO operations like Where/Data.
type CommunityPosts0 struct {
g.Meta `orm:"table:shiningu_community_posts_0, do:true"`
Id interface{} // 帖子编号
Title interface{} // 标题
Content interface{} // 帖子正文
Images interface{} // 帖子图片批量
Image interface{} // 图片
ImagesRatio interface{} // 图片长宽比
Like interface{} // 点赞
Collect interface{} // 收藏
Extend interface{} // 附加信息
At interface{} // at
Data interface{} // 内容属性
UseIds interface{} // 最新期数
Share interface{} // 分享帖子
AiScore interface{} //
}

View File

@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// CommunityPosts1 is the golang structure of table shiningu_community_posts_1 for DAO operations like Where/Data.
type CommunityPosts1 struct {
g.Meta `orm:"table:shiningu_community_posts_1, do:true"`
Id interface{} // 帖子编号
Title interface{} // 标题
Content interface{} // 帖子正文
Images interface{} // 帖子图片批量
Image interface{} // 图片
ImagesRatio interface{} // 图片长宽比
Like interface{} // 点赞
Collect interface{} // 收藏
Extend interface{} // 附加信息
At interface{} // at
Data interface{} // 内容属性
UseIds interface{} // 最新期数
Share interface{} // 分享帖子
AiScore interface{} //
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// CommunityPostsDetails is the golang structure of table shiningu_community_posts_details for DAO operations like Where/Data.
type CommunityPostsDetails struct {
g.Meta `orm:"table:shiningu_community_posts_details, do:true"`
Id interface{} //
Attachment interface{} // 帖子附件
SlotsImg interface{} // 槽位图片
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPostsHotDel is the golang structure of table shiningu_community_posts_hot_del for DAO operations like Where/Data.
type CommunityPostsHotDel struct {
g.Meta `orm:"table:shiningu_community_posts_hot_del, do:true"`
Id interface{} // 帖子编号
CreatedAt *gtime.Time // 创建时间
}

View File

@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPostsRecommend is the golang structure of table shiningu_community_posts_recommend for DAO operations like Where/Data.
type CommunityPostsRecommend struct {
g.Meta `orm:"table:shiningu_community_posts_recommend, do:true"`
Pid interface{} // 帖子编号
Type interface{} // 推荐类型
CreatedAt *gtime.Time // 创建时间
EndTime *gtime.Time // 结束时间
}

View File

@@ -0,0 +1,28 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPostsReply is the golang structure of table shiningu_community_posts_reply for DAO operations like Where/Data.
type CommunityPostsReply struct {
g.Meta `orm:"table:shiningu_community_posts_reply, do:true"`
Id interface{} // 唯一id
Pid interface{} // 主贴id
Uid interface{} //
Uid2 interface{} // 被回复者的uid
Content interface{} // 正文
Extend interface{} // 附加数据
TopId interface{} // 上级id
CreatedAt *gtime.Time // 创建时间
Sort interface{} // 跟帖顺序
AiScore interface{} // 机器评分
Status interface{} // 状态
At interface{} // 用户的at功能
Like interface{} // 回复点赞
}

View File

@@ -0,0 +1,22 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// CommunityUser is the golang structure of table shiningu_community_user for DAO operations like Where/Data.
type CommunityUser struct {
g.Meta `orm:"table:shiningu_community_user, do:true"`
Uid interface{} //
Like interface{} // 点赞
Like2 interface{} // 帖子回复点赞
Collect interface{} // 收藏
FollowNum interface{} // 关注数量
FansNum interface{} // 粉丝数量
Gift interface{} // 礼物值
Blacklist interface{} // 黑名单
}

View File

@@ -0,0 +1,25 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ConfigAct is the golang structure of table shiningu_config_act for DAO operations like Where/Data.
type ConfigAct struct {
g.Meta `orm:"table:shiningu_config_act, do:true"`
Id interface{} // 流水编号
Type interface{} // 活动类型
Actid interface{} // 活动编号
Name interface{} // 活动名称
Hid interface{} // 活动标识
Data interface{} // 活动数据
StartTime *gtime.Time // 开始时间
EndTime *gtime.Time // 结束时间
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,32 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ConfigModalBox is the golang structure of table shiningu_config_modal_box for DAO operations like Where/Data.
type ConfigModalBox struct {
g.Meta `orm:"table:shiningu_config_modal_box, do:true"`
Id interface{} // 主键
ModalBoxId interface{} // 弹框id
UserType interface{} // 特定用户
Tips interface{} // 弹框tips选项
Name interface{} // 名称
Title interface{} // 标题
Content interface{} // 正文
Type interface{} // 类型
Style interface{} // 样式
Weight interface{} // 权重
Attachments interface{} // 附件
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
Status interface{} // 状态 1开始 0关闭
Notes interface{} // 备注
StartTime *gtime.Time // 开始时间
EndTime *gtime.Time // 结束时间
}

View File

@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// GameAct is the golang structure of table shiningu_game_act for DAO operations like Where/Data.
type GameAct struct {
g.Meta `orm:"table:shiningu_game_act, do:true"`
Uid interface{} // 玩家编号
ActId interface{} // 活动编号
Action interface{} // 活动配置
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// GameBag is the golang structure of table shiningu_game_bag for DAO operations like Where/Data.
type GameBag struct {
g.Meta `orm:"table:shiningu_game_bag, do:true"`
Uid interface{} // 用户标识
List interface{} // 道具数据
Book interface{} // 图鉴
Hand interface{} // 手势
}

View File

@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// GameConfig is the golang structure of table shiningu_game_config for DAO operations like Where/Data.
type GameConfig struct {
g.Meta `orm:"table:shiningu_game_config, do:true"`
Name interface{} // 配置名称
Data interface{} // 配置内容
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// GameKv is the golang structure of table shiningu_game_kv for DAO operations like Where/Data.
type GameKv struct {
g.Meta `orm:"table:shiningu_game_kv, do:true"`
Uid interface{} // 用户
Kv interface{} // 变量
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,27 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// GameMail is the golang structure of table shiningu_game_mail for DAO operations like Where/Data.
type GameMail struct {
g.Meta `orm:"table:shiningu_game_mail, do:true"`
Id interface{} // 流水
Uid interface{} // 用户标识
Type interface{} // 类型
Title interface{} // 标题
Content interface{} // 正文
Items interface{} // 奖励道具
HaveItems interface{} // 是否有附件
CreatedAt *gtime.Time // 创建时间
Sign interface{} // 署名
EndTime *gtime.Time // 结束时间
Extend interface{} // 附加参数
Status interface{} // 状态
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// GameMailMass is the golang structure of table shiningu_game_mail_mass for DAO operations like Where/Data.
type GameMailMass struct {
g.Meta `orm:"table:shiningu_game_mail_mass, do:true"`
Id interface{} // 主键
Title interface{} // 标题
Type interface{} // 类型
Content interface{} // 正文
CreatedAt *gtime.Time // 创建时间
Items interface{} // 奖励
Sign interface{} // 署名
EndTime *gtime.Time // 结束时间
}

View File

@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// GameMailUser is the golang structure of table shiningu_game_mail_user for DAO operations like Where/Data.
type GameMailUser struct {
g.Meta `orm:"table:shiningu_game_mail_user, do:true"`
Uid interface{} //
Mass interface{} // 群发邮件领取列表
}

View File

@@ -0,0 +1,29 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// GamePay is the golang structure of table shiningu_game_pay for DAO operations like Where/Data.
type GamePay struct {
g.Meta `orm:"table:shiningu_game_pay, do:true"`
OrderId interface{} // 订单编号
Uid interface{} //
TerraceOrderId interface{} // 平台订单id
Device interface{} // 设备名称
Channel interface{} // 支付渠道
ShopId interface{} // 商品id
Cent interface{} // 美分(不要使用小数点)
PackageName interface{} // 包名
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
PayTime *gtime.Time // 支付时间
Status interface{} // 状态
Token interface{} // 支付标识
Ip interface{} // ip地址
}

View File

@@ -0,0 +1,25 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// GameRank is the golang structure of table shiningu_game_rank for DAO operations like Where/Data.
type GameRank struct {
g.Meta `orm:"table:shiningu_game_rank, do:true"`
Key interface{} //
RankId interface{} // 排行榜编号
Type interface{} // 排行榜类型
Data interface{} // 数据
CreatedAt *gtime.Time // 排行榜创建时间
StartTime *gtime.Time // 榜单开始时间
EndTime *gtime.Time // 榜单结束时间
Status interface{} //
Image interface{} // 结算封面
FirstUid interface{} // 第一名的用户id
}

View File

@@ -0,0 +1,20 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// GameStage is the golang structure of table shiningu_game_stage for DAO operations like Where/Data.
type GameStage struct {
g.Meta `orm:"table:shiningu_game_stage, do:true"`
Uid interface{} // 用户标识
Chapter interface{} // 章节
WinData interface{} // 通关过的数据
StageData interface{} // 关卡数据
Star interface{} // 章节获得的总星
RwdData interface{} // 通关奖励领取
}

View File

@@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// MemberAuthorize is the golang structure of table shiningu_member_authorize for DAO operations like Where/Data.
type MemberAuthorize struct {
g.Meta `orm:"table:shiningu_member_authorize, do:true"`
Code interface{} // 授权码
Uid interface{} // 用户标识
Type interface{} // 认证方式
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
CreateIp interface{} // 创建ip
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// MemberBan is the golang structure of table shiningu_member_ban for DAO operations like Where/Data.
type MemberBan struct {
g.Meta `orm:"table:shiningu_member_ban, do:true"`
Uid interface{} // 用户编号
CreatedAt *gtime.Time // 禁用时间
Type interface{} // 禁用类型
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// MemberFriend is the golang structure of table shiningu_member_friend for DAO operations like Where/Data.
type MemberFriend struct {
g.Meta `orm:"table:shiningu_member_friend, do:true"`
Uid interface{} // 当前用户
Uid2 interface{} // 对方编号
CreatedAt *gtime.Time // 创建时间
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// MemberLimit is the golang structure of table shiningu_member_limit for DAO operations like Where/Data.
type MemberLimit struct {
g.Meta `orm:"table:shiningu_member_limit, do:true"`
Uid interface{} // 用户uid
CreatedAt *gtime.Time // 创建时间
Data interface{} // 玩家权限
}

View File

@@ -0,0 +1,24 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// MemberSave is the golang structure of table shiningu_member_save for DAO operations like Where/Data.
type MemberSave struct {
g.Meta `orm:"table:shiningu_member_save, do:true"`
Uid interface{} // 用户编号
Type interface{} // 存档类型
Slot interface{} // 存档槽位
Data interface{} // 存档内容
S3 interface{} // s3地址
UpdatedAt *gtime.Time // 更新时间
Name interface{} // 自定义名字
Image interface{} // 上传图片
UseIds interface{} // 使用的道具id
}

View File

@@ -0,0 +1,42 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// MemberUser is the golang structure of table shiningu_member_user for DAO operations like Where/Data.
type MemberUser struct {
g.Meta `orm:"table:shiningu_member_user, do:true"`
Uid interface{} // 用户标识
Guid interface{} // 用户本次登录标识
Gid interface{} // 用户组编号
AccountLogin interface{} // 社交账号登录
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
Nickname interface{} // 昵称
Phone interface{} // 绑定手机
Email interface{} // 绑定邮箱
Money interface{} // 充值货币
Save interface{} // 储存路径
Slots interface{} // 槽位数量
OnlineDuration interface{} // 在线时长
OnlineStatus interface{} // 在线状态
OnlineTime *gtime.Time // 上线时间
OfflineTime *gtime.Time // 离线时间
CreateIp interface{} // 创号ip地址
UpdateIp interface{} // 更新IP地址
Level interface{} // 等级
Exp interface{} // 经验
Title interface{} // 称号
Avatar interface{} // 头像
AvatarFrame interface{} // 头像框
Popularity interface{} // 人气度
Charm interface{} // 魅力值
Gift interface{} // 礼物值
}

View File

@@ -0,0 +1,15 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// SystemCron is the golang structure of table shiningu_system_cron for DAO operations like Where/Data.
type SystemCron struct {
g.Meta `orm:"table:shiningu_system_cron, do:true"`
Id interface{} // 编号
}

View File

@@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SystemLog is the golang structure of table shiningu_system_log for DAO operations like Where/Data.
type SystemLog struct {
g.Meta `orm:"table:shiningu_system_log, do:true"`
Id interface{} // 主键
Uid interface{} // 操作的用户
Url interface{} // 当前访问的url
Data interface{} // 操作数据
CreatedAt *gtime.Time // 创建时间
Ip interface{} // 当前ip地址
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// SystemReport is the golang structure of table shiningu_system_report for DAO operations like Where/Data.
type SystemReport struct {
g.Meta `orm:"table:shiningu_system_report, do:true"`
Id interface{} //
Rid interface{} // 举报id
Uid interface{} // 举报人编号
Type interface{} // 举报类型
Desc interface{} // 举报正文
CreatedAt *gtime.Time // 举报时间
DeletedAt *gtime.Time // 删除时间
Status interface{} // 处理状态
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// SystemSetting is the golang structure of table shiningu_system_setting for DAO operations like Where/Data.
type SystemSetting struct {
g.Meta `orm:"table:shiningu_system_setting, do:true"`
Name interface{} // 配置名称
Value interface{} // 配置详情
Type interface{} // 类型
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
)
// SystemStatistics is the golang structure of table shiningu_system_statistics for DAO operations like Where/Data.
type SystemStatistics struct {
g.Meta `orm:"table:shiningu_system_statistics, do:true"`
Id interface{} // 流水号
AppId interface{} // 应用编号
Key interface{} // 唯一缓存key
Data interface{} // 数据
}

View File

@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityFans is the golang structure for table community_fans.
type CommunityFans struct {
Uid int64 `json:"uid" orm:"uid" description:"用户编号"` // 用户编号
Fans int64 `json:"fans" orm:"fans" description:"粉丝编号"` // 粉丝编号
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"关注时间"` // 关注时间
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityFeeds is the golang structure for table community_feeds.
type CommunityFeeds struct {
Id int `json:"id" orm:"id" description:"流水"` // 流水
Uid int64 `json:"uid" orm:"uid" description:""` //
PostId int `json:"post_id" orm:"post_id" description:"帖子编号"` // 帖子编号
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
}

View File

@@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityGift is the golang structure for table community_gift.
type CommunityGift struct {
Id int `json:"id" orm:"id" description:""` //
Uid int64 `json:"uid" orm:"uid" description:"收礼玩家编号"` // 收礼玩家编号
FromUid int64 `json:"from_uid" orm:"fromUid" description:"送礼玩家编号"` // 送礼玩家编号
Type int `json:"type" orm:"type" description:"送礼类型"` // 送礼类型
Pid int `json:"pid" orm:"pid" description:"帖子编号"` // 帖子编号
ItemId int64 `json:"item_id" orm:"itemId" description:"礼物编号"` // 礼物编号
Count int `json:"count" orm:"count" description:"礼物数量"` // 礼物数量
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
}

View File

@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// CommunityMenu is the golang structure for table community_menu.
type CommunityMenu struct {
Id int `json:"id" orm:"id" description:""` //
Name string `json:"name" orm:"name" description:"栏目名称"` // 栏目名称
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityNotice is the golang structure for table community_notice.
type CommunityNotice struct {
Id int `json:"id" orm:"id" description:""` //
Uid int64 `json:"uid" orm:"uid" description:"用户编号"` // 用户编号
FromUid int64 `json:"from_uid" orm:"from_uid" description:"对方用户编号"` // 对方用户编号
Type int `json:"type" orm:"type" description:"类型"` // 类型
Sid int `json:"sid" orm:"sid" description:"来源编号"` // 来源编号
Content string `json:"content" orm:"content" description:"正文"` // 正文
Extend string `json:"extend" orm:"extend" description:"附加属性"` // 附加属性
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
Status int `json:"status" orm:"status" description:"通知状态"` // 通知状态
}

View File

@@ -0,0 +1,36 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPosts is the golang structure for table community_posts.
type CommunityPosts struct {
Id int `json:"id" orm:"id" description:"帖子编号"` // 帖子编号
Tid int `json:"tid" orm:"tid" description:"帖子栏目"` // 帖子栏目
Uid int64 `json:"uid" orm:"uid" description:"发布者"` // 发布者
Click int64 `json:"click" orm:"click" description:"点击数"` // 点击数
LikeCount int `json:"like_count" orm:"like_count" description:"点赞数量"` // 点赞数量
CollectCount int `json:"collect_count" orm:"collect_count" description:"收藏数量"` // 收藏数量
Popularity int `json:"popularity" orm:"popularity" description:"人气度热度"` // 人气度热度
Charm int `json:"charm" orm:"charm" description:"魅力值"` // 魅力值
Language string `json:"language" orm:"language" description:"语言"` // 语言
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
DeletedAt *gtime.Time `json:"deleted_at" orm:"deleted_at" description:"删除时间"` // 删除时间
Topic1 int `json:"topic_1" orm:"topic1" description:"话题1"` // 话题1
Topic2 int `json:"topic_2" orm:"topic2" description:"话题2"` // 话题2
Status int `json:"status" orm:"status" description:"帖子状态 -1限流 0 正常"` // 帖子状态 -1限流 0 正常
Recommend int `json:"recommend" orm:"recommend" description:"小编推荐"` // 小编推荐
Extend string `json:"extend" orm:"extend" description:"附加信息"` // 附加信息
At string `json:"at" orm:"at" description:"用户的at功能"` // 用户的at功能
Period int `json:"period" orm:"period" description:"最新期数"` // 最新期数
Price int `json:"price" orm:"price" description:"当前价格"` // 当前价格
Index int `json:"index" orm:"index" description:"索引编号"` // 索引编号
Gesture int `json:"gesture" orm:"gesture" description:"手势"` // 手势
CharacterNum int `json:"character_num" orm:"character_num" description:"角色数量"` // 角色数量
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// CommunityPosts0 is the golang structure for table community_posts_0.
type CommunityPosts0 struct {
Id int `json:"id" orm:"id" description:"帖子编号"` // 帖子编号
Title string `json:"title" orm:"title" description:"标题"` // 标题
Content string `json:"content" orm:"content" description:"帖子正文"` // 帖子正文
Images string `json:"images" orm:"images" description:"帖子图片批量"` // 帖子图片批量
Image string `json:"image" orm:"image" description:"图片"` // 图片
ImagesRatio string `json:"images_ratio" orm:"images_ratio" description:"图片长宽比"` // 图片长宽比
Like string `json:"like" orm:"like" description:"点赞"` // 点赞
Collect string `json:"collect" orm:"collect" description:"收藏"` // 收藏
Extend string `json:"extend" orm:"extend" description:"附加信息"` // 附加信息
At string `json:"at" orm:"at" description:"at"` // at
Data string `json:"data" orm:"data" description:"内容属性"` // 内容属性
UseIds string `json:"use_ids" orm:"use_ids" description:"最新期数"` // 最新期数
Share string `json:"share" orm:"share" description:"分享帖子"` // 分享帖子
AiScore int `json:"ai_score" orm:"ai_score" description:""` //
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// CommunityPosts1 is the golang structure for table community_posts_1.
type CommunityPosts1 struct {
Id int `json:"id" orm:"id" description:"帖子编号"` // 帖子编号
Title string `json:"title" orm:"title" description:"标题"` // 标题
Content string `json:"content" orm:"content" description:"帖子正文"` // 帖子正文
Images string `json:"images" orm:"images" description:"帖子图片批量"` // 帖子图片批量
Image string `json:"image" orm:"image" description:"图片"` // 图片
ImagesRatio string `json:"images_ratio" orm:"images_ratio" description:"图片长宽比"` // 图片长宽比
Like string `json:"like" orm:"like" description:"点赞"` // 点赞
Collect string `json:"collect" orm:"collect" description:"收藏"` // 收藏
Extend string `json:"extend" orm:"extend" description:"附加信息"` // 附加信息
At string `json:"at" orm:"at" description:"at"` // at
Data string `json:"data" orm:"data" description:"内容属性"` // 内容属性
UseIds string `json:"use_ids" orm:"use_ids" description:"最新期数"` // 最新期数
Share string `json:"share" orm:"share" description:"分享帖子"` // 分享帖子
AiScore int `json:"ai_score" orm:"ai_score" description:""` //
}

View File

@@ -0,0 +1,12 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// CommunityPostsDetails is the golang structure for table community_posts_details.
type CommunityPostsDetails struct {
Id int `json:"id" orm:"id" description:""` //
Attachment string `json:"attachment" orm:"attachment" description:"帖子附件"` // 帖子附件
SlotsImg string `json:"slots_img" orm:"slots_img" description:"槽位图片"` // 槽位图片
}

View File

@@ -0,0 +1,15 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPostsHotDel is the golang structure for table community_posts_hot_del.
type CommunityPostsHotDel struct {
Id int `json:"id" orm:"id" description:"帖子编号"` // 帖子编号
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPostsRecommend is the golang structure for table community_posts_recommend.
type CommunityPostsRecommend struct {
Pid int `json:"pid" orm:"pid" description:"帖子编号"` // 帖子编号
Type int `json:"type" orm:"type" description:"推荐类型"` // 推荐类型
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
EndTime *gtime.Time `json:"end_time" orm:"end_time" description:"结束时间"` // 结束时间
}

View File

@@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// CommunityPostsReply is the golang structure for table community_posts_reply.
type CommunityPostsReply struct {
Id int `json:"id" orm:"id" description:"唯一id"` // 唯一id
Pid int `json:"pid" orm:"pid" description:"主贴id"` // 主贴id
Uid int64 `json:"uid" orm:"uid" description:""` //
Uid2 int64 `json:"uid_2" orm:"uid2" description:"被回复者的uid"` // 被回复者的uid
Content string `json:"content" orm:"content" description:"正文"` // 正文
Extend string `json:"extend" orm:"extend" description:"附加数据"` // 附加数据
TopId int `json:"top_id" orm:"top_id" description:"上级id"` // 上级id
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
Sort int `json:"sort" orm:"sort" description:"跟帖顺序"` // 跟帖顺序
AiScore float64 `json:"ai_score" orm:"ai_score" description:"机器评分"` // 机器评分
Status int `json:"status" orm:"status" description:"状态"` // 状态
At string `json:"at" orm:"at" description:"用户的at功能"` // 用户的at功能
Like string `json:"like" orm:"like" description:"回复点赞"` // 回复点赞
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// CommunityUser is the golang structure for table community_user.
type CommunityUser struct {
Uid int64 `json:"uid" orm:"uid" description:""` //
Like string `json:"like" orm:"like" description:"点赞"` // 点赞
Like2 string `json:"like_2" orm:"like2" description:"帖子回复点赞"` // 帖子回复点赞
Collect string `json:"collect" orm:"collect" description:"收藏"` // 收藏
FollowNum int `json:"follow_num" orm:"follow_num" description:"关注数量"` // 关注数量
FansNum int `json:"fans_num" orm:"fans_num" description:"粉丝数量"` // 粉丝数量
Gift int `json:"gift" orm:"gift" description:"礼物值"` // 礼物值
Blacklist string `json:"blacklist" orm:"blacklist" description:"黑名单"` // 黑名单
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// ConfigAct is the golang structure for table config_act.
type ConfigAct struct {
Id int `json:"id" orm:"id" description:"流水编号"` // 流水编号
Type int `json:"type" orm:"type" description:"活动类型"` // 活动类型
Actid int `json:"actid" orm:"actid" description:"活动编号"` // 活动编号
Name string `json:"name" orm:"name" description:"活动名称"` // 活动名称
Hid string `json:"hid" orm:"hid" description:"活动标识"` // 活动标识
Data string `json:"data" orm:"data" description:"活动数据"` // 活动数据
StartTime *gtime.Time `json:"start_time" orm:"start_time" description:"开始时间"` // 开始时间
EndTime *gtime.Time `json:"end_time" orm:"end_time" description:"结束时间"` // 结束时间
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// ConfigModalBox is the golang structure for table config_modal_box.
type ConfigModalBox struct {
Id int `json:"id" orm:"id" description:"主键"` // 主键
ModalBoxId int `json:"modal_box_id" orm:"modal_box_id" description:"弹框id"` // 弹框id
UserType string `json:"user_type" orm:"user_type" description:"特定用户"` // 特定用户
Tips string `json:"tips" orm:"tips" description:"弹框tips选项"` // 弹框tips选项
Name string `json:"name" orm:"name" description:"名称"` // 名称
Title string `json:"title" orm:"title" description:"标题"` // 标题
Content string `json:"content" orm:"content" description:"正文"` // 正文
Type int `json:"type" orm:"type" description:"类型"` // 类型
Style string `json:"style" orm:"style" description:"样式"` // 样式
Weight int `json:"weight" orm:"weight" description:"权重"` // 权重
Attachments string `json:"attachments" orm:"attachments" description:"附件"` // 附件
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
Status int `json:"status" orm:"status" description:"状态 1开始 0关闭"` // 状态 1开始 0关闭
Notes string `json:"notes" orm:"notes" description:"备注"` // 备注
StartTime *gtime.Time `json:"start_time" orm:"start_time" description:"开始时间"` // 开始时间
EndTime *gtime.Time `json:"end_time" orm:"end_time" description:"结束时间"` // 结束时间
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GameAct is the golang structure for table game_act.
type GameAct struct {
Uid int64 `json:"uid" orm:"uid" description:"玩家编号"` // 玩家编号
ActId int `json:"act_id" orm:"act_id" description:"活动编号"` // 活动编号
Action string `json:"action" orm:"action" description:"活动配置"` // 活动配置
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,13 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// GameBag is the golang structure for table game_bag.
type GameBag struct {
Uid int64 `json:"uid" orm:"uid" description:"用户标识"` // 用户标识
List string `json:"list" orm:"list" description:"道具数据"` // 道具数据
Book string `json:"book" orm:"book" description:"图鉴"` // 图鉴
Hand string `json:"hand" orm:"hand" description:"手势"` // 手势
}

View File

@@ -0,0 +1,17 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GameConfig is the golang structure for table game_config.
type GameConfig struct {
Name string `json:"name" orm:"name" description:"配置名称"` // 配置名称
Data string `json:"data" orm:"data" description:"配置内容"` // 配置内容
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GameKv is the golang structure for table game_kv.
type GameKv struct {
Uid int `json:"uid" orm:"uid" description:"用户"` // 用户
Kv string `json:"kv" orm:"kv" description:"变量"` // 变量
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,25 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GameMail is the golang structure for table game_mail.
type GameMail struct {
Id int64 `json:"id" orm:"id" description:"流水"` // 流水
Uid int64 `json:"uid" orm:"uid" description:"用户标识"` // 用户标识
Type int `json:"type" orm:"type" description:"类型"` // 类型
Title string `json:"title" orm:"title" description:"标题"` // 标题
Content string `json:"content" orm:"content" description:"正文"` // 正文
Items string `json:"items" orm:"items" description:"奖励道具"` // 奖励道具
HaveItems bool `json:"have_items" orm:"have_items" description:"是否有附件"` // 是否有附件
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
Sign string `json:"sign" orm:"sign" description:"署名"` // 署名
EndTime *gtime.Time `json:"end_time" orm:"end_time" description:"结束时间"` // 结束时间
Extend string `json:"extend" orm:"extend" description:"附加参数"` // 附加参数
Status int `json:"status" orm:"status" description:"状态"` // 状态
}

View File

@@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GameMailMass is the golang structure for table game_mail_mass.
type GameMailMass struct {
Id int `json:"id" orm:"id" description:"主键"` // 主键
Title string `json:"title" orm:"title" description:"标题"` // 标题
Type int `json:"type" orm:"type" description:"类型"` // 类型
Content string `json:"content" orm:"content" description:"正文"` // 正文
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
Items string `json:"items" orm:"items" description:"奖励"` // 奖励
Sign string `json:"sign" orm:"sign" description:"署名"` // 署名
EndTime *gtime.Time `json:"end_time" orm:"end_time" description:"结束时间"` // 结束时间
}

View File

@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// GameMailUser is the golang structure for table game_mail_user.
type GameMailUser struct {
Uid int64 `json:"uid" orm:"uid" description:""` //
Mass string `json:"mass" orm:"mass" description:"群发邮件领取列表"` // 群发邮件领取列表
}

View File

@@ -0,0 +1,27 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GamePay is the golang structure for table game_pay.
type GamePay struct {
OrderId string `json:"order_id" orm:"order_id" description:"订单编号"` // 订单编号
Uid int64 `json:"uid" orm:"uid" description:""` //
TerraceOrderId string `json:"terrace_order_id" orm:"terrace_order_id" description:"平台订单id"` // 平台订单id
Device string `json:"device" orm:"device" description:"设备名称"` // 设备名称
Channel string `json:"channel" orm:"channel" description:"支付渠道"` // 支付渠道
ShopId int64 `json:"shop_id" orm:"shop_id" description:"商品id"` // 商品id
Cent int `json:"cent" orm:"cent" description:"美分(不要使用小数点)"` // 美分(不要使用小数点)
PackageName string `json:"package_name" orm:"package_name" description:"包名"` // 包名
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
PayTime *gtime.Time `json:"pay_time" orm:"pay_time" description:"支付时间"` // 支付时间
Status int `json:"status" orm:"status" description:"状态"` // 状态
Token string `json:"token" orm:"token" description:"支付标识"` // 支付标识
Ip string `json:"ip" orm:"ip" description:"ip地址"` // ip地址
}

View File

@@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GameRank is the golang structure for table game_rank.
type GameRank struct {
Key int `json:"key" orm:"key" description:""` //
RankId int `json:"rank_id" orm:"rank_id" description:"排行榜编号"` // 排行榜编号
Type int `json:"type" orm:"type" description:"排行榜类型"` // 排行榜类型
Data string `json:"data" orm:"data" description:"数据"` // 数据
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"排行榜创建时间"` // 排行榜创建时间
StartTime *gtime.Time `json:"start_time" orm:"start_time" description:"榜单开始时间"` // 榜单开始时间
EndTime *gtime.Time `json:"end_time" orm:"end_time" description:"榜单结束时间"` // 榜单结束时间
Status int `json:"status" orm:"status" description:""` //
Image string `json:"image" orm:"image" description:"结算封面"` // 结算封面
FirstUid int64 `json:"first_uid" orm:"first_uid" description:"第一名的用户id"` // 第一名的用户id
}

View File

@@ -0,0 +1,15 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// GameStage is the golang structure for table game_stage.
type GameStage struct {
Uid int64 `json:"uid" orm:"uid" description:"用户标识"` // 用户标识
Chapter int `json:"chapter" orm:"chapter" description:"章节"` // 章节
WinData string `json:"win_data" orm:"win_data" description:"通关过的数据"` // 通关过的数据
StageData string `json:"stage_data" orm:"stage_data" description:"关卡数据"` // 关卡数据
Star int `json:"star" orm:"star" description:"章节获得的总星"` // 章节获得的总星
RwdData string `json:"rwd_data" orm:"rwd_data" description:"通关奖励领取"` // 通关奖励领取
}

View File

@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// MemberAuthorize is the golang structure for table member_authorize.
type MemberAuthorize struct {
Code string `json:"code" orm:"code" description:"授权码"` // 授权码
Uid int64 `json:"uid" orm:"uid" description:"用户标识"` // 用户标识
Type string `json:"type" orm:"type" description:"认证方式"` // 认证方式
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
CreateIp string `json:"create_ip" orm:"create_ip" description:"创建ip"` // 创建ip
}

View File

@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// MemberBan is the golang structure for table member_ban.
type MemberBan struct {
Uid int64 `json:"uid" orm:"uid" description:"用户编号"` // 用户编号
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"禁用时间"` // 禁用时间
Type int `json:"type" orm:"type" description:"禁用类型"` // 禁用类型
}

View File

@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// MemberFriend is the golang structure for table member_friend.
type MemberFriend struct {
Uid int64 `json:"uid" orm:"uid" description:"当前用户"` // 当前用户
Uid2 int64 `json:"uid_2" orm:"uid2" description:"对方编号"` // 对方编号
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
}

View File

@@ -0,0 +1,16 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// MemberLimit is the golang structure for table member_limit.
type MemberLimit struct {
Uid int64 `json:"uid" orm:"uid" description:"用户uid"` // 用户uid
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
Data string `json:"data" orm:"data" description:"玩家权限"` // 玩家权限
}

View File

@@ -0,0 +1,22 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// MemberSave is the golang structure for table member_save.
type MemberSave struct {
Uid int64 `json:"uid" orm:"uid" description:"用户编号"` // 用户编号
Type int `json:"type" orm:"type" description:"存档类型"` // 存档类型
Slot int `json:"slot" orm:"slot" description:"存档槽位"` // 存档槽位
Data string `json:"data" orm:"data" description:"存档内容"` // 存档内容
S3 string `json:"s_3" orm:"s3" description:"s3地址"` // s3地址
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
Name string `json:"name" orm:"name" description:"自定义名字"` // 自定义名字
Image string `json:"image" orm:"image" description:"上传图片"` // 上传图片
UseIds string `json:"use_ids" orm:"use_ids" description:"使用的道具id"` // 使用的道具id
}

View File

@@ -0,0 +1,40 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// MemberUser is the golang structure for table member_user.
type MemberUser struct {
Uid int64 `json:"uid" orm:"uid" description:"用户标识"` // 用户标识
Guid string `json:"guid" orm:"guid" description:"用户本次登录标识"` // 用户本次登录标识
Gid int `json:"gid" orm:"gid" description:"用户组编号"` // 用户组编号
AccountLogin string `json:"account_login" orm:"account_login" description:"社交账号登录"` // 社交账号登录
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updated_at" orm:"updated_at" description:"更新时间"` // 更新时间
DeletedAt *gtime.Time `json:"deleted_at" orm:"deleted_at" description:"删除时间"` // 删除时间
Nickname string `json:"nickname" orm:"nickname" description:"昵称"` // 昵称
Phone string `json:"phone" orm:"phone" description:"绑定手机"` // 绑定手机
Email string `json:"email" orm:"email" description:"绑定邮箱"` // 绑定邮箱
Money int64 `json:"money" orm:"money" description:"充值货币"` // 充值货币
Save string `json:"save" orm:"save" description:"储存路径"` // 储存路径
Slots string `json:"slots" orm:"slots" description:"槽位数量"` // 槽位数量
OnlineDuration int64 `json:"online_duration" orm:"online_duration" description:"在线时长"` // 在线时长
OnlineStatus int `json:"online_status" orm:"online_status" description:"在线状态"` // 在线状态
OnlineTime *gtime.Time `json:"online_time" orm:"online_time" description:"上线时间"` // 上线时间
OfflineTime *gtime.Time `json:"offline_time" orm:"offline_time" description:"离线时间"` // 离线时间
CreateIp string `json:"create_ip" orm:"create_ip" description:"创号ip地址"` // 创号ip地址
UpdateIp string `json:"update_ip" orm:"update_ip" description:"更新IP地址"` // 更新IP地址
Level int `json:"level" orm:"level" description:"等级"` // 等级
Exp int64 `json:"exp" orm:"exp" description:"经验"` // 经验
Title string `json:"title" orm:"title" description:"称号"` // 称号
Avatar string `json:"avatar" orm:"avatar" description:"头像"` // 头像
AvatarFrame int `json:"avatar_frame" orm:"avatar_frame" description:"头像框"` // 头像框
Popularity int `json:"popularity" orm:"popularity" description:"人气度"` // 人气度
Charm int `json:"charm" orm:"charm" description:"魅力值"` // 魅力值
Gift int `json:"gift" orm:"gift" description:"礼物值"` // 礼物值
}

View File

@@ -0,0 +1,10 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SystemCron is the golang structure for table system_cron.
type SystemCron struct {
Id int `json:"id" orm:"id" description:"编号"` // 编号
}

View File

@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SystemLog is the golang structure for table system_log.
type SystemLog struct {
Id int `json:"id" orm:"id" description:"主键"` // 主键
Uid int `json:"uid" orm:"uid" description:"操作的用户"` // 操作的用户
Url string `json:"url" orm:"url" description:"当前访问的url"` // 当前访问的url
Data string `json:"data" orm:"data" description:"操作数据"` // 操作数据
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"创建时间"` // 创建时间
Ip string `json:"ip" orm:"ip" description:"当前ip地址"` // 当前ip地址
}

View File

@@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// SystemReport is the golang structure for table system_report.
type SystemReport struct {
Id int `json:"id" orm:"id" description:""` //
Rid int `json:"rid" orm:"rid" description:"举报id"` // 举报id
Uid int `json:"uid" orm:"uid" description:"举报人编号"` // 举报人编号
Type int `json:"type" orm:"type" description:"举报类型"` // 举报类型
Desc string `json:"desc" orm:"desc" description:"举报正文"` // 举报正文
CreatedAt *gtime.Time `json:"created_at" orm:"created_at" description:"举报时间"` // 举报时间
DeletedAt *gtime.Time `json:"deleted_at" orm:"deleted_at" description:"删除时间"` // 删除时间
Status int `json:"status" orm:"status" description:"处理状态"` // 处理状态
}

View File

@@ -0,0 +1,12 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SystemSetting is the golang structure for table system_setting.
type SystemSetting struct {
Name string `json:"name" orm:"name" description:"配置名称"` // 配置名称
Value string `json:"value" orm:"value" description:"配置详情"` // 配置详情
Type int `json:"type" orm:"type" description:"类型"` // 类型
}

View File

@@ -0,0 +1,13 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SystemStatistics is the golang structure for table system_statistics.
type SystemStatistics struct {
Id int `json:"id" orm:"id" description:"流水号"` // 流水号
AppId int `json:"app_id" orm:"app_id" description:"应用编号"` // 应用编号
Key string `json:"key" orm:"key" description:"唯一缓存key"` // 唯一缓存key
Data string `json:"data" orm:"data" description:"数据"` // 数据
}