This commit is contained in:
2026-01-18 18:20:40 +08:00
commit 20ed44aa74
178 changed files with 13789 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package model
type ContainmentRepo struct {
Abnormal int `json:"abnormal" orm:"abnormal" description:"number of contained anomalies (收容异常的数量)"`
AgentName string `json:"agentName" orm:"agent_name" description:"agent (特工)"`
AnomalyName string `json:"anomalyName" orm:"anomaly_name" description:"name of the anomaly (异常体的名字)"`
Id uint64 `json:"id" orm:"id" description:"primary key(大于0为修改其他为新增)"`
RepoName string `json:"repoName" orm:"repo_name" description:"containment repository name or code (收容库)"`
TerminalId int `json:"terminalId" orm:"terminal_id" description:"terminal (散逸端)"`
}

View File

@@ -0,0 +1,18 @@
package model
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Department 三角机构分部表
type Department struct {
Id uint64 `json:"id" orm:"id" description:"自增主键"`
UserId uint64 `json:"userId" orm:"user_id" description:"所属用户ID对应 users.id"`
BranchName string `json:"branchName" orm:"branch_name" description:"分部名称"`
TerminalCount int `json:"terminalCount" orm:"terminal_count" description:"分部散逸端的数量"`
Weather string `json:"weather" orm:"weather" description:"分部当前天气/气候描述"`
ManagerName string `json:"managerName" orm:"manager_name" description:"分部经理名称"`
Location string `json:"location" description:"分部地址"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}

View File

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"
"github.com/gogf/gf/v2/os/gtime"
)
// Coaches is the golang structure of table coaches for DAO operations like Where/Data.
type Coaches struct {
g.Meta `orm:"table:coaches, do:true"`
Id any // 教练ID
UserId any // 对应的用户ID如果教练也要登录的话
Name any // 教练姓名
Phone any // 教练电话
Specialty any // 擅长方向,比如瑜伽、力量、减脂
CreatedAt *gtime.Time // 创建时间
UpdatedAt *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"
)
// Comments is the golang structure of table comments for DAO operations like Where/Data.
type Comments struct {
g.Meta `orm:"table:comments, do:true"`
Id any // 评论ID
UserId any // 评论用户ID
TargetType any // 被评论对象类型(如 post/image/video 等)
TargetId any // 被评论对象ID
ParentId any // 父评论ID回复某条评论时填写
RootId any // 根评论ID同一楼的顶层评论ID便于树查询
Content any // 评论内容
Status any // 状态1正常 0屏蔽 2删除
LikeCount any // 点赞数
ReplyCount any // 回复数
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *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"
)
// ContainmentRepo is the golang structure of table containment_repo for DAO operations like Where/Data.
type ContainmentRepo struct {
g.Meta `orm:"table:containment_repo, do:true"`
Id any // auto-increment primary key
AnomalyName any // name of the anomaly (异常体的名字)
AgentName any // agent (特工)
RepoName any // containment repository name or code (收容库)
Department any // 部门
}

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"
)
// Department is the golang structure of table department for DAO operations like Where/Data.
type Department struct {
g.Meta `orm:"table:department, do:true"`
Id any // 自增主键
UserId any // 所属用户ID对应 users.id
BranchName any // 分部名称
TerminalCount any // 分部散逸端的数量
Weather any // 分部当前天气/气候描述
ManagerName any // 分部经理名称
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
Location any // 地址
}

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"
"github.com/gogf/gf/v2/os/gtime"
)
// Fans is the golang structure of table fans for DAO operations like Where/Data.
type Fans struct {
g.Meta `orm:"table:fans, do:true"`
Id any // 自增主键
UserId any // 用户ID被关注者本人
FanId any // 粉丝用户ID
Status any // 状态1=粉丝 0=取关/无效
Remark any // 备注名user_id 对 fan_id 的备注/分组)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,26 @@
// =================================================================================
// 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"
)
// ForumComments is the golang structure of table forum_comments for DAO operations like Where/Data.
type ForumComments struct {
g.Meta `orm:"table:forum_comments, do:true"`
Id any // 评论ID主键
UserId any // 评论发布者ID关联users.id无外键
PostId any // 所属帖子ID关联forum_posts.id无外键
ParentId any // 父评论IDNULL=根评论非NULL=回复某条评论)
Content any // 评论内容支持emoji
Status any // 评论状态normal=正常 deleted=软删除 audit=审核中 reject=审核驳回
LikeCount any // 点赞数
ReplyCount any // 回复数(冗余字段)
CreatedAt *gtime.Time // 评论创建时间
UpdatedAt *gtime.Time // 评论更新时间
DeletedAt *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"
)
// ForumPosts is the golang structure of table forum_posts for DAO operations like Where/Data.
type ForumPosts struct {
g.Meta `orm:"table:forum_posts, do:true"`
Id any // 帖子ID主键
UserId any // 发帖用户ID关联users.id无外键
Title any // 帖子标题
Content any // 帖子正文(支持富文本/emoji
CoverImage any // 帖子封面图URL
Status any // 帖子状态normal=正常 deleted=软删除 audit=审核中 reject=审核驳回
ViewCount any // 浏览量(冗余字段)
LikeCount any // 点赞数(冗余字段)
CommentCount any // 评论数(冗余字段)
CreatedAt *gtime.Time // 发帖时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间
}

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"
)
// GroupClassEnrollments is the golang structure of table group_class_enrollments for DAO operations like Where/Data.
type GroupClassEnrollments struct {
g.Meta `orm:"table:group_class_enrollments, do:true"`
Id any // 报名ID
ClassId any // 团课ID
UserId any // 用户ID
Status any // 状态booked已报名checked_in已签到cancelled已取消
EnrolledAt *gtime.Time // 报名时间
CheckedInAt *gtime.Time // 签到时间
}

View File

@@ -0,0 +1,26 @@
// =================================================================================
// 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"
)
// GroupClasses is the golang structure of table group_classes for DAO operations like Where/Data.
type GroupClasses struct {
g.Meta `orm:"table:group_classes, do:true"`
Id any // 团课ID
Title any // 课程名称,如:燃脂搏击、瑜伽
Description any // 课程介绍
CoachId any // 授课教练ID
Location any // 上课地点/门店/教室
StartTime *gtime.Time // 开始时间
EndTime *gtime.Time // 结束时间
MaxCapacity any // 最大人数
Price any // 价格0表示免费或已包含在会员卡内
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,40 @@
// =================================================================================
// 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"
)
// RoleCards is the golang structure of table role_cards for DAO operations like Where/Data.
type RoleCards struct {
g.Meta `orm:"table:role_cards, do:true"`
Id any // 角色卡ID
UserId any // 所属用户ID
DepartmentId any // 所属部门ID
Commendation any // 嘉奖次数
Reprimand any // 申戒次数
BlueTrack any // 蓝轨0-40
YellowTrack any // 黄轨0-40
RedTrack any // 红轨0-40
ArcAbnormal any // ARC异常
ArcReality any // ARC现实
ArcPosition any // ARC职位
AgentName any // 特工名字
CodeName any // 代号
Gender any // 性别
QaMeticulous any // Meticulousness (0-100, QA)
QaDeception any // Deception (0-100, QA)
QaVigor any // Vigor / Drive (0-100, QA)
QaEmpathy any // Empathy (0-100, QA)
QaInitiative any // Initiative (0-100, QA)
QaResilience any // Resilience / Persistence (0-100, QA)
QaPresence any // Presence / Charisma (0-100, QA)
QaProfessional any // Professionalism (0-100, QA)
QaDiscretion any // Discretion / Low profile (0-100, QA)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

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"
"github.com/gogf/gf/v2/os/gtime"
)
// Subscribe is the golang structure of table subscribe for DAO operations like Where/Data.
type Subscribe struct {
g.Meta `orm:"table:subscribe, do:true"`
Id any // 自增主键
UserId any // 用户ID关注者本人
FollowId any // 被关注的用户ID
Status any // 状态1=关注中 0=取消关注
Remark any // 备注名user_id 对 follow_id 的备注)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,34 @@
// =================================================================================
// 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"
)
// TrpgRoom is the golang structure of table trpg_room for DAO operations like Where/Data.
type TrpgRoom struct {
g.Meta `orm:"table:trpg_room, do:true"`
Id any // 自增主键
RoomId any // 房间全局唯一ID建议UUID
RoomCode any // 房间号(玩家看到/输入的房间号)
RoomName any // 房间名称
HostId any // 主持人用户IDGM/KP/经理对应用户表id
HostNickname any // 主持人昵称(冗余字段,可选)
MaxPlayers any // 最大玩家人数(不含主持人,可按需要约定)
CurrentPlayers any // 当前玩家人数(不含主持人)
HasPassword any // 是否有密码0无 1有
RoomPassword any // 房间密码(建议存加密/哈希后的密码)
IsPrivate any // 是否私密房0公开 1私密
Status any // 房间状态0未开始 1进行中 2已结束 3已关闭
SystemName any // 规则系统:如 COC、DND5E 等
ScenarioName any // 模组/剧本名称
Description any // 房间简介/招募说明
CreatedAt *gtime.Time // 房间创建时间
StartedAt *gtime.Time // 开团时间
EndedAt *gtime.Time // 结束时间
UpdatedAt *gtime.Time // 信息最近更新时间
}

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"
"github.com/gogf/gf/v2/os/gtime"
)
// UserDepartment is the golang structure of table user_department for DAO operations like Where/Data.
type UserDepartment struct {
g.Meta `orm:"table:user_department, do:true"`
Id any //
UserId any // 用户ID对应 users.id
DeptId any // 部门ID对应 department.id
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
}

View File

@@ -0,0 +1,35 @@
// =================================================================================
// 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"
)
// Users is the golang structure of table users for DAO operations like Where/Data.
type Users struct {
g.Meta `orm:"table:users, do:true"`
Id any // 用户ID
Account any // 账号
Password any // 密码哈希
Nickname any // 昵称
Gender any // 性别0未知 1男 2女
BirthDate *gtime.Time // 生日
UserType any // 用户类型normal普通用户vip为VIP用户
VipStartAt *gtime.Time // VIP开始时间
VipEndAt *gtime.Time // VIP结束时间
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
RealityRole any // 现实身份/角色
AbnormalRole any // 异常身份/角色
JobTitle any // 职位
Commendation any //
Admonition any //
Email any //
RedTrace any // 红轨
YellowTrace any // 黄轨
BlueTrace any // 蓝轨
}

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"
)
// WorkoutLogs is the golang structure of table workout_logs for DAO operations like Where/Data.
type WorkoutLogs struct {
g.Meta `orm:"table:workout_logs, do:true"`
Id any // 健身记录ID
UserId any // 关联的用户ID
WorkoutDate *gtime.Time // 健身日期
StartTime *gtime.Time // 开始时间
EndTime *gtime.Time // 结束时间
DurationMinutes any // 时长(分钟)
Calories any // 估算消耗的卡路里
Description any // 本次训练的备注,比如训练内容、部位等
CreatedAt *gtime.Time // 记录创建时间
}

View File

View File

@@ -0,0 +1,20 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Coaches is the golang structure for table coaches.
type Coaches struct {
Id uint64 `json:"id" orm:"id" description:"教练ID"` // 教练ID
UserId uint64 `json:"userId" orm:"user_id" description:"对应的用户ID如果教练也要登录的话"` // 对应的用户ID如果教练也要登录的话
Name string `json:"name" orm:"name" description:"教练姓名"` // 教练姓名
Phone string `json:"phone" orm:"phone" description:"教练电话"` // 教练电话
Specialty string `json:"specialty" orm:"specialty" description:"擅长方向,比如瑜伽、力量、减脂"` // 擅长方向,比如瑜伽、力量、减脂
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" 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"
)
// Comments is the golang structure for table comments.
type Comments struct {
Id uint64 `json:"id" orm:"id" description:"评论ID"` // 评论ID
UserId uint64 `json:"userId" orm:"user_id" description:"评论用户ID"` // 评论用户ID
TargetType string `json:"targetType" orm:"target_type" description:"被评论对象类型(如 post/image/video 等)"` // 被评论对象类型(如 post/image/video 等)
TargetId uint64 `json:"targetId" orm:"target_id" description:"被评论对象ID"` // 被评论对象ID
ParentId uint64 `json:"parentId" orm:"parent_id" description:"父评论ID回复某条评论时填写"` // 父评论ID回复某条评论时填写
RootId uint64 `json:"rootId" orm:"root_id" description:"根评论ID同一楼的顶层评论ID便于树查询"` // 根评论ID同一楼的顶层评论ID便于树查询
Content string `json:"content" orm:"content" description:"评论内容"` // 评论内容
Status int `json:"status" orm:"status" description:"状态1正常 0屏蔽 2删除"` // 状态1正常 0屏蔽 2删除
LikeCount uint `json:"likeCount" orm:"like_count" description:"点赞数"` // 点赞数
ReplyCount uint `json:"replyCount" orm:"reply_count" description:"回复数"` // 回复数
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间"` // 软删除时间
}

