90% сеньоров плачат на таких коммитах
This commit is contained in:
@@ -31,7 +31,7 @@ __all__ = (
|
||||
'CreatePlacementInput',
|
||||
'UpdatePlacementInput',
|
||||
'DeletePlacementInput',
|
||||
'PlacementViewsHistoryOutput',
|
||||
'PostViewsHistoryOutput',
|
||||
'GetViewsHistoryInput',
|
||||
'GetViewsHistoryOutput',
|
||||
'UpdateViewsManuallyInput',
|
||||
@@ -123,7 +123,7 @@ from .validate_login_token import ValidateLoginTokenInput, ValidateLoginTokenOut
|
||||
from .views import (
|
||||
GetViewsHistoryInput,
|
||||
GetViewsHistoryOutput,
|
||||
PlacementViewsHistoryOutput,
|
||||
PostViewsHistoryOutput,
|
||||
UpdateViewsManuallyInput,
|
||||
)
|
||||
from .workspace import (
|
||||
|
||||
@@ -2,15 +2,12 @@ import uuid
|
||||
|
||||
import pydantic
|
||||
|
||||
from src.domain.channel import ChannelVerificationStatus
|
||||
|
||||
|
||||
class ChannelOutput(pydantic.BaseModel):
|
||||
id: uuid.UUID
|
||||
telegram_id: int | None
|
||||
title: str | None
|
||||
username: str | None
|
||||
verification_status: ChannelVerificationStatus
|
||||
|
||||
|
||||
class GetChannelsInput(pydantic.BaseModel):
|
||||
|
||||
@@ -4,11 +4,11 @@ import uuid
|
||||
import pydantic
|
||||
|
||||
|
||||
class PlacementViewsHistoryOutput(pydantic.BaseModel):
|
||||
"""История просмотров placement."""
|
||||
class PostViewsHistoryOutput(pydantic.BaseModel):
|
||||
"""История просмотров поста."""
|
||||
|
||||
id: uuid.UUID
|
||||
placement_id: uuid.UUID
|
||||
post_id: uuid.UUID
|
||||
views_count: int
|
||||
fetched_at: datetime.datetime
|
||||
created_at: datetime.datetime
|
||||
@@ -27,7 +27,7 @@ class GetViewsHistoryInput(pydantic.BaseModel):
|
||||
class GetViewsHistoryOutput(pydantic.BaseModel):
|
||||
"""История просмотров."""
|
||||
|
||||
histories: list[PlacementViewsHistoryOutput]
|
||||
histories: list[PostViewsHistoryOutput]
|
||||
|
||||
|
||||
class UpdateViewsManuallyInput(pydantic.BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user