helper

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 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