Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindResponse ¶ added in v0.1.5
Types ¶
type InnerResponse ¶ added in v0.1.4
type InnerResponse struct {
StatusCode interface{} `json:"statusCode,omitempty"`
// Error code, which is a three part code for product.module.code
Error string `json:"error,omitempty"`
// Error description during failure, usually in English
Message string `json:"message,omitempty"`
// Error description during failure, usually in Chinese
Description string `json:"description,omitempty"`
}
type Response ¶ added in v0.1.3
type Response struct {
InnerResponse `json:",inline"`
// Data returned upon success
ReturnObj interface{} `json:"returnObj"`
}
func (*Response) ParseStatusCode ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.