Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = 200 // Success NotLoggedIn = 1000 // 未登录 ParameterIllegal = 1001 // 参数不合法 ServerError = 1004 // 系统错误 NotData = 1005 // 没有数据 ModelAddError = 1006 // 添加错误 ModelDeleteError = 1007 // 删除错误 ModelStoreError = 1008 // 存储错误 OperationFailure = 1009 // 操作失败 RoutingNotExist = 1010 // 路由不存在 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonResult ¶
type JsonResult struct { Code uint32 `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` }
func Response ¶
func Response(code uint32, message string, data interface{}) JsonResult
Click to show internal directories.
Click to hide internal directories.