helper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheRedisSection = "ripple"
	CacheSeconds      = 20 * time.Minute
)
View Source
const (
	ErrorCode                     = 500 + iota //500
	ErrorCodeParamsValidateFailed              //501
)
View Source
const (
	ErrorMsgParamsValidateFailed string = "参数校验失败"
)
View Source
const (
	SuccessCode = 200 + iota //200
)

Variables

This section is empty.

Functions

func ErrorJSON

func ErrorJSON(msg interface{}, code int) interface{}

func SuccessJSON

func SuccessJSON(data interface{}) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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