Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mgo.Database
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID bson.ObjectId `json:"id" bson:"_id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Name string `json:"name"` Description string `json:"description"` BrowseCount uint `json:"browseCount"` Status uint `json:"status"` Content string `json:"content"` Tags []string `json:"tags"` Author Author `json:"author"` Logo string `json:"logo"` }
type User ¶
type User struct { ID bson.ObjectId `json:"id" bson:"_id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Name string `json:"name"` Email string `json:"email"` Signature string `json:"signature"` Avatar string `json:"avatar"` UserName string `json:"username"` PassWord string `json:"password"` }
Click to show internal directories.
Click to hide internal directories.