feat: add /auth/me route
This commit is contained in:
@@ -37,6 +37,7 @@ __all__ = (
|
||||
'FetchViewsInputManually',
|
||||
'FetchViewsManuallyOutput',
|
||||
'UpdateViewsManuallyInput',
|
||||
'UserOutput',
|
||||
)
|
||||
|
||||
from .creative import (
|
||||
@@ -78,6 +79,7 @@ from .target_channel import (
|
||||
)
|
||||
from .telegram_login import TelegramLoginInput
|
||||
from .validate_login_token import ValidateLoginTokenInput, ValidateLoginTokenOutput
|
||||
from .user import UserOutput
|
||||
from .views import (
|
||||
FetchViewsInputManually,
|
||||
FetchViewsManuallyOutput,
|
||||
|
||||
10
src/dto/user.py
Normal file
10
src/dto/user.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import uuid
|
||||
|
||||
import pydantic
|
||||
|
||||
|
||||
class UserOutput(pydantic.BaseModel):
|
||||
id: uuid.UUID
|
||||
telegram_id: int
|
||||
username: str | None
|
||||
|
||||
Reference in New Issue
Block a user