controller

package
v0.0.0-...-b2ba615 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	STATUS_OK    = 20000
	STATUS_ERROR = 40000
)

Variables

This section is empty.

Functions

func BaseResponse

func BaseResponse(c echo.Context, success bool, code int, message string, payload interface{}) error

func ResolvePageParameter

func ResolvePageParameter(pageNo int, pageSize int) (int, int)

Types

type AreaController

type AreaController struct {
	Base *BaseController
}

func (*AreaController) GetAreaByID

func (ctx *AreaController) GetAreaByID(c echo.Context) error

func (*AreaController) GetAreas

func (ctx *AreaController) GetAreas(c echo.Context) error

type AreaForm

type AreaForm struct {
	PageSize int    `query:"page_size"`
	PageNo   int    `query:"page_no"`
	Query    string `query:"query"`
	Filter   string `query:"filter"`
}

type AttachmentController

type AttachmentController struct {
	Base *BaseController
}

func (*AttachmentController) Upload

func (ctx *AttachmentController) Upload(c echo.Context) error

func (*AttachmentController) Uploads

func (ctx *AttachmentController) Uploads(c echo.Context) error

type BaseController

type BaseController struct {
	Conf    *config.Config
	Service *service.BaseService
}

type BaseResponseJSON

type BaseResponseJSON struct {
	Success bool        `json:"success"`
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Payload interface{} `json:"payload"`
}

type CodeController

type CodeController struct {
	Base *BaseController
}

func (*CodeController) ConvertCoding

func (ctx *CodeController) ConvertCoding(c echo.Context) error

type CodeForm

type CodeForm struct {
	Method string `json:"method" form:"method"`
	Source string `json:"source" form:"source"`
}

type MathController

type MathController struct {
	Base *BaseController
}

func (*MathController) ConvertHexadecimal

func (ctx *MathController) ConvertHexadecimal(c echo.Context) error

type MathForm

type MathForm struct {
	Method string `json:"method" form:"method"`
	Source string `json:"source" form:"source"`
}

type QRCodeController

type QRCodeController struct {
	Base *BaseController
}

func (*QRCodeController) Decode

func (ctx *QRCodeController) Decode(c echo.Context) error

func (*QRCodeController) Encode

func (ctx *QRCodeController) Encode(c echo.Context) error

Jump to

Keyboard shortcuts

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