Documentation ¶
Index ¶
Constants ¶
View Source
const ( TYPE_RAW = "raw" TYPE_MAP = "map" TYPE_ARRAY = "array" )
Variables ¶
This section is empty.
Functions ¶
func LogResponse ¶ added in v3.0.39
func LogResponse(logger contract2.LoggerInterface, response *http.Response)
Types ¶
type ResponseBase ¶
type ResponseGetToken ¶
type ResponseGetToken struct { ResponseWork AccessToken string `json:"access_token,omitempty"` ComponentAccessToken string `json:"component_access_token,omitempty"` AuthorizerAccessToken string `json:"authorizer_access_token,omitempty"` AuthorizerRefreshToken string `json:"authorizer_refresh_token,omitempty"` SuiteAccessToken string `json:"suite_access_token,omitempty"` ProviderAccessToken string `json:"provider_access_token,omitempty"` ExpiresIn float64 `json:"expires_in"` }
type ResponseMiniProgram ¶
type ResponseOfficialAccount ¶
type ResponseOfficialAccount struct { ResponseBase ErrCode int `json:"errcode,omitempty"` ErrMsg string `json:"errmsg,omitempty"` ResultCode string `json:"resultcode,omitempty"` ResultMsg string `json:"resultmsg,omitempty"` }
type ResponseOpenPlatform ¶
type ResponseOpenPlatform struct { ResponseBase ErrCode int `json:"errcode,omitempty"` ErrMsg string `json:"errmsg,omitempty"` }
type ResponsePayment ¶
type ResponsePayment struct { ResponseBase ReturnCode string `xml:"return_code,omitempty" json:"return_code"` ReturnMsg string `xml:"return_msg,omitempty" json:"return_msg,omitempty"` ResultCode string `xml:"result_code,omitempty" json:"result_code"` // 是 String(16) SUCCESS/FAIL ErrCode string `xml:"err_code,omitempty" json:"err_code,omitempty"` // 否 String(32) SYSTEMERROR--系统错误 ErrMsg string `xml:"errmsg,omitempty" json:"errmsg,omitempty"` ErrCodeDes string `xml:"err_code_des,omitempty" json:"err_code_des,omitempty"` }
type ResponseWork ¶
type ResponseWork struct { ResponseBase ErrCode int `json:"errcode,omitempty"` ErrMsg string `json:"errmsg,omitempty"` }
func (ResponseWork) Error ¶ added in v3.2.0
func (r ResponseWork) Error() string
func (ResponseWork) IsError ¶ added in v3.2.0
func (r ResponseWork) IsError() bool
Click to show internal directories.
Click to hide internal directories.