Add an user management page for admins
This commit is contained in:
@@ -73,3 +73,16 @@ type CollectionListBookItemGet struct {
|
||||
Title string `json:"title"`
|
||||
CoverPath string `json:"coverPath"`
|
||||
}
|
||||
|
||||
type UsersGet struct {
|
||||
Count int64 `json:"count"`
|
||||
Users []UserGet `json:"users"`
|
||||
}
|
||||
|
||||
type UserGet struct {
|
||||
ID uint `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Admin bool `json:"admin"`
|
||||
AddedBooksCount int64 `json:"addedbookscount"`
|
||||
UserBooksCount int64 `json:"userbookscount"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user