View File

@@ -0,0 +1,14 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// ContainmentRepo is the golang structure for table containment_repo.
type ContainmentRepo struct {
Id uint64 `json:"id" orm:"id" description:"auto-increment primary key"` // auto-increment primary key
AnomalyName string `json:"anomalyName" orm:"anomaly_name" description:"name of the anomaly (异常体的名字)"` // name of the anomaly (异常体的名字)
AgentName string `json:"agentName" orm:"agent_name" description:"agent (特工)"` // agent (特工)
RepoName string `json:"repoName" orm:"repo_name" description:"containment repository name or code (收容库)"` // containment repository name or code (收容库)
Department int `json:"department" orm:"department" 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"
)
// Department is the golang structure for table department.
type Department struct {
Id uint64 `json:"id" orm:"id" description:"自增主键"` // 自增主键
UserId uint64 `json:"userId" orm:"user_id" description:"所属用户ID对应 users.id"` // 所属用户ID对应 users.id
BranchName string `json:"branchName" orm:"branch_name" description:"分部名称"` // 分部名称
TerminalCount int `json:"terminalCount" orm:"terminal_count" description:"分部散逸端的数量"` // 分部散逸端的数量
Weather string `json:"weather" orm:"weather" description:"分部当前天气/气候描述"` // 分部当前天气/气候描述
ManagerName string `json:"managerName" orm:"manager_name" description:"分部经理名称"` // 分部经理名称
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
Location string `json:"location" orm:"location" description:"地址"` // 地址
}

View File

@@ -0,0 +1,20 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Fans is the golang structure for table fans.
type Fans struct {
Id uint64 `json:"id" orm:"id" description:"自增主键"` // 自增主键
UserId uint64 `json:"userId" orm:"user_id" description:"用户ID被关注者本人"` // 用户ID被关注者本人
FanId uint64 `json:"fanId" orm:"fan_id" description:"粉丝用户ID"` // 粉丝用户ID
Status int `json:"status" orm:"status" description:"状态1=粉丝 0=取关/无效"` // 状态1=粉丝 0=取关/无效
Remark string `json:"remark" orm:"remark" description:"备注名user_id 对 fan_id 的备注/分组)"` // 备注名user_id 对 fan_id 的备注/分组)
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,24 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// ForumComments is the golang structure for table forum_comments.
type ForumComments struct {
Id uint64 `json:"id" orm:"id" description:"评论ID主键"` // 评论ID主键
UserId uint64 `json:"userId" orm:"user_id" description:"评论发布者ID关联users.id无外键"` // 评论发布者ID关联users.id无外键
PostId uint64 `json:"postId" orm:"post_id" description:"所属帖子ID关联forum_posts.id无外键"` // 所属帖子ID关联forum_posts.id无外键
ParentId uint64 `json:"parentId" orm:"parent_id" description:"父评论IDNULL=根评论非NULL=回复某条评论)"` // 父评论IDNULL=根评论非NULL=回复某条评论)
Content string `json:"content" orm:"content" description:"评论内容支持emoji"` // 评论内容支持emoji
Status string `json:"status" orm:"status" description:"评论状态normal=正常 deleted=软删除 audit=审核中 reject=审核驳回"` // 评论状态normal=正常 deleted=软删除 audit=审核中 reject=审核驳回
LikeCount uint `json:"likeCount" orm:"like_count" description:"点赞数"` // 点赞数
ReplyCount uint `json:"replyCount" orm:"reply_count" description:"回复数(冗余字段)"` // 回复数(冗余字段)
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"评论创建时间"` // 评论创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"评论更新时间"` // 评论更新时间
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_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"
)
// ForumPosts is the golang structure for table forum_posts.
type ForumPosts struct {
Id uint64 `json:"id" orm:"id" description:"帖子ID主键"` // 帖子ID主键
UserId uint64 `json:"userId" orm:"user_id" description:"发帖用户ID关联users.id无外键"` // 发帖用户ID关联users.id无外键
Title string `json:"title" orm:"title" description:"帖子标题"` // 帖子标题
Content string `json:"content" orm:"content" description:"帖子正文(支持富文本/emoji"` // 帖子正文(支持富文本/emoji
CoverImage string `json:"coverImage" orm:"cover_image" description:"帖子封面图URL"` // 帖子封面图URL
Status string `json:"status" orm:"status" description:"帖子状态normal=正常 deleted=软删除 audit=审核中 reject=审核驳回"` // 帖子状态normal=正常 deleted=软删除 audit=审核中 reject=审核驳回
ViewCount uint `json:"viewCount" orm:"view_count" description:"浏览量(冗余字段)"` // 浏览量(冗余字段)
LikeCount uint `json:"likeCount" orm:"like_count" description:"点赞数(冗余字段)"` // 点赞数(冗余字段)
CommentCount uint `json:"commentCount" orm:"comment_count" description:"评论数(冗余字段)"` // 评论数(冗余字段)
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"发帖时间"` // 发帖时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" 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"
)
// GroupClassEnrollments is the golang structure for table group_class_enrollments.
type GroupClassEnrollments struct {
Id uint64 `json:"id" orm:"id" description:"报名ID"` // 报名ID
ClassId uint64 `json:"classId" orm:"class_id" description:"团课ID"` // 团课ID
UserId uint64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
Status string `json:"status" orm:"status" description:"状态booked已报名checked_in已签到cancelled已取消"` // 状态booked已报名checked_in已签到cancelled已取消
EnrolledAt *gtime.Time `json:"enrolledAt" orm:"enrolled_at" description:"报名时间"` // 报名时间
CheckedInAt *gtime.Time `json:"checkedInAt" orm:"checked_in_at" description:"签到时间"` // 签到时间
}

View File

@@ -0,0 +1,24 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// GroupClasses is the golang structure for table group_classes.
type GroupClasses struct {
Id uint64 `json:"id" orm:"id" description:"团课ID"` // 团课ID
Title string `json:"title" orm:"title" description:"课程名称,如:燃脂搏击、瑜伽"` // 课程名称,如:燃脂搏击、瑜伽
Description string `json:"description" orm:"description" description:"课程介绍"` // 课程介绍
CoachId uint64 `json:"coachId" orm:"coach_id" description:"授课教练ID"` // 授课教练ID
Location string `json:"location" orm:"location" description:"上课地点/门店/教室"` // 上课地点/门店/教室
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"开始时间"` // 开始时间
EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"结束时间"` // 结束时间
MaxCapacity int `json:"maxCapacity" orm:"max_capacity" description:"最大人数"` // 最大人数
Price float64 `json:"price" orm:"price" description:"价格0表示免费或已包含在会员卡内"` // 价格0表示免费或已包含在会员卡内
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,38 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// RoleCards is the golang structure for table role_cards.
type RoleCards struct {
Id uint64 `json:"id" orm:"id" description:"角色卡ID"` // 角色卡ID
UserId uint64 `json:"userId" orm:"user_id" description:"所属用户ID"` // 所属用户ID
DepartmentId uint64 `json:"departmentId" orm:"department_id" description:"所属部门ID"` // 所属部门ID
Commendation uint `json:"commendation" orm:"commendation" description:"嘉奖次数"` // 嘉奖次数
Reprimand uint `json:"reprimand" orm:"reprimand" description:"申戒次数"` // 申戒次数
BlueTrack uint `json:"blueTrack" orm:"blue_track" description:"蓝轨0-40"` // 蓝轨0-40
YellowTrack uint `json:"yellowTrack" orm:"yellow_track" description:"黄轨0-40"` // 黄轨0-40
RedTrack uint `json:"redTrack" orm:"red_track" description:"红轨0-40"` // 红轨0-40
ArcAbnormal string `json:"arcAbnormal" orm:"arc_abnormal" description:"ARC异常"` // ARC异常
ArcReality string `json:"arcReality" orm:"arc_reality" description:"ARC现实"` // ARC现实
ArcPosition string `json:"arcPosition" orm:"arc_position" description:"ARC职位"` // ARC职位
AgentName string `json:"agentName" orm:"agent_name" description:"特工名字"` // 特工名字
CodeName string `json:"codeName" orm:"code_name" description:"代号"` // 代号
Gender string `json:"gender" orm:"gender" description:"性别"` // 性别
QaMeticulous uint `json:"qaMeticulous" orm:"qa_meticulous" description:"Meticulousness (0-100, QA)"` // Meticulousness (0-100, QA)
QaDeception uint `json:"qaDeception" orm:"qa_deception" description:"Deception (0-100, QA)"` // Deception (0-100, QA)
QaVigor uint `json:"qaVigor" orm:"qa_vigor" description:"Vigor / Drive (0-100, QA)"` // Vigor / Drive (0-100, QA)
QaEmpathy uint `json:"qaEmpathy" orm:"qa_empathy" description:"Empathy (0-100, QA)"` // Empathy (0-100, QA)
QaInitiative uint `json:"qaInitiative" orm:"qa_initiative" description:"Initiative (0-100, QA)"` // Initiative (0-100, QA)
QaResilience uint `json:"qaResilience" orm:"qa_resilience" description:"Resilience / Persistence (0-100, QA)"` // Resilience / Persistence (0-100, QA)
QaPresence uint `json:"qaPresence" orm:"qa_presence" description:"Presence / Charisma (0-100, QA)"` // Presence / Charisma (0-100, QA)
QaProfessional uint `json:"qaProfessional" orm:"qa_professional" description:"Professionalism (0-100, QA)"` // Professionalism (0-100, QA)
QaDiscretion uint `json:"qaDiscretion" orm:"qa_discretion" description:"Discretion / Low profile (0-100, QA)"` // Discretion / Low profile (0-100, QA)
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,20 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Subscribe is the golang structure for table subscribe.
type Subscribe struct {
Id uint64 `json:"id" orm:"id" description:"自增主键"` // 自增主键
UserId uint64 `json:"userId" orm:"user_id" description:"用户ID关注者本人"` // 用户ID关注者本人
FollowId uint64 `json:"followId" orm:"follow_id" description:"被关注的用户ID"` // 被关注的用户ID
Status int `json:"status" orm:"status" description:"状态1=关注中 0=取消关注"` // 状态1=关注中 0=取消关注
Remark string `json:"remark" orm:"remark" description:"备注名user_id 对 follow_id 的备注)"` // 备注名user_id 对 follow_id 的备注)
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,32 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TrpgRoom is the golang structure for table trpg_room.
type TrpgRoom struct {
Id uint64 `json:"id" orm:"id" description:"自增主键"` // 自增主键
RoomId string `json:"roomId" orm:"room_id" description:"房间全局唯一ID建议UUID"` // 房间全局唯一ID建议UUID
RoomCode string `json:"roomCode" orm:"room_code" description:"房间号(玩家看到/输入的房间号)"` // 房间号(玩家看到/输入的房间号)
RoomName string `json:"roomName" orm:"room_name" description:"房间名称"` // 房间名称
HostId uint64 `json:"hostId" orm:"host_id" description:"主持人用户IDGM/KP/经理对应用户表id"` // 主持人用户IDGM/KP/经理对应用户表id
HostNickname string `json:"hostNickname" orm:"host_nickname" description:"主持人昵称(冗余字段,可选)"` // 主持人昵称(冗余字段,可选)
MaxPlayers uint `json:"maxPlayers" orm:"max_players" description:"最大玩家人数(不含主持人,可按需要约定)"` // 最大玩家人数(不含主持人,可按需要约定)
CurrentPlayers uint `json:"currentPlayers" orm:"current_players" description:"当前玩家人数(不含主持人)"` // 当前玩家人数(不含主持人)
HasPassword int `json:"hasPassword" orm:"has_password" description:"是否有密码0无 1有"` // 是否有密码0无 1有
RoomPassword string `json:"roomPassword" orm:"room_password" description:"房间密码(建议存加密/哈希后的密码)"` // 房间密码(建议存加密/哈希后的密码)
IsPrivate int `json:"isPrivate" orm:"is_private" description:"是否私密房0公开 1私密"` // 是否私密房0公开 1私密
Status int `json:"status" orm:"status" description:"房间状态0未开始 1进行中 2已结束 3已关闭"` // 房间状态0未开始 1进行中 2已结束 3已关闭
SystemName string `json:"systemName" orm:"system_name" description:"规则系统:如 COC、DND5E 等"` // 规则系统:如 COC、DND5E 等
ScenarioName string `json:"scenarioName" orm:"scenario_name" description:"模组/剧本名称"` // 模组/剧本名称
Description string `json:"description" orm:"description" description:"房间简介/招募说明"` // 房间简介/招募说明
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"房间创建时间"` // 房间创建时间
StartedAt *gtime.Time `json:"startedAt" orm:"started_at" description:"开团时间"` // 开团时间
EndedAt *gtime.Time `json:"endedAt" orm:"ended_at" description:"结束时间"` // 结束时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"信息最近更新时间"` // 信息最近更新时间
}

View File

@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// UserDepartment is the golang structure for table user_department.
type UserDepartment struct {
Id uint64 `json:"id" orm:"id" description:""` //
UserId uint64 `json:"userId" orm:"user_id" description:"用户ID对应 users.id"` // 用户ID对应 users.id
DeptId uint64 `json:"deptId" orm:"dept_id" description:"部门ID对应 department.id"` // 部门ID对应 department.id
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
}

View File

@@ -0,0 +1,33 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Users is the golang structure for table users.
type Users struct {
Id uint64 `json:"id" orm:"id" description:"用户ID"` // 用户ID
Account string `json:"account" orm:"account" description:"账号"` // 账号
Password string `json:"password" orm:"password" description:"密码哈希"` // 密码哈希
Nickname string `json:"nickname" orm:"nickname" description:"昵称"` // 昵称
Gender int `json:"gender" orm:"gender" description:"性别0未知 1男 2女"` // 性别0未知 1男 2女
BirthDate *gtime.Time `json:"birthDate" orm:"birth_date" description:"生日"` // 生日
UserType string `json:"userType" orm:"user_type" description:"用户类型normal普通用户vip为VIP用户"` // 用户类型normal普通用户vip为VIP用户
VipStartAt *gtime.Time `json:"vipStartAt" orm:"vip_start_at" description:"VIP开始时间"` // VIP开始时间
VipEndAt *gtime.Time `json:"vipEndAt" orm:"vip_end_at" description:"VIP结束时间"` // VIP结束时间
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
RealityRole string `json:"realityRole" orm:"reality_role" description:"现实身份/角色"` // 现实身份/角色
AbnormalRole string `json:"abnormalRole" orm:"abnormal_role" description:"异常身份/角色"` // 异常身份/角色
JobTitle string `json:"jobTitle" orm:"job_title" description:"职位"` // 职位
Commendation int `json:"commendation" orm:"Commendation" description:""` //
Admonition int `json:"admonition" orm:"Admonition" description:""` //
Email string `json:"email" orm:"email" description:""` //
RedTrace int `json:"redTrace" orm:"red_trace" description:"红轨"` // 红轨
YellowTrace int `json:"yellowTrace" orm:"yellow_trace" description:"黄轨"` // 黄轨
BlueTrace int `json:"blueTrace" orm:"blue_trace" 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"
)
// WorkoutLogs is the golang structure for table workout_logs.
type WorkoutLogs struct {
Id uint64 `json:"id" orm:"id" description:"健身记录ID"` // 健身记录ID
UserId uint64 `json:"userId" orm:"user_id" description:"关联的用户ID"` // 关联的用户ID
WorkoutDate *gtime.Time `json:"workoutDate" orm:"workout_date" description:"健身日期"` // 健身日期
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"开始时间"` // 开始时间
EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"结束时间"` // 结束时间
DurationMinutes int `json:"durationMinutes" orm:"duration_minutes" description:"时长(分钟)"` // 时长(分钟)
Calories int `json:"calories" orm:"calories" description:"估算消耗的卡路里"` // 估算消耗的卡路里
Description string `json:"description" orm:"description" description:"本次训练的备注,比如训练内容、部位等"` // 本次训练的备注,比如训练内容、部位等
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"记录创建时间"` // 记录创建时间
}

