interfaces

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL