GetCachedAllFriendsInfo 获取所有好友信息(缓存)
()
| 73 | |
| 74 | // GetCachedAllFriendsInfo 获取所有好友信息(缓存) |
| 75 | func (c *QQClient) GetCachedAllFriendsInfo() map[uint32]*entity.User { |
| 76 | if c.cache.FriendCacheIsEmpty() { |
| 77 | if err := c.RefreshFriendCache(); err != nil { |
| 78 | return nil |
| 79 | } |
| 80 | } |
| 81 | return c.cache.GetAllFriends() |
| 82 | } |
| 83 | |
| 84 | // GetCachedGroupInfo 获取群信息(缓存) |
| 85 | func (c *QQClient) GetCachedGroupInfo(groupUin uint32) *entity.Group { |
nothing calls this directly
no test coverage detected