update UserRes
This commit is contained in:
parent
8201b658b2
commit
4d632ed042
|
@ -12,6 +12,7 @@ type User struct {
|
|||
Email string `json:"email"`
|
||||
Status string `json:"status"`
|
||||
Role RoleShort `json:"role"`
|
||||
RequireToChangePassword bool `json:"requireToChangePassword"`
|
||||
Other interface{} `json:"other"`
|
||||
Avatar interface{} `json:"avatar"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
|
|
|
@ -179,6 +179,7 @@ func getResponse(ctx context.Context, user model.DBUser) model.User {
|
|||
Level: roleRaw.Level,
|
||||
IsAdmin: roleRaw.IsAdmin,
|
||||
},
|
||||
RequireToChangePassword: user.RequireToChangePassword,
|
||||
Avatar: user.Avatar,
|
||||
Other: user.Other,
|
||||
CreatedAt: user.CreatedAt,
|
||||
|
|
Loading…
Reference in New Issue