Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogPost ¶
type BlogPost struct { ID int64 `db:"id" json:"id"` Title string `db:"title" json:"title"` Content string `db:"content" json:"content"` UserID int64 `db:"userId" json:"userId"` Published time.Time `db:"published" json:"published"` Updated time.Time `db:"updated" json:"updated"` CategoryIDs []int64 `json:"categoryIds"` }
type BlogPostResponse ¶
type BlogPostResponse struct { ID int64 `db:"id" json:"id"` Title string `db:"title" json:"title"` Content string `db:"content" json:"content"` UserID int64 `db:"userId" json:"userId"` Published time.Time `db:"published" json:"published"` Updated time.Time `db:"updated" json:"updated"` User UserWithoutPassword `db:"user" json:"user"` Categories []Category `db:"categories" json:"categories"` }
type PostCategory ¶
type User ¶
type User struct { ID int64 `db:"id" json:"id,omitempty"` DisplayName string `db:"displayName" json:"displayName,omitempty"` Email string `db:"email" json:"email,omitempty"` Password string `db:"password" json:"password,omitempty"` Image string `db:"image" json:"image,omitempty"` }
User presents a user entity.
Click to show internal directories.
Click to hide internal directories.