Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookRes ¶
type BookRes struct { ID uint `json:"id"` Title string `json:"title"` Price uint `json:"price"` CoverImageUrl string `json:"cover_image_url"` AuthorName string `json:"author_name"` Description string `json:"description"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Tags []BookTags `json:"tags"` IsAvailable bool `json:"is_available"` }
type CreateBookReq ¶
type CreateBookReq struct { Title string `json:"title" validate:"required,max=200"` Price uint `json:"price" validate:"required"` FilePath string `json:"file_path"` Description string `json:"description"` CoverImagePath string `json:"cover_image_path"` AuthorName string `json:"author_name"` Tags []BookTags `json:"tags"` }
type SearchBooksReq ¶
type SearchBooksRes ¶
type SearchBooksRes struct { Books []BookRes `json:"books"` Pagination models.PaginatieRes `json:"pagination"` }
Click to show internal directories.
Click to hide internal directories.