Documentation ¶
Index ¶
- func BadRequest(code int, err error, log ...bool) mvc.Result
- func ErrorFormat(err error) (code int, msg string)
- func GetErrorMsg(err error) (code int, msg string)
- func MethodError(log ...bool) mvc.Result
- func OK(data interface{}, log ...bool) mvc.Result
- func ParamsError(err error, log ...bool) mvc.Result
- func Result(httpCode int, restData RestData, err error, log ...bool) mvc.Result
- func UnAuth(code int, err error, log ...bool) mvc.Result
- type RestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorFormat ¶ added in v1.0.5
func GetErrorMsg ¶ added in v1.1.0
func MethodError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.