mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 21:02:25 +08:00
19 lines
327 B
Go
19 lines
327 B
Go
package context
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/silenceper/wechat/v2/miniprogram/config"
|
|
)
|
|
|
|
// Context struct
|
|
type Context struct {
|
|
*config.Config
|
|
|
|
//accessTokenLock 读写锁 同一个AppID一个
|
|
accessTokenLock *sync.RWMutex
|
|
|
|
//accessTokenFunc 自定义获取 access token 的方法
|
|
accessTokenFunc GetAccessTokenFunc
|
|
}
|