GetFriend 获取好友信息
(uin uint32)
| 47 | |
| 48 | // GetFriend 获取好友信息 |
| 49 | func (c *Cache) GetFriend(uin uint32) *entity.User { |
| 50 | v, _ := getCacheOf[entity.User](c, uin) |
| 51 | return v |
| 52 | } |
| 53 | |
| 54 | // GetAllFriends 获取所有好友信息 |
| 55 | func (c *Cache) GetAllFriends() map[uint32]*entity.User { |
no test coverage detected