1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

добавление редисаъ

This commit is contained in:
MoonTestUse1
2025-01-03 16:36:00 +06:00
parent bf0e41c997
commit 9b1af9f069
8 changed files with 255 additions and 86 deletions

View File

@@ -19,4 +19,14 @@ class EmployeeResponse(BaseModel):
last_name: str
department: str
office: str
access_token: str
access_token: str
class Token(BaseModel):
access_token: str
token_type: str
class TokenData(BaseModel):
employee_id: int | None = None
is_admin: bool = False
model_config = ConfigDict(from_attributes=True)