This commit is contained in:
Artem Tsyrulnikov
2025-12-14 14:56:18 +03:00
parent 3f63581029
commit 4f87ff34e4
3 changed files with 10 additions and 3 deletions

View File

@@ -9,9 +9,9 @@ from src import domain
class PlacementOutput(pydantic.BaseModel): class PlacementOutput(pydantic.BaseModel):
id: uuid.UUID id: uuid.UUID
project_id: uuid.UUID project_id: uuid.UUID
project_channel_title: str project_channel_title: str | None
placement_channel_id: uuid.UUID placement_channel_id: uuid.UUID
placement_channel_title: str placement_channel_title: str | None
creative_id: uuid.UUID creative_id: uuid.UUID
creative_name: str creative_name: str
placement_date: datetime.datetime placement_date: datetime.datetime

View File

@@ -40,7 +40,13 @@ usecase = Usecase(
) )
deps.set_usecase(usecase) deps.set_usecase(usecase)
app = FastAPI(lifespan=lifespan, version=settings.logger.APP_VERSION) app = FastAPI(
lifespan=lifespan,
version=settings.logger.APP_VERSION,
swagger_ui_parameters={
'defaultModelsExpandDepth': 0, # Сворачиваем Schemas
},
)
app.add_middleware( app.add_middleware(
CORSMiddleware, CORSMiddleware,

View File

@@ -80,6 +80,7 @@ async def tg_add_project_1(self: 'Usecase', input: dto.ConnectProjectInput) -> d
telegram_id=input.telegram_id, telegram_id=input.telegram_id,
title=input.title, title=input.title,
username=input.username, username=input.username,
verification_status=domain.ChannelVerificationStatus.VERIFIED,
workspace_id=workspace.id, workspace_id=workspace.id,
) )
await self.database.create_channel(channel) await self.database.create_channel(channel)