Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ERROR ERROR ERROR = -999 // SUCCESS SUCCESS SUCCESS = 0 )
View Source
const ( // CodeOK CodeOK CodeOK = 0 // CodeErr CodeErr CodeErr = 500 // 内部错误 // CodeErr301 CodeErr301 CodeErr301 = 301 // 未授权 // CodeErr401 CodeErr401 CodeErr401 = 401 // 拒绝访问 // CodeErr404 CodeErr404 CodeErr404 = 404 // 没有找到 // CodeParamErr CodeParamErr CodeParamErr = 501 // 入参错误 // CodeSQLErr CodeSQLErr CodeSQLErr = 502 // sql 错误 // MsgOK MsgOK MsgOK = "操作成功" // MsgErr MsgErr MsgErr = "操作失败" // MsgErr301 MsgErr301 MsgErr301 = "未授权!" // MsgErr401 MsgErr401 MsgErr401 = "拒绝访问!" // MsgErr404 MsgErr404 MsgErr404 = "没有找到!" )
View Source
const (
// ApplicationJSON ApplicationJSON
ApplicationJSON = "application/json"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomError ¶
CustomError CustomError
Click to show internal directories.
Click to hide internal directories.