zweb

package
v1.6.4-0...-ea8c640 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api interface {
	Register(*ghttp.Server)
}

type ApiBase

type ApiBase struct {
}

func (*ApiBase) Error

func (api *ApiBase) Error(msg string, err error) z.Map

func (*ApiBase) ErrorResult

func (api *ApiBase) ErrorResult(msg string, error error, r *ghttp.Request) error

func (*ApiBase) GetToken

func (api *ApiBase) GetToken(r *ghttp.Request) string

func (*ApiBase) Ok

func (api *ApiBase) Ok(data interface{}) z.Map

func (*ApiBase) OkResult

func (api *ApiBase) OkResult(data interface{}, r *ghttp.Request) error

func (*ApiBase) Result

func (api *ApiBase) Result(data interface{}, err error, r *ghttp.Request) error

func (*ApiBase) Result2

func (api *ApiBase) Result2(result *z.Result, r *ghttp.Request) error

Jump to

Keyboard shortcuts

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