Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpResponse ¶
type HttpResponse struct { ErrCode int `json:"err_code"` ErrMsg string `json:"err_msg"` Data interface{} `json:"data"` }
func DefError ¶
func DefError(code int, msg string) *HttpResponse
func DefSuccess ¶
func DefSuccess(data interface{}) *HttpResponse
Click to show internal directories.
Click to hide internal directories.