板块创建成功
This commit is contained in:
@@ -18,7 +18,7 @@ type ForumComments struct {
|
||||
ParentId any // 父评论ID:NULL=一级评论;非NULL=二级评论(指向一级评论ID,无外键)
|
||||
ReplyToUserId any // 回复的用户ID(可选,用于展示“回复@xxx”,无外键)
|
||||
Content any // 评论内容(支持emoji)
|
||||
Status any // 状态:normal=正常 deleted=软删 audit=审核中 reject=驳回
|
||||
Status any // 状态:1=正常 2=软删 3=审核中 4=驳回
|
||||
LikeCount any // 点赞数(冗余)
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
|
||||
@@ -10,15 +10,15 @@ import (
|
||||
|
||||
// ForumComments is the golang structure for table forum_comments.
|
||||
type ForumComments struct {
|
||||
Id uint64 `json:"id" orm:"id" description:"评论ID(主键)"` // 评论ID(主键)
|
||||
PostId uint64 `json:"postId" orm:"post_id" description:"所属帖子ID(关联 forum_posts.id,无外键)"` // 所属帖子ID(关联 forum_posts.id,无外键)
|
||||
UserId uint64 `json:"userId" orm:"user_id" description:"评论发布者ID(关联 users.id,无外键)"` // 评论发布者ID(关联 users.id,无外键)
|
||||
ParentId uint64 `json:"parentId" orm:"parent_id" description:"父评论ID:NULL=一级评论;非NULL=二级评论(指向一级评论ID,无外键)"` // 父评论ID:NULL=一级评论;非NULL=二级评论(指向一级评论ID,无外键)
|
||||
ReplyToUserId uint64 `json:"replyToUserId" orm:"reply_to_user_id" description:"回复的用户ID(可选,用于展示“回复@xxx”,无外键)"` // 回复的用户ID(可选,用于展示“回复@xxx”,无外键)
|
||||
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:"点赞数(冗余)"` // 点赞数(冗余)
|
||||
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:"软删除时间"` // 软删除时间
|
||||
Id uint64 `json:"id" orm:"id" description:"评论ID(主键)"` // 评论ID(主键)
|
||||
PostId uint64 `json:"postId" orm:"post_id" description:"所属帖子ID(关联 forum_posts.id,无外键)"` // 所属帖子ID(关联 forum_posts.id,无外键)
|
||||
UserId uint64 `json:"userId" orm:"user_id" description:"评论发布者ID(关联 users.id,无外键)"` // 评论发布者ID(关联 users.id,无外键)
|
||||
ParentId uint64 `json:"parentId" orm:"parent_id" description:"父评论ID:NULL=一级评论;非NULL=二级评论(指向一级评论ID,无外键)"` // 父评论ID:NULL=一级评论;非NULL=二级评论(指向一级评论ID,无外键)
|
||||
ReplyToUserId uint64 `json:"replyToUserId" orm:"reply_to_user_id" description:"回复的用户ID(可选,用于展示“回复@xxx”,无外键)"` // 回复的用户ID(可选,用于展示“回复@xxx”,无外键)
|
||||
Content string `json:"content" orm:"content" description:"评论内容(支持emoji)"` // 评论内容(支持emoji)
|
||||
Status string `json:"status" orm:"status" description:"状态:1=正常 2=软删 3=审核中 4=驳回"` // 状态:1=正常 2=软删 3=审核中 4=驳回
|
||||
LikeCount uint `json:"likeCount" orm:"like_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:"软删除时间"` // 软删除时间
|
||||
}
|
||||
|
||||
@@ -6,19 +6,13 @@ import (
|
||||
|
||||
// ForumBoard 论坛版块
|
||||
type ForumBoard struct {
|
||||
Id uint64 `json:"id" orm:"id" description:"版块ID"`
|
||||
SectionId uint64 `json:"sectionId" orm:"section_id" description:"所属频道ID"`
|
||||
Name string `json:"name" orm:"name" description:"版块名称"`
|
||||
Description string `json:"description" orm:"description" description:"版块简介"`
|
||||
CoverImage string `json:"coverImage" orm:"cover_image" description:"版块封面图URL"`
|
||||
Status string `json:"status" orm:"status" description:"版块状态"`
|
||||
DisplayOrder int `json:"displayOrder" orm:"display_order" description:"排序值"`
|
||||
PostCount uint `json:"postCount" orm:"post_count" description:"帖子总数"`
|
||||
TodayPostCount uint `json:"todayPostCount" orm:"today_post_count" description:"今日发帖数"`
|
||||
LastPostId uint64 `json:"lastPostId" orm:"last_post_id" description:"最后一篇帖子ID"`
|
||||
LastPostAt *gtime.Time `json:"lastPostAt" orm:"last_post_at" description:"最后发帖时间"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
|
||||
Id uint64 `json:"id" orm:"id" description:"版块ID"`
|
||||
SectionId uint64 `json:"sectionId" orm:"section_id" description:"所属频道ID"`
|
||||
Name string `json:"name" orm:"name" description:"版块名称"`
|
||||
Description string `json:"description" orm:"description" description:"版块简介"`
|
||||
CoverImage string `json:"coverImage" orm:"cover_image" description:"版块封面图URL"`
|
||||
Status string `json:"status" orm:"status" description:"版块状态"`
|
||||
DisplayOrder int `json:"displayOrder" orm:"display_order" description:"排序值"`
|
||||
}
|
||||
|
||||
// ForumBoardViewParams 版块查看参数
|
||||
|
||||
Reference in New Issue
Block a user