handler

package
v0.0.0-...-bee458a Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"error"`
}

type RestHandler

type RestHandler interface {
	GetBook(c *gin.Context)
	SearchBook(c *gin.Context)
}

func NewHandler

func NewHandler(book_page_uc book_page.UseCase) RestHandler

type SearchBookReq

type SearchBookReq struct {
	Keyword        string `json:"keyword"`
	SortBy         string `json:"sort"`
	SortDescending bool   `json:"descending"`
}

type SuccessResponse

type SuccessResponse struct {
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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