jsonUtils

package
v0.0.0-...-fdfd418 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AppNotInstall = 801
View Source
const AuthError = 401
View Source
const FailureContent = "操作失败"
View Source
const NotFound = 404
View Source
const ResponseFailure = 1
View Source
const ResponseSuccess = 0
View Source
const ServerError = 500
View Source
const SuccessContent = "操作成功"
View Source
const UnauthorizedError = 403

Variables

This section is empty.

Functions

func JsonResponseByErr

func JsonResponseByErr(err error) string

Types

type JsonResponse

type JsonResponse struct{}

func (*JsonResponse) CommonFailure

func (j *JsonResponse) CommonFailure(message string, err ...error) string

func (*JsonResponse) Failure

func (j *JsonResponse) Failure(code int, message string) string

func (*JsonResponse) Success

func (j *JsonResponse) Success(message string, data interface{}) string

Jump to

Keyboard shortcuts

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