dto

package
v0.0.0-...-075c139 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookCreateRequest

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

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

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

type BookResponse struct {
	ID     string `json:"id"`
	Title  string `json:"title"`
	Yop    int16  `json:"yop"`
	Author string `json:"author"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL