Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 请求错误 ErrorRequestBodyParseFailed = ErrResponse{HttpSc: 400, Error: Err{Error: "request - fail", ErrorCode: "001"}} // 未验证用户错误 ErrorNotAuthUser = ErrResponse{HttpSc: 401, Error: Err{Error: "AuthUser - fail", ErrorCode: "002"}} // DB数据库错误 ErrorDBError = ErrResponse{HttpSc: 500, Error: Err{Error: "DB ops failed", ErrorCode: "003"}} // 网络服务错误 ErrorInternalFaults = ErrResponse{HttpSc: 500, Error: Err{Error: "Internal service error", ErrorCode: "004"}} )
Functions ¶
This section is empty.
Types ¶
type ErrResponse ¶
type SimpleSession ¶
type UserModelInterface ¶
Click to show internal directories.
Click to hide internal directories.