GetAllFriends 获取所有好友信息
()
| 53 | |
| 54 | // GetAllFriends 获取所有好友信息 |
| 55 | func (c *Cache) GetAllFriends() map[uint32]*entity.User { |
| 56 | friends := make(map[uint32]*entity.User, 64) |
| 57 | rangeCacheOf[entity.User](c, func(k uint32, friend *entity.User) bool { |
| 58 | friends[k] = friend |
| 59 | return true |
| 60 | }) |
| 61 | return friends |
| 62 | } |
| 63 | |
| 64 | // GetGroupInfo 获取群信息 |
| 65 | func (c *Cache) GetGroupInfo(groupUin uint32) *entity.Group { |
no test coverage detected