Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminComment ¶
type AdminComment struct { Id string // 文章信息 PostInfo PostInfo // 评论的内容 Content string // 用户信息 UserInfo UserInfo4Comment // 该评论下的所有回复的内容 Replies []AdminReply ApprovalStatus bool // 评论时间 CreatedAt int64 // 修改时间 UpdatedAt int64 }
type AdminReply ¶
type AdminReply struct { ReplyId string // 回复内容 Content string // 被回复的回复 Id ReplyToId string // 用户信息 UserInfo UserInfo4Reply // 被回复用户的信息 RepliedUserInfo UserInfo4Reply ApprovalStatus bool // 回复时间 CreatedAt int64 // 修改时间 UpdatedAt int64 }
type CommentEvent ¶
type CommentReply ¶
type CommentReply struct { ReplyId string // 回复内容 Content string // 被回复的回复 Id ReplyToId string // 用户信息 UserInfo UserInfo4Reply // 被回复用户的信息 RepliedUserInfo UserInfo4Reply ApprovalStatus bool CreatedAt int64 }
type CommentReplyWithPostInfo ¶
type CommentReplyWithPostInfo struct { CommentReply PostInfo PostInfo }
type CommentWithReplies ¶
type CommentWithReplies struct { Comment Replies []CommentReply }
type LatestComment ¶
type Page ¶
func (*Page) SortToBson ¶
type PostEvent ¶
type PostEvent struct { PostId string `json:"post_id"` AddedCategoryId []string `json:"added_category_id,omitempty"` DeletedCategoryId []string `json:"deleted_category_id,omitempty"` AddedTagId []string `json:"added_tag_id,omitempty"` DeletedTagId []string `json:"deleted_tag_id,omitempty"` NewFileId string `json:"new_file_id,omitempty"` OldFileId string `json:"old_file_id,omitempty"` Type string `json:"type"` }
type ReplyWithCId ¶
type UserInfo4Comment ¶
type UserInfo4Comment UserInfo
type UserInfo4Reply ¶
type UserInfo4Reply UserInfo
Click to show internal directories.
Click to hide internal directories.