|
|
@ -6,6 +6,7 @@ package structs |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"encoding/json" |
|
|
|
"encoding/json" |
|
|
|
|
|
|
|
"time" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// User represents a user
|
|
|
|
// User represents a user
|
|
|
@ -25,6 +26,10 @@ type User struct { |
|
|
|
Language string `json:"language"` |
|
|
|
Language string `json:"language"` |
|
|
|
// Is the user an administrator
|
|
|
|
// Is the user an administrator
|
|
|
|
IsAdmin bool `json:"is_admin"` |
|
|
|
IsAdmin bool `json:"is_admin"` |
|
|
|
|
|
|
|
// swagger:strfmt date-time
|
|
|
|
|
|
|
|
LastLogin time.Time `json:"last_login,omitempty"` |
|
|
|
|
|
|
|
// swagger:strfmt date-time
|
|
|
|
|
|
|
|
Created time.Time `json:"created,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility
|
|
|
|
// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility
|
|
|
|