Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIException ¶
type APIException struct { Code int `json:"code"` Success bool `json:"success"` Msg string `json:"msg"` Timestamp int64 `json:"timestamp"` Result interface{} `json:"result"` }
APIException 结构体
func ResponseJson ¶
func ResponseJson(message string, data interface{}, success bool) *APIException
ResponseJson 200 返回
Click to show internal directories.
Click to hide internal directories.