LoadFriendList 加载好友列表
()
| 235 | |
| 236 | // LoadFriendList 加载好友列表 |
| 237 | func (c *CandyClient) LoadFriendList() (string, error) { |
| 238 | req := &meta.GateLoadFriendListRequest{} |
| 239 | resp, err := c.api.LoadFriendList(context.Background(), req) |
| 240 | if err != nil { |
| 241 | return emptyString, err |
| 242 | } |
| 243 | |
| 244 | friendList := &FriendList{Users: resp.Users} |
| 245 | data, err := encodeJSON(friendList) |
| 246 | if err != nil { |
| 247 | return emptyString, err |
| 248 | } |
| 249 | |
| 250 | return string(data), resp.Header.Error() |
| 251 | } |
| 252 | |
| 253 | // FindUser 支持模糊查询,返回对应用户的列表 |
| 254 | func (c *CandyClient) FindUser(user string) (string, error) { |
nothing calls this directly
no test coverage detected