zweb

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 added in v1.0.5

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