Documentation ¶
Index ¶
Constants ¶
View Source
const ( NONE_ERROR = iota VERSION_ERROR //版本不正确 ACCOUNT_NOEXIST //账号不存在 PASSWORD_ERROR //密码不正确 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Err ¶
type Err struct { Code int `json:"status_code"` // 错误码 Message string `json:"message"` // 展示给用户看的 Errord error // 保存内部错误信息 Debug interface{} `json:"debug"` Trace string `json:"trace"` // contains filtered or unexported fields }
定义错误
Click to show internal directories.
Click to hide internal directories.