Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct { ID string `json:"id" bson:"_id,omitempty"` Title string `json:"title" bson:"title"` Content string `json:"content" bson:"content"` Author *User `json:"author" bson:"author"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt *time.Time `json:"updatedAt" bson:"updatedAt"` }
type DeleteBlog ¶
type DeleteBlog struct {
BlogID string `json:"blogId" bson:"blogId"`
}
type LoginInput ¶
type User ¶
type User struct { ID string `json:"id" bson:"_id,omitempty"` Username string `json:"username" bson:"username"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt *time.Time `json:"updatedAt" bson:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.