_const

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GormCachePrefix       = "gorm2cache"
	GormCacheEnablePrefix = "Gorm2Cache:enable"
	GormCacheTTLPrefix    = "Gorm2Cache:ttl"
	GormCacheHitPrefix    = "Gorm2Cache:hit"
)

Variables

View Source
var (
	Failure        = &errors.Message{Code: -1, Msg: "失败", Data: nil}
	Success        = &errors.Message{Code: 0, Msg: "成功", Data: nil}
	ParamError     = &errors.Message{Code: -2, Msg: "参数错误", Data: nil}
	SystemError    = &errors.Message{Code: -3, Msg: "系统异常", Data: nil}
	NoDataReturn   = &errors.Message{Code: -4, Msg: "暂无数据", Data: nil}
	DbConnectError = &errors.Message{Code: -5, Msg: "数据库连接获取失败", Data: nil}
	DataExisted    = &errors.Message{Code: -1003, Msg: "数据已存在", Data: nil}
	DataReferenced = &errors.Message{Code: -4001, Msg: "关联数据不存在,无法进行此操作", Data: nil}
)

服务接口错误返回

Functions

This section is empty.

Types

type EnumCommon

type EnumCommon struct {
	Key   int    `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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