eb4645314d
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production Runtime Images (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
feat: 成片中心后端升级(封面生成/复核/批量下载)
34 lines
1.0 KiB
Python
Executable File
34 lines
1.0 KiB
Python
Executable File
from __future__ import annotations
|
|
|
|
from typing import Protocol
|
|
|
|
from packages.domain import GeneratedVideo
|
|
|
|
|
|
class GeneratedVideoRepository(Protocol):
|
|
def create(self, video: GeneratedVideo) -> GeneratedVideo: ...
|
|
|
|
def get(self, video_id: str) -> GeneratedVideo | None: ...
|
|
|
|
def list_by_project(self, project_id: str) -> list[GeneratedVideo]: ...
|
|
|
|
def list_by_generation_task(self, generation_task_id: str) -> list[GeneratedVideo]: ...
|
|
|
|
def list_by_batch(self, batch_id: str) -> list[GeneratedVideo]: ...
|
|
|
|
def list_paginated(
|
|
self,
|
|
*,
|
|
project_id: str | None = None,
|
|
status: str | None = None,
|
|
review_status: str | None = None,
|
|
page: int = 1,
|
|
page_size: int = 20,
|
|
) -> tuple[list[GeneratedVideo], int]: ...
|
|
|
|
def update_review_status(self, video_id: str, review_status: str) -> GeneratedVideo | None: ...
|
|
|
|
def update_thumbnail(self, video_id: str, thumbnail_url: str) -> bool: ...
|
|
|
|
def get_by_ids(self, video_ids: list[str]) -> list[GeneratedVideo]: ...
|