first commit
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package baseinfo
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
// QrcodeInfo QrcodeInfo
|
||||
type QrcodeInfo struct {
|
||||
// QrCodeUUID 获取二维码返回的UUID
|
||||
QrCodeUUID string
|
||||
// QrCodeKey 获取二维码返回的AesKey
|
||||
QrCodeKey []byte
|
||||
// QrCodePassword 扫码成功用户返回的伪密码
|
||||
QrCodePassword string
|
||||
// QrCodePassword 扫码成功用户返回的微信Id
|
||||
QrCodeWxId string
|
||||
|
||||
CheckFunc sync.Once
|
||||
|
||||
CancelFunc context.CancelFunc
|
||||
// 检查间隔时间
|
||||
CheckIntervalTime int
|
||||
|
||||
// CheckTimer
|
||||
CheckTimer *time.Timer
|
||||
CheckEnd bool
|
||||
}
|
||||
|
||||
type FavInfoCache struct {
|
||||
// 用于判断是否重复
|
||||
lastFavID uint32
|
||||
lastFavUpdateTime uint32
|
||||
}
|
||||
|
||||
func (f *FavInfoCache) LastFavUpdateTime() uint32 {
|
||||
return f.lastFavUpdateTime
|
||||
}
|
||||
|
||||
func (f *FavInfoCache) SetLastFavUpdateTime(lastFavUpdateTime uint32) {
|
||||
f.lastFavUpdateTime = lastFavUpdateTime
|
||||
}
|
||||
|
||||
func (f *FavInfoCache) LastFavID() uint32 {
|
||||
return f.lastFavID
|
||||
}
|
||||
|
||||
func (f *FavInfoCache) SetLastFavID(lastFavID uint32) {
|
||||
f.lastFavID = lastFavID
|
||||
}
|
||||
Reference in New Issue
Block a user