resp

package
v0.0.0-...-2eb9458 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlreadyExists

func AlreadyExists(r *ghttp.Request, message string, err ...error)

func BadRequest

func BadRequest(r *ghttp.Request, reason, message string, err ...error)

func Conflict

func Conflict(r *ghttp.Request, reason, message string, err ...error)

func DatabaseError

func DatabaseError(r *ghttp.Request, message string, err ...error)

func Error

func Error(r *ghttp.Request, err *errors.Error)

Error 错误处理

func Forbidden

func Forbidden(r *ghttp.Request, reason, message string, err ...error)

func InternalServer

func InternalServer(r *ghttp.Request, reason, message string, err ...error)

func InvalidArgument

func InvalidArgument(r *ghttp.Request, message string, err ...error)

func NotFound

func NotFound(r *ghttp.Request, reason, message string, err ...error)

func OK

func OK(r *ghttp.Request, data ...interface{})

OK 常规数据的成功处理

func PageOK

func PageOK(r *ghttp.Request, total int, data interface{})

PageOK 列表数据的成功处理

func ServiceUnavailable

func ServiceUnavailable(r *ghttp.Request, reason, message string, err ...error)

func Unauthorized

func Unauthorized(r *ghttp.Request, reason, message string, err ...error)

func UnknownError

func UnknownError(r *ghttp.Request, message string, err ...error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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