controller

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

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 GetBookList

func GetBookList() echo.HandlerFunc

GetBookList is

func GetBookSearch

func GetBookSearch() echo.HandlerFunc

GetBookSearch is

func GetCategoryList

func GetCategoryList() echo.HandlerFunc

GetCategoryList is

func GetFormatList

func GetFormatList() echo.HandlerFunc

GetFormatList is

func GetHealthCheck

func GetHealthCheck() echo.HandlerFunc

GetHealthCheck is

func GetLoginAccount

func GetLoginAccount() echo.HandlerFunc

GetLoginAccount is

func GetLoginStatus

func GetLoginStatus() echo.HandlerFunc

GetLoginStatus is

func JSONErrorHandler

func JSONErrorHandler(err error, c echo.Context)

JSONErrorHandler is cumstomize error handler

func PostBookDelete

func PostBookDelete() echo.HandlerFunc

PostBookDelete is

func PostBookEdit

func PostBookEdit() echo.HandlerFunc

PostBookEdit is

func PostBookRegist

func PostBookRegist() echo.HandlerFunc

PostBookRegist is

Types

type APIError

type APIError struct {
	Code    int
	Message string
}

APIError represents

type Account

type Account struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}

Account is struct (TODO)

Jump to

Keyboard shortcuts

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