Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBookRequest ¶
type Base ¶
type Base struct { CreatedAt time.Time `json:"createdAt" db:"created_at"` UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` }
Base creates the default model that every other model is based on.
type Book ¶
type Book struct { ID int `json:"id" db:"id"` Title string `json:"title" db:"title"` Author string `json:"author" db:"author"` CoverURL string `json:"coverUrl" db:"cover_url"` PostURL sql.NullString `json:"postUrl" db:"post_url"` Base }
Book is the db schema for the books table
type GetBookResponse ¶
type IDResponse ¶
type IDResponse struct {
ID int `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.