mirror of
https://github.com/silenceper/wechat.git
synced 2026-11-16 05:12:03 +08:00
规范目录
This commit is contained in:
1 parent
9b06954b10
commit
15ebd71a04
75 files changed
+985
-1871
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package context
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/silenceper/wechat/miniprogram/config"
|
||||
)
|
||||
|
||||
// Context struct
|
||||
type Context struct {
|
||||
*config.Config
|
||||
|
||||
//accessTokenLock 读写锁 同一个AppID一个
|
||||
accessTokenLock *sync.RWMutex
|
||||
|
||||
//accessTokenFunc 自定义获取 access token 的方法
|
||||
accessTokenFunc GetAccessTokenFunc
|
||||
}
|
||||
Reference in new issue
Block a user