package
Version:
v0.0.0-...-075c139
Opens a new window with list of versions in this module.
Published: May 21, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BookCreateRequest struct {
Title string `json:"title" validate:"required"`
Yop int16 `json:"yop" validate:"min=0,max=2024"`
Author string `json:"author" validate:"required"`
Isbn *string `json:"isbn"`
Page *int `json:"page"`
}
type BookDetailResponse struct {
Title string `json:"title"`
Yop int16 `json:"yop"`
Author string `json:"author"`
Isbn string `json:"isbn"`
Page int `json:"page"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type BookRequest struct {
Title string `json:"title" query:"title"`
Yop int16 `json:"yop" query:"yop"`
Page int `json:"page" query:"page"`
Size int `json:"size" query:"size"`
SortBy string `json:"sortBy" query:"sortBy"`
Asc bool `json:"asc" query:"asc"`
}
type BookResponse struct {
ID string `json:"id"`
Title string `json:"title"`
Yop int16 `json:"yop"`
Author string `json:"author"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.