result

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpResult

func HttpResult(ctx *gin.Context, resp interface{}, err error)

HttpResult HTTP Result

func ParamErrorResult

func ParamErrorResult(ctx *gin.Context, err error)

ParamErrorResult Param Error Result

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,omitempty"`
}

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