Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MysqlError = ErrorCode{500002, "Mysql错误!"}
View Source
var NoAuth = ErrorCode{400101, "无权限!"}
View Source
var NotLogin = ErrorCode{40100, "未登录!"}
View Source
var ParamsError = ErrorCode{40000, "请求参数错误!"}
View Source
var RedisError = ErrorCode{500001, "Redis错误!"}
View Source
var ServerError = ErrorCode{500000, "服务器错误!"}
Functions ¶
Types ¶
type Response ¶ added in v0.3.0
type Response struct { Message string `json:"message"` Code int `json:"code"` Data interface{} `json:"data"` Description *string `json:"description"` }
func ResponseError ¶ added in v0.3.0
func ResponseOK ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.