Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommentCol *mongo.Collection CmtClosureCol *mongo.Collection )
View Source
var ( Client *mongo.Client DB *mongo.Database )
View Source
var ArticleCollection *mongo.Collection
Functions ¶
func CreateIndex ¶
func InitArticle ¶
func InitArticle()
func InitComment ¶
func InitComment()
Types ¶
type CommentClosure ¶
type CommentItem ¶
type CommentItem struct { ArticleID string `bson:"article_id"` Content string `bson:"content"` Degree int8 `bson:"degree"` UserID string `bson:"user_id"` HashID string `bson:"hash_id"` CreateTime bson.DateTime `bson:"create_time"` ChildNum int64 `bson:"child_num"` ParentUID string `bson:"parent_uid"` //@xxx reply_to @xxx }
CommentItem 用以请求comment list
Click to show internal directories.
Click to hide internal directories.