Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Title string `json:"title"` Content string `json:"content"` AuthorID bson.ObjectId `bson:"authorId" json:"authorId"` CreatedAt time.Time `bson:"createdAt" json:"createdAt"` UpdateAt *time.Time `bson:"updatedAt" json:"updatedAt"` UpdatedByID *bson.ObjectId `bson:"updatedById" json:"updatedById"` }
func CreatePost ¶
Click to show internal directories.
Click to hide internal directories.