mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 12:52:27 +08:00
15 lines
352 B
Go
15 lines
352 B
Go
package credential
|
|
|
|
import "context"
|
|
|
|
// AccessTokenHandle AccessToken 接口
|
|
type AccessTokenHandle interface {
|
|
GetAccessToken() (accessToken string, err error)
|
|
}
|
|
|
|
// AccessTokenContextHandle AccessToken 接口
|
|
type AccessTokenContextHandle interface {
|
|
AccessTokenHandle
|
|
GetAccessTokenContext(ctx context.Context) (accessToken string, err error)
|
|
}
|