feat(users): add preference to self
This commit is contained in:
parent
7ca5f5753f
commit
1f6fa6d370
1 changed files with 12 additions and 10 deletions
|
@ -625,6 +625,7 @@ type SelfResp struct {
|
|||
Role string `json:"role"`
|
||||
Quota *userstore.Quota `json:"quota"`
|
||||
UsedSpace int64 `json:"usedSpace,string"`
|
||||
Preferences *userstore.Preferences `json:"preferences"`
|
||||
}
|
||||
|
||||
func (h *MultiUsersSvc) Self(c *gin.Context) {
|
||||
|
@ -646,6 +647,7 @@ func (h *MultiUsersSvc) Self(c *gin.Context) {
|
|||
Role: claims[q.RoleParam],
|
||||
Quota: user.Quota,
|
||||
UsedSpace: user.UsedSpace,
|
||||
Preferences: user.Preferences,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue