Discover Packages
github.com/CafeKetab/book
internal
models
package
Version:
v0.0.0-...-9f86afd
Opens a new window with list of versions in this module.
Published: May 6, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Author struct {
Id uint64 `json:"id"`
FullName string `json:"full_name"`
}
type Book struct {
Id uint64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
CreatedAt string `json:"created_at,omitempty"`
Publisher Publisher `json:"publisher"`
Language Language `json:"language"`
Authors []Author `json:"authors"`
Categories []Category `json:"categories"`
}
type Category struct {
Id uint64 `json:"id"`
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
}
type Language struct {
Id uint64 `json:"id"`
Name string `json:"name"`
}
type Publisher struct {
Id uint64 `json:"id"`
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.