Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResponseSuccessCode = 0 ResponseFailCode = 1 ResponseNotLoginCode = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseFormat ¶
type ResponseFormat struct { Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` }
func NewResponse ¶
func NewResponse(code int, msg string, data interface{}) *ResponseFormat
Click to show internal directories.
Click to hide internal directories.