Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = errors.New("invalid.operate") ErrColumnTypeFail = errors.New("column.type.fail") ErrSearchFail = errors.New("search.item.error") ErrAssert = errors.New("assert.is.fail") ErrExist = errors.New("data.is.exist") ErrRedisNotFind = errors.New("data.not.find.to.redis") ErrRedisSetFail = errors.New("redis.set.fail") ErrIdFail = errors.New("id.error") ErrToken = errors.New("token.create.error") ErrRelationId = errors.New("relation.id.fail") ErrAccess = errors.New("access.bad") ErrNilClass = errors.New("object.is.nil") )
业务常用错误码
View Source
var ( // 一切正常 CodeSuccess = 1000 // 参数类型错误 CodeFail = 1001 // 数据未通过验证 CodeValidateFail = 1002 )
View Source
var ( CodeRdbTokenCurrent = "-current" CodeRdbTokenBackup = "-backup" )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.