(c *candy.CandyClient, reader *bufio.Reader)
| 84 | } |
| 85 | |
| 86 | func logout(c *candy.CandyClient, reader *bufio.Reader) { |
| 87 | fmt.Println("----------------注销---------------------------") |
| 88 | defer endSection() |
| 89 | |
| 90 | err := c.Logout() |
| 91 | if err != nil { |
| 92 | e := candy.ErrorParse(err.Error()) |
| 93 | log.Errorf("Logout code:%v error:%v", e.Code, e.Msg) |
| 94 | return |
| 95 | } |
| 96 | |
| 97 | log.Debugf("Logout success") |
| 98 | } |
| 99 | |
| 100 | func updateUserInfo(c *candy.CandyClient, reader *bufio.Reader) { |
| 101 | fmt.Println("----------------更新用户信息-------------------") |
no test coverage detected