Добавление страницы профиля

This commit is contained in:
2025-12-20 09:59:16 +03:00
parent a3203d713d
commit 3473c31f73
6 changed files with 615 additions and 8 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ from .author import AuthorBase, AuthorCreate, AuthorList, AuthorRead, AuthorUpda
from .genre import GenreBase, GenreCreate, GenreList, GenreRead, GenreUpdate
from .book import BookBase, BookCreate, BookList, BookRead, BookUpdate
from .role import RoleBase, RoleCreate, RoleList, RoleRead, RoleUpdate
from .user import UserBase, UserCreate, UserLogin, UserRead, UserUpdate
from .user import UserBase, UserCreate, UserList, UserRead, UserUpdate, UserLogin
from .token import Token, TokenData
from .combined import (AuthorWithBooks, GenreWithBooks, BookWithAuthors, BookWithGenres,
BookWithAuthorsAndGenres, BookFilteredList)
@@ -36,5 +36,6 @@ __all__ = [
"UserCreate",
"UserRead",
"UserUpdate",
"UserList",
"UserLogin",
]
+6
View File
@@ -59,3 +59,9 @@ class UserUpdate(SQLModel):
email: EmailStr | None = None
full_name: str | None = None
password: str | None = None
class UserList(SQLModel):
"""Список пользователей"""
users: List[UserRead]
total: int