Logout 注销登陆
()
| 117 | |
| 118 | // Logout 注销登陆 |
| 119 | func (c *CandyClient) Logout() error { |
| 120 | req := &meta.GateUserLogoutRequest{} |
| 121 | resp, err := c.api.Logout(context.Background(), req) |
| 122 | if err != nil { |
| 123 | return err |
| 124 | } |
| 125 | |
| 126 | return resp.Header.JsonError() |
| 127 | } |
| 128 | |
| 129 | // UpdateUserInfo 更新用户信息, 昵称/头像 |
| 130 | func (c *CandyClient) UpdateUserInfo(user, nickName string, avatar []byte) (int64, error) { |