Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct { BlogID primitive.ObjectID `json:"BlogID" bson:"BlogID"` AuthorID string `json:"AuthorID" bson:"AuthorID"` AuthorName string `json:"AuthorName" bson:"AuthorName"` CreateTime int64 `json:"CreateTime" bson:"CreateTime"` Title string `json:"Title" bson:"Title"` Abstract string `json:"Abstract" bson:"Abstract"` Content string `json:"Content" bson:"Content"` }
Blog 博客
type Comment ¶
type Comment struct { // The ID of the Blog BlogID primitive.ObjectID `json:"BlogID" bson:"BlogID"` // The ID of the owner OwnID string `json:"OwnID" bson:"OwnID"` // The name of the one who comments OwnName string `json:"ownName" bson:"ownName"` // The time of the comment CommentTime int64 `json:"commentTime" bson:"commentTime"` // The content of the comment Content string `json:"content" bson:"content"` }
Comment 评论类型
type CommentBody ¶
type RegistBody ¶
type Response ¶
type Response struct { // true for success and false for failure State bool `json:"state"` // the return message of the interfaces Response interface{} `json:"response"` }
Click to show internal directories.
Click to hide internal directories.