init
This commit is contained in:
0
Backend/internal/model/entity/.gitkeep
Normal file
0
Backend/internal/model/entity/.gitkeep
Normal file
20
Backend/internal/model/entity/coaches.go
Normal file
20
Backend/internal/model/entity/coaches.go
Normal 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:"更新时间"` // 更新时间
|
||||
}
|
||||
26
Backend/internal/model/entity/comments.go
Normal file
26
Backend/internal/model/entity/comments.go
Normal 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:"软删除时间"` // 软删除时间
|
||||
}
|
||||
14
Backend/internal/model/entity/containment_repo.go
Normal file
14
Backend/internal/model/entity/containment_repo.go
Normal 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:"部门"` // 部门
|
||||
}
|
||||
22
Backend/internal/model/entity/department.go
Normal file
22
Backend/internal/model/entity/department.go
Normal 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:"地址"` // 地址
|
||||
}
|
||||
20
Backend/internal/model/entity/fans.go
Normal file
20
Backend/internal/model/entity/fans.go
Normal 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:"更新时间"` // 更新时间
|
||||
}
|
||||
24
Backend/internal/model/entity/forum_comments.go
Normal file
24
Backend/internal/model/entity/forum_comments.go
Normal 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:"父评论ID(NULL=根评论,非NULL=回复某条评论)"` // 父评论ID(NULL=根评论,非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:"软删除时间"` // 软删除时间
|
||||
}
|
||||
25
Backend/internal/model/entity/forum_posts.go
Normal file
25
Backend/internal/model/entity/forum_posts.go
Normal 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:"软删除时间"` // 软删除时间
|
||||
}
|
||||
19
Backend/internal/model/entity/group_class_enrollments.go
Normal file
19
Backend/internal/model/entity/group_class_enrollments.go
Normal 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:"签到时间"` // 签到时间
|
||||
}
|
||||
24
Backend/internal/model/entity/group_classes.go
Normal file
24
Backend/internal/model/entity/group_classes.go
Normal 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:"更新时间"` // 更新时间
|
||||
}
|
||||
38
Backend/internal/model/entity/role_cards.go
Normal file
38
Backend/internal/model/entity/role_cards.go
Normal 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:"更新时间"` // 更新时间
|
||||
}
|
||||
20
Backend/internal/model/entity/subscribe.go
Normal file
20
Backend/internal/model/entity/subscribe.go
Normal 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:"更新时间"` // 更新时间
|
||||
}
|
||||
32
Backend/internal/model/entity/trpg_room.go
Normal file
32
Backend/internal/model/entity/trpg_room.go
Normal 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:"主持人用户ID(GM/KP/经理,对应用户表id)"` // 主持人用户ID(GM/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:"信息最近更新时间"` // 信息最近更新时间
|
||||
}
|
||||
18
Backend/internal/model/entity/user_department.go
Normal file
18
Backend/internal/model/entity/user_department.go
Normal 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:"更新时间"` // 更新时间
|
||||
}
|
||||
33
Backend/internal/model/entity/users.go
Normal file
33
Backend/internal/model/entity/users.go
Normal 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:"蓝轨"` // 蓝轨
|
||||
}
|
||||
22
Backend/internal/model/entity/workout_logs.go
Normal file
22
Backend/internal/model/entity/workout_logs.go
Normal 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:"记录创建时间"` // 记录创建时间
|
||||
}
|
||||
Reference in New Issue
Block a user