init
This commit is contained in:
0
Backend/internal/model/do/.gitkeep
Normal file
0
Backend/internal/model/do/.gitkeep
Normal file
22
Backend/internal/model/do/coaches.go
Normal file
22
Backend/internal/model/do/coaches.go
Normal 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 // 更新时间
|
||||
}
|
||||
28
Backend/internal/model/do/comments.go
Normal file
28
Backend/internal/model/do/comments.go
Normal 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 // 软删除时间
|
||||
}
|
||||
19
Backend/internal/model/do/containment_repo.go
Normal file
19
Backend/internal/model/do/containment_repo.go
Normal 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 // 部门
|
||||
}
|
||||
24
Backend/internal/model/do/department.go
Normal file
24
Backend/internal/model/do/department.go
Normal 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 // 地址
|
||||
}
|
||||
22
Backend/internal/model/do/fans.go
Normal file
22
Backend/internal/model/do/fans.go
Normal 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 // 更新时间
|
||||
}
|
||||
26
Backend/internal/model/do/forum_comments.go
Normal file
26
Backend/internal/model/do/forum_comments.go
Normal 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 // 父评论ID(NULL=根评论,非NULL=回复某条评论)
|
||||
Content any // 评论内容(支持emoji)
|
||||
Status any // 评论状态:normal=正常 deleted=软删除 audit=审核中 reject=审核驳回
|
||||
LikeCount any // 点赞数
|
||||
ReplyCount any // 回复数(冗余字段)
|
||||
CreatedAt *gtime.Time // 评论创建时间
|
||||
UpdatedAt *gtime.Time // 评论更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间
|
||||
}
|
||||
27
Backend/internal/model/do/forum_posts.go
Normal file
27
Backend/internal/model/do/forum_posts.go
Normal 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 // 软删除时间
|
||||
}
|
||||
21
Backend/internal/model/do/group_class_enrollments.go
Normal file
21
Backend/internal/model/do/group_class_enrollments.go
Normal 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 // 签到时间
|
||||
}
|
||||
26
Backend/internal/model/do/group_classes.go
Normal file
26
Backend/internal/model/do/group_classes.go
Normal 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 // 更新时间
|
||||
}
|
||||
40
Backend/internal/model/do/role_cards.go
Normal file
40
Backend/internal/model/do/role_cards.go
Normal 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 // 更新时间
|
||||
}
|
||||
22
Backend/internal/model/do/subscribe.go
Normal file
22
Backend/internal/model/do/subscribe.go
Normal 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 // 更新时间
|
||||
}
|
||||
34
Backend/internal/model/do/trpg_room.go
Normal file
34
Backend/internal/model/do/trpg_room.go
Normal 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 // 主持人用户ID(GM/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 // 信息最近更新时间
|
||||
}
|
||||
20
Backend/internal/model/do/user_department.go
Normal file
20
Backend/internal/model/do/user_department.go
Normal 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 // 更新时间
|
||||
}
|
||||
35
Backend/internal/model/do/users.go
Normal file
35
Backend/internal/model/do/users.go
Normal 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 // 蓝轨
|
||||
}
|
||||
24
Backend/internal/model/do/workout_logs.go
Normal file
24
Backend/internal/model/do/workout_logs.go
Normal 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 // 记录创建时间
|
||||
}
|
||||
Reference in New Issue
Block a user