Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveInfo ¶
type Comment ¶
type Comment struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Content string `bson:"content,omitempty" json:"content"` TopicID bson.ObjectId `bson:"topic_id,omitempty" json:"topicID"` UserID bson.ObjectId `bson:"user_id,omitempty" json:"userID"` CreatedAt time.Time `bson:"created_at,omitempty" json:"createdAt"` UpdatedAt time.Time `bson:"updated_at,omitempty" json:"updatedAt"` }
User struct
type QFile ¶
type QFile struct { ID bson.ObjectId `bson:"_id" json:"id"` Name string `bson:"key" json:"key"` Hash string `bson:"hash" json:"hash"` FSize int64 `bson:"fsize" json:"fsize"` Bucket string `bson:"bucket" json:"bucket"` CreatedAt time.Time `bson:"created_at" json:"createdAt"` UpdatedAt time.Time `bson:"updated_at" json:"updatedAt"` }
type Topic ¶
type Topic struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Title string `bson:"title,omitempty" json:"title"` Description string `bson:"description,omitempty" json:"description"` Content string `bson:"content,omitempty" json:"content"` View int `bson:"view,omitempty" json:"view"` UserID bson.ObjectId `bson:"user_id,omitempty" json:"userID"` CreatedAt time.Time `bson:"created_at,omitempty" json:"createdAt"` UpdatedAt time.Time `bson:"updated_at,omitempty" json:"updatedAt"` }
Topic struct
type User ¶
type User struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Name string `bson:"name,omitempty" json:"name"` Description string `bson:"description,omitempty" json:"description"` Email string `bson:"email,omitempty" json:"email"` Password string `bson:"password,omitempty" json:"password"` Status int `bson:"status,omitempty" json:"status"` Admin bool `bson:"admin,omitempty" json:"admin"` Avatar string `bson:"avatar,omitempty" json:"avatar"` CreatedAt time.Time `bson:"created_at,omitempty" json:"createdAt"` UpdatedAt time.Time `bson:"updated_at,omitempty" json:"updatedAt"` }
User struct
Click to show internal directories.
Click to hide internal directories.