result

package
v0.0.0-...-3f3ae68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHttpResult

func AuthHttpResult(r *http.Request, w http.ResponseWriter, resp interface{}, err error)

授权的http方法

func HttpResult

func HttpResult(r *http.Request, w http.ResponseWriter, resp interface{}, key []byte, inv []byte, err error)

http返回

func ParamErrorResult

func ParamErrorResult(r *http.Request, w http.ResponseWriter, err error)

http 参数错误返回

Types

type NullJson

type NullJson struct{}

type ResponseErrorBean

type ResponseErrorBean struct {
	Code uint32 `json:"code"`
	Msg  string `json:"msg"`
}

func Error

func Error(errCode uint32, errMsg string) *ResponseErrorBean

type ResponseSuccessBean

type ResponseSuccessBean struct {
	Code uint32      `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

func Success

func Success(data interface{}) *ResponseSuccessBean

Jump to

Keyboard shortcuts

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