Files
wechat_ipad_pro/clientsdk/baseinfo/otherdefine.go
2026-02-17 13:06:23 +08:00

52 lines
1006 B
Go

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
}