View File

@@ -0,0 +1,8 @@
package model
type LoginField struct {
Account string `json:"account" v:"required#账号不能为空"`
Password string `json:"password" v:"required#密码不能为空"`
Nickname string `json:"nickname" v:"required#昵称不能为空"`
Email string `json:"email"`
}

View File

@@ -0,0 +1,8 @@
package response
// 分页结果
type PageResult struct {
Page int `json:"page"`
PageSize int `json:"pageSize"`
Total int `json:"total"`
}

View File

@@ -0,0 +1,53 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TrpgRoom is the golang structure for table trpg_room.
type RoomParams struct {
Id uint64 `json:"id" orm:"id" description:"自增主键"` // 自增主键
RoomId string `json:"roomId" orm:"room_id" description:"房间全局唯一ID建议UUID"` // 房间全局唯一ID建议UUID
RoomCode string `json:"roomCode" orm:"room_code" description:"房间号(玩家看到/输入的房间号)"` // 房间号(玩家看到/输入的房间号)
RoomName string `json:"roomName" orm:"room_name" description:"房间名称"` // 房间名称
HostId uint64 `json:"hostId" orm:"host_id" description:"主持人用户IDGM/KP/经理对应用户表id"` // 主持人用户IDGM/KP/经理对应用户表id
HostNickname string `json:"hostNickname" orm:"host_nickname" description:"主持人昵称(冗余字段,可选)"` // 主持人昵称(冗余字段,可选)
MaxPlayers uint `json:"maxPlayers" orm:"max_players" description:"最大玩家人数(不含主持人,可按需要约定)"` // 最大玩家人数(不含主持人,可按需要约定)
CurrentPlayers uint `json:"currentPlayers" orm:"current_players" description:"当前玩家人数(不含主持人)"` // 当前玩家人数(不含主持人)
HasPassword int `json:"hasPassword" orm:"has_password" description:"是否有密码0无 1有"` // 是否有密码0无 1有
RoomPassword string `json:"roomPassword" orm:"room_password" description:"房间密码(建议存加密/哈希后的密码)"` // 房间密码(建议存加密/哈希后的密码)
IsPrivate int `json:"isPrivate" orm:"is_private" description:"是否私密房0公开 1私密"` // 是否私密房0公开 1私密
Status int `json:"status" orm:"status" description:"房间状态0未开始 1进行中 2已结束 3已关闭"` // 房间状态0未开始 1进行中 2已结束 3已关闭
SystemName string `json:"systemName" orm:"system_name" description:"规则系统:如 COC、DND5E 等"` // 规则系统:如 COC、DND5E 等
ScenarioName string `json:"scenarioName" orm:"scenario_name" description:"模组/剧本名称"` // 模组/剧本名称
Description string `json:"description" orm:"description" description:"房间简介/招募说明"` // 房间简介/招募说明
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"房间创建时间"` // 房间创建时间
StartedAt *gtime.Time `json:"startedAt" orm:"started_at" description:"开团时间"` // 开团时间
EndedAt *gtime.Time `json:"endedAt" orm:"ended_at" description:"结束时间"` // 结束时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"信息最近更新时间"` // 信息最近更新时间
}
type RoomView struct {
Id uint64 `json:"id" orm:"id" description:"自增主键"` // 自增主键
RoomId string `json:"roomId" orm:"room_id" description:"房间全局唯一ID建议UUID"` // 房间全局唯一ID建议UUID
RoomCode string `json:"roomCode" orm:"room_code" description:"房间号(玩家看到/输入的房间号)"` // 房间号(玩家看到/输入的房间号)
RoomName string `json:"roomName" orm:"room_name" description:"房间名称"` // 房间名称
HostId uint64 `json:"hostId" orm:"host_id" description:"主持人用户IDGM/KP/经理对应用户表id"` // 主持人用户IDGM/KP/经理对应用户表id
HostNickname string `json:"hostNickname" orm:"host_nickname" description:"主持人昵称(冗余字段,可选)"` // 主持人昵称(冗余字段,可选)
MaxPlayers uint `json:"maxPlayers" orm:"max_players" description:"最大玩家人数(不含主持人,可按需要约定)"` // 最大玩家人数(不含主持人,可按需要约定)
CurrentPlayers uint `json:"currentPlayers" orm:"current_players" description:"当前玩家人数(不含主持人)"` // 当前玩家人数(不含主持人)
HasPassword int `json:"hasPassword" orm:"has_password" description:"是否有密码0无 1有"` // 是否有密码0无 1有
IsPrivate int `json:"isPrivate" orm:"is_private" description:"是否私密房0公开 1私密"` // 是否私密房0公开 1私密
Status int `json:"status" orm:"status" description:"房间状态0未开始 1进行中 2已结束 3已关闭"` // 房间状态0未开始 1进行中 2已结束 3已关闭
SystemName string `json:"systemName" orm:"system_name" description:"规则系统:如 COC、DND5E 等"` // 规则系统:如 COC、DND5E 等
ScenarioName string `json:"scenarioName" orm:"scenario_name" description:"模组/剧本名称"` // 模组/剧本名称
Description string `json:"description" orm:"description" description:"房间简介/招募说明"` // 房间简介/招募说明
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"房间创建时间"` // 房间创建时间
StartedAt *gtime.Time `json:"startedAt" orm:"started_at" description:"开团时间"` // 开团时间
EndedAt *gtime.Time `json:"endedAt" orm:"ended_at" description:"结束时间"` // 结束时间
}

View File

@@ -0,0 +1,32 @@
package model
import "github.com/gogf/gf/v2/os/gtime"
type User struct {
Id uint64 `json:"id" orm:"id" description:"用户ID"` // 用户ID
Account string `json:"account" orm:"account" description:"账号"` // 账号
Password string `json:"password" orm:"password" description:"密码哈希"` // 密码哈希
Nickname string `json:"nickname" orm:"nickname" description:"昵称"` // 昵称
Gender int `json:"gender" orm:"gender" description:"性别0未知 1男 2女"` // 性别0未知 1男 2女
BirthDate *gtime.Time `json:"birthDate" orm:"birth_date" description:"生日"` // 生日
UserType string `json:"userType" orm:"user_type" description:"用户类型normal普通用户vip为VIP用户"` // 用户类型normal普通用户vip为VIP用户
VipStartAt *gtime.Time `json:"vipStartAt" orm:"vip_start_at" description:"VIP开始时间"` // VIP开始时间
VipEndAt *gtime.Time `json:"vipEndAt" orm:"vip_end_at" description:"VIP结束时间"` // VIP结束时间
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
}
type UserViewParams struct {
Id uint64 `json:"id" orm:"id" description:"用户ID"` // 用户ID
Account string `json:"account" orm:"account" description:"账号"` // 账号
Nickname string `json:"nickname" orm:"nickname" description:"昵称"` // 昵称
Gender int `json:"gender" orm:"gender" description:"性别0未知 1男 2女"` // 性别0未知 1男 2女
BirthDate *gtime.Time `json:"birthDate" orm:"birth_date" description:"生日"` // 生日
UserType string `json:"userType" orm:"user_type" description:"用户类型normal普通用户vip为VIP用户"` // 用户类型normal普通用户vip为VIP用户
VipStartAt *gtime.Time `json:"vipStartAt" orm:"vip_start_at" description:"VIP开始时间"` // VIP开始时间
VipEndAt *gtime.Time `json:"vipEndAt" orm:"vip_end_at" description:"VIP结束时间"` // VIP结束时间
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
RealityRole string `json:"realityRole" orm:"reality_role" description:"现实身份/角色"` // 现实身份/角色
AbnormalRole string `json:"abnormalRole" orm:"abnormal_role" description:"异常身份/角色"` // 异常身份/角色
JobTitle string `json:"jobTitle" orm:"job_title" description:"职位"` // 职位
}