Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseBody ¶
type ResponseBody struct { Result bool `json:"result"` Data interface{} `json:"data"` Meta map[string]ResponseBodyMetaInterface `json:"meta"` Error string `json:"error"` }
func NewResponseBody ¶
func NewResponseBody(data interface{}) *ResponseBody
func NewResponseBodyError ¶
func NewResponseBodyError(error error) ResponseBody
func NewResponseBodyWithPagination ¶
func NewResponseBodyWithPagination(data interface{}, total int64, count int) *ResponseBody
type ResponseBodyInterface ¶
type ResponseBodyMetaInterface ¶
type ResponseBodyMetaInterface interface {
GetMetaType() string
}
type ResponseBodyMetaPagination ¶
func (*ResponseBodyMetaPagination) GetMetaType ¶
func (p *ResponseBodyMetaPagination) GetMetaType() string
Click to show internal directories.
Click to hide internal directories.