refactor: refactor api project with ruff
This commit is contained in:
@@ -2,7 +2,7 @@ from typing import Optional, List
|
||||
from datetime import datetime
|
||||
from pydantic import EmailStr, Field, TypeAdapter
|
||||
|
||||
from api.db.tables.account import AccountRole,AccountStatus
|
||||
from api.db.tables.account import AccountRole, AccountStatus
|
||||
|
||||
from api.schemas.base import Base
|
||||
|
||||
@@ -19,6 +19,7 @@ class UserUpdate(Base):
|
||||
created_at: Optional[datetime] = None
|
||||
status: Optional[AccountStatus] = None
|
||||
|
||||
|
||||
class AllUser(Base):
|
||||
id: int
|
||||
name: str
|
||||
@@ -35,4 +36,5 @@ class AllUserResponse(Base):
|
||||
amount_count: int
|
||||
amount_pages: int
|
||||
|
||||
|
||||
all_user_adapter = TypeAdapter(List[AllUser])
|
||||
|
||||
Reference in New Issue
Block a user