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