global

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserNotFound = Err(4001)
)

Functions

func CheckNoLogParams

func CheckNoLogParams(origin string) bool

CheckNoLogParams 判断是否需要打印入参出参日志, 不需要打印返回true

func Err

func Err(code uint32) (err error)

func SetNoLogParams

func SetNoLogParams(path ...string)

SetNoLogParams 设置不需要打印的路由

func SetNoLogParamsPrefix

func SetNoLogParamsPrefix(path ...string)

SetNoLogParamsPrefix 设置不需要打印入参和出参的路由前缀

func SetNoLogParamsSuffix

func SetNoLogParamsSuffix(path ...string)

SetNoLogParamsSuffix 设置不需要打印的入参和出参的路由后缀

Types

type Pagination

type Pagination struct {
	Total       int64 `json:"total"`
	Count       int64 `json:"count"`
	PerPage     int64 `json:"per_page"`
	CurrentPage int64 `json:"current_page"`
	TotalPages  int64 `json:"total_pages"`
}

type Resp

type Resp struct{}

func (*Resp) Fail

func (res *Resp) Fail(ctx *laya.WebContext, err error)

func (*Resp) RawJSONString

func (res *Resp) RawJSONString(ctx *laya.WebContext, data string)

RawJSONString json 数据返回

func (*Resp) RawString

func (res *Resp) RawString(ctx *laya.WebContext, data string)

RawString raw 数据返回

func (*Resp) Suc

func (res *Resp) Suc(ctx *laya.WebContext, data interface{}, msg ...string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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