gateway: remove omitempty json struct tag from UserResponse
This commit is contained in:
parent
620bae68df
commit
b37eddbe8b
|
@ -153,10 +153,10 @@ func (h *UserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserResponse struct {
|
type UserResponse struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id"`
|
||||||
UserName string `json:"username,omitempty"`
|
UserName string `json:"username"`
|
||||||
Tokens []string `json:"tokens,omitempty"`
|
Tokens []string `json:"tokens"`
|
||||||
LinkedAccounts []*LinkedAccountResponse `json:"linked_accounts,omitempty"`
|
LinkedAccounts []*LinkedAccountResponse `json:"linked_accounts"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LinkedAccountResponse struct {
|
type LinkedAccountResponse struct {
|
||||||
|
|
Loading…
Reference in New Issue