Add an user management page for admins

This commit is contained in:
2026-04-30 23:51:11 +02:00
parent d8d7bc9570
commit e29743d5fa
14 changed files with 262 additions and 4 deletions

View File

@@ -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"`
}