response

package
v0.0.0-...-b2a22a5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	ErrCode int         `json:"errCode"`
	ErrMsg  string      `json:"errMsg"`
	Data    interface{} `json:"data"`
}

func GetCustomRes

func GetCustomRes(err ecode.BizErr, data interface{}) *Result

GetCustomRes 自定义返回

func GetErrRes

func GetErrRes(err ecode.BizErr) *Result

GetErrRes 失败返回

func GetSuccRes

func GetSuccRes(data interface{}) *Result

GetSuccRes 成功返回

Jump to

Keyboard shortcuts

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