1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

Improve user API responses

This commit is contained in:
Frédéric Guillot 2017-12-29 13:53:02 -08:00
parent 7c19febd73
commit 0f053b07a5
3 changed files with 51 additions and 63 deletions

View file

@ -14,13 +14,13 @@ type User struct {
ID int64 `json:"id"`
Username string `json:"username"`
Password string `json:"password,omitempty"`
IsAdmin bool `json:"is_admin,omitempty"`
Theme string `json:"theme,omitempty"`
Language string `json:"language,omitempty"`
Timezone string `json:"timezone,omitempty"`
EntryDirection string `json:"entry_sorting_direction,omitempty"`
IsAdmin bool `json:"is_admin"`
Theme string `json:"theme"`
Language string `json:"language"`
Timezone string `json:"timezone"`
EntryDirection string `json:"entry_sorting_direction"`
LastLoginAt *time.Time `json:"last_login_at,omitempty"`
Extra map[string]string `json:"-"`
Extra map[string]string `json:"extra"`
}
// NewUser returns a new User.