Documentation ¶
Index ¶
Constants ¶
View Source
const ApiResponse = "api-response"
Variables ¶
This section is empty.
Functions ¶
func NewJSONResponse ¶
Types ¶
type BasePagingResponse ¶
type BasePagingResponse struct { Count int `json:"count"` CurrentPage int `json:"currentPage"` TotalPage int `json:"totalPages"` Params PagingParams `json:"params"` }
func (BasePagingResponse) Val ¶
func (p BasePagingResponse) Val() interface{}
type Error ¶
type Error struct { Message string `json:"message"` Code int `json:"code"` Errors []ErrorField `json:"errors,omitempty"` }
type ErrorField ¶
type ItemsResponse ¶
type ItemsResponse struct {
Items []interface{} `json:"items"`
}
type PagingParams ¶
type PagingResponse ¶
type PagingResponse struct { Count int `json:"count"` CurrentPage int `json:"currentPage"` TotalPage int `json:"totalPages"` Params PagingParams `json:"params"` Items interface{} `json:"items"` }
func (PagingResponse) Val ¶
func (p PagingResponse) Val() interface{}
type SimplePagingResponse ¶
type SimplePagingResponse struct { CurrentPage int `json:"currentPage"` Next bool `json:"next"` Params PagingParams `json:"params"` }
Click to show internal directories.
Click to hide internal directories.