package
Version:
v0.0.0-...-3423bc7
Opens a new window with list of versions in this module.
Published: Nov 19, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Book - represents books table
ToDto - Converts Book database model to BooksDto http json response object
type BookDto struct {
ID uint `json:"id"`
Title string `json:"title"`
Author string `json:"author"`
PublishedDate string `json:"published_date"`
ImageURL string `json:"image_url"`
Description string `json:"description"`
}
BookDto - represents Book http response json
BookDtos - array of BookDto
Books - array of Book
ToDto - Converts Books objects to BookDtos http json response object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.