MCPcopy Index your code
hub / github.com/dearcode/candy / Logout

Method Logout

client/candy.go:119–127  ·  view source on GitHub ↗

Logout 注销登陆

()

Source from the content-addressed store, hash-verified

117
118// Logout 注销登陆
119func (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 更新用户信息, 昵称/头像
130func (c *CandyClient) UpdateUserInfo(user, nickName string, avatar []byte) (int64, error) {

Callers

nothing calls this directly

Calls 2

JsonErrorMethod · 0.80
LogoutMethod · 0.65

Tested by

no test coverage detected