Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericResponse ¶
type GenericResponse struct {
Status int `json:"status"`
Success bool `json:"success"`
Messages []string `json:"messages"`
Data interface{} `json:"data"`
}
GenericResponse represent the generic response API
func NewGenericResponse ¶
func NewGenericResponse(stsCd, isError int, messages []string, data interface{}) *GenericResponse
NewGenericResponse will create an object that represent the GenericResponse struct
Click to show internal directories.
Click to hide internal directories.