helper

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CacheRedisSection = "ripple"
	CacheSeconds      = 3600 //600s
)
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