(c *candy.CandyClient, reader *bufio.Reader)
| 334 | } |
| 335 | |
| 336 | func loadFriendList(c *candy.CandyClient, reader *bufio.Reader) { |
| 337 | fmt.Println("---------------加载好友列表--------------------") |
| 338 | defer endSection() |
| 339 | |
| 340 | data, err := c.LoadFriendList() |
| 341 | if err != nil { |
| 342 | e := candy.ErrorParse(err.Error()) |
| 343 | log.Errorf("loadGroupList code:%v error:%v", e.Code, e.Msg) |
| 344 | return |
| 345 | } |
| 346 | |
| 347 | fList, err := candy.DecodeFriendList([]byte(data)) |
| 348 | if err != nil { |
| 349 | e := candy.ErrorParse(err.Error()) |
| 350 | log.Errorf("Decode FriendList code:%v error:%v", e.Code, e.Msg) |
| 351 | return |
| 352 | } |
| 353 | |
| 354 | for index, user := range fList.Users { |
| 355 | log.Debugf("friend%v {ID:%v}", index, user) |
| 356 | } |
| 357 | |
| 358 | log.Debugf("loadFriendList success") |
| 359 | } |
| 360 | |
| 361 | func updateUserPasswd(c *candy.CandyClient, reader *bufio.Reader) { |
| 362 | fmt.Println("---------------更改用户密码--------------------") |
no test coverage detected