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

26 lines
2.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主键
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:"软删除时间"` // 软删除时间
}