Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorReturn ¶
type ErrorReturn struct { Code int `json:"code"` Msg interface{} `json:"msg"` }
func MakeErrorReturn ¶
func MakeErrorReturn(code int, msg interface{}) ErrorReturn
type SuccessReturn ¶
type SuccessReturn struct { Msg string `json:"msg"` Data interface{} `json:"data"` Error int `json:"error"` }
func MakeSuccessReturn ¶
func MakeSuccessReturn(data interface{}) SuccessReturn
Click to show internal directories.
Click to hide internal directories.