Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MissParam = def(9000, "参数错误") VerificationFialed = def(9001, "校验失败") SystemError = def(9002, "系统错误") NotLogin = def(9100, "用户未登录") NoPhoneBound = def(9101, "用户未绑定手机号") NoPermission = def(9102, "没有权限进行操作") )
View Source
var ( ID int32 // 服务编号,从100开始,最大支持999 Name string // 服务名称,与git库,servic名称等保持一致 Messages ErrorMessages = ErrorMessages{} // 存储所有错误定义,其中包含通用错误 )
Functions ¶
func ParseError ¶
Types ¶
type ErrorLevel ¶
type ErrorLevel int32
错误等级
var ( LogicErr ErrorLevel = 1 SystemErr ErrorLevel = 2 )
Click to show internal directories.
Click to hide internal directories.