Documentation ¶
Index ¶
Constants ¶
View Source
const (
UserAccessTokenKey = "UserAccessToken"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonResponse ¶
type JsonResponse struct { Code int `json:"code"` Message string `json:"message"` TTL int `json:"ttl"` Data interface{} `json:"data"` }
func FailureJson ¶
func FailureJson(code int, msg string, data interface{}) *JsonResponse
func SuccessJson ¶
func SuccessJson(data interface{}) *JsonResponse
Click to show internal directories.
Click to hide internal directories.