Files
TrangleAgent/Backend/internal/model/entity/forum_posts.go
2026-01-18 20:35:21 +08:00

32 lines
3.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// =================================================================================
// 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主键
BoardId uint64 `json:"boardId" orm:"board_id" description:"所属版块ID关联 forum_boards.id无外键"` // 所属版块ID关联 forum_boards.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=驳回
IsPinned int `json:"isPinned" orm:"is_pinned" description:"是否置顶0否 1是"` // 是否置顶0否 1是
IsEssence int `json:"isEssence" orm:"is_essence" description:"是否精华0否 1是"` // 是否精华0否 1是
ViewCount uint `json:"viewCount" orm:"view_count" description:"浏览量(冗余)"` // 浏览量(冗余)
LikeCount uint `json:"likeCount" orm:"like_count" description:"点赞数(冗余)"` // 点赞数(冗余)
CommentCount uint `json:"commentCount" orm:"comment_count" description:"评论数(冗余)"` // 评论数(冗余)
CollectCount uint `json:"collectCount" orm:"collect_count" description:"收藏数(冗余,可选)"` // 收藏数(冗余,可选)
LastCommentId uint64 `json:"lastCommentId" orm:"last_comment_id" description:"最后一条评论ID冗余可选"` // 最后一条评论ID冗余可选
LastCommentAt *gtime.Time `json:"lastCommentAt" orm:"last_comment_at" 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:"软删除时间"` // 软删除时间
}