feat: пагинация
This commit is contained in:
@@ -13,7 +13,7 @@ log = logging.getLogger(__name__)
|
||||
|
||||
async def get_creatives_analytics(
|
||||
self: 'Usecase', input: dto.GetCreativesAnalyticsInput
|
||||
) -> dto.GetCreativesAnalyticsOutput:
|
||||
) -> list[dto.CreativeAnalyticsOutput]:
|
||||
context = await self.ensure_workspace_permission(
|
||||
input.workspace_id, input.user_id, domain.PermissionKey.ANALYTICS_READ
|
||||
)
|
||||
@@ -94,4 +94,4 @@ async def get_creatives_analytics(
|
||||
)
|
||||
)
|
||||
|
||||
return dto.GetCreativesAnalyticsOutput(creatives=result)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user