Documentation ¶
Index ¶
- Constants
- func GetBookList() echo.HandlerFunc
- func GetBookSearch() echo.HandlerFunc
- func GetCategoryList() echo.HandlerFunc
- func GetFormatList() echo.HandlerFunc
- func GetHealthCheck() echo.HandlerFunc
- func GetLoginAccount() echo.HandlerFunc
- func GetLoginStatus() echo.HandlerFunc
- func JSONErrorHandler(err error, c echo.Context)
- func PostBookDelete() echo.HandlerFunc
- func PostBookEdit() echo.HandlerFunc
- func PostBookRegist() echo.HandlerFunc
- type APIError
- type Account
Constants ¶
View Source
const ( // API represents the group of API. API = "/api" // APIBook represents the group of book management API. APIBook = API + "/book" // APIBookList is APIBookList = APIBook + "/list" // APIBookSearch is APIBookSearch = APIBook + "/search" // APIBookRegist is APIBookRegist = APIBook + "/new" // APIBookEdit is APIBookEdit = APIBook + "/edit" // APIBookDelete is APIBookDelete = APIBook + "/delete" )
View Source
const ( // APIMaster represents the group of master management API. APIMaster = API + "/master" // APIMasterCategory is APIMasterCategory = APIMaster + "/category" // APIMasterFormat is APIMasterFormat = APIMaster + "/format" )
View Source
const ( // APIAccount represents the group of account management API. APIAccount = API + "/account" // APIAccountLoginStatus is APIAccountLoginStatus = APIAccount + "/loginStatus" // APIAccountLoginAccount is APIAccountLoginAccount = APIAccount + "/loginAccount" )
View Source
const ( // APIHealth is APIHealth = API + "/health" )
Variables ¶
This section is empty.
Functions ¶
func JSONErrorHandler ¶
func JSONErrorHandler(err error, c echo.Context)
JSONErrorHandler is cumstomize error handler
Types ¶
Click to show internal directories.
Click to hide internal directories.