Added fields to logged-in response
This commit is contained in:
parent
563d9f9413
commit
ea9955c164
|
@ -273,11 +273,17 @@ func (c *Client) userLogout() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type LoggedInResponseData struct {
|
||||||
|
Username string `json:"username"`
|
||||||
|
}
|
||||||
|
|
||||||
type LoggedInResponseUser struct {
|
type LoggedInResponseUser struct {
|
||||||
LoggedIn bool `json:"logged_in"`
|
ID string `json:"id"`
|
||||||
|
LoggedIn bool `json:"logged_in"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LoggedInResponse struct {
|
type LoggedInResponse struct {
|
||||||
|
Data LoggedInResponseData `json:"data"`
|
||||||
User LoggedInResponseUser `json:"user"`
|
User LoggedInResponseUser `json:"user"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue