Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Message string `json:"message"` Model string `json:"model,omitempty"` Payload interface{} `json:"payload,omitempty"` }
Response represents the default api response struct Message shows action information Payload contains the response model
func NewResponse ¶
NewResponse can be used for create Response struct
Click to show internal directories.
Click to hide internal directories.