Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient interface { // Get get request 想要将返回值解析出来 就需要传入obj的指针 obj 中必须要有response.CommonError{} Get(uri string) ([]byte, error) // Post post request 想要将返回值解析出来 就需要传入obj的指针 中必须要有response.CommonError{} Post(uri string, data []byte, header map[string]string) ([]byte, error) PostJSON(uri string, params interface{}) ([]byte, error) }
type Store ¶
type Store interface { // GetAccessToken 获取AccessToken GetAccessToken(key string) (string, error) SetAccessToken(key string, accessToken string, expires int64) error // GetJsapiTicket 获取JsapiTicket GetJsapiTicket(key string) (string, error) SetJsapiTicket(key string, jsapiTicket string, expires int64) error }
Click to show internal directories.
Click to hide internal directories.