Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonResult ¶
type JsonResult struct { ErrorCode int `json:"errorCode"` Message string `json:"message"` Data interface{} `json:"data"` Success bool `json:"success"` }
func JsonData ¶
func JsonData(data interface{}) *JsonResult
func JsonErrorCode ¶
func JsonErrorCode(code int, message string) *JsonResult
func JsonErrorData ¶
func JsonErrorData(code int, message string, data interface{}) *JsonResult
func JsonErrorMsg ¶
func JsonErrorMsg(message string) *JsonResult
func JsonSuccess ¶
func JsonSuccess() *JsonResult
Click to show internal directories.
Click to hide internal directories.