Documentation ¶
Index ¶
Constants ¶
View Source
const ( Success = 0 ErrSystem int = iota + 100 ErrMissParams ErrMissPerms ErrNotFound ErrNoLogin ErrInvalidToken ErrAuth )
Variables ¶
This section is empty.
Functions ¶
func GetGlobalMsg ¶
Types ¶
type JsonResponse ¶
type JsonResponse struct { Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` }
func CreateJsonResponse ¶
func CreateJsonResponse(code int, msg string, data interface{}) *JsonResponse
func FailBean ¶
func FailBean(code int, msg string) *JsonResponse
func SuccessBean ¶
func SuccessBean(data interface{}) *JsonResponse
Click to show internal directories.
Click to hide internal directories.