Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Code int `json:"status"` Status bool Data interface{} `json:"data"` Message string `json:"message"` Error APIError `json:"error"` }
func Error ¶
func Error(errCode int, message string) APIResponse
func Success ¶
func Success(successCode int, message string, data interface{}) APIResponse
Click to show internal directories.
Click to hide internal directories.