Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpResult ¶
func HttpResult(r *http.Request, w http.ResponseWriter, resp interface{}, err error)
HttpResult http返回
Types ¶
type ResponseError ¶
func Error ¶
func Error(errCode uint32, errMsg string) *ResponseError
type ResponseSuccess ¶
type ResponseSuccess struct { Code uint32 `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` }
func Success ¶
func Success(data interface{}) *ResponseSuccess
Click to show internal directories.
Click to hide internal directories.