From cccd38532903a3f26e698d5e08323b124bddf72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E9=BE=99?= Date: Thu, 7 Aug 2025 14:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A8=A1=E5=BC=8F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=B8=BA'=E8=87=AA=E5=8A=A8'=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9initializeFromProject=E6=96=B9=E6=B3=95=E4=BB=A5?= =?UTF-8?q?=E6=8E=A5=E5=8F=97script=E5=8F=82=E6=95=B0=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4createProject=E6=96=B9=E6=B3=95=E7=9A=84=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=B3=A8=E9=87=8A=E4=BB=A5=E5=8F=8D=E6=98=A0=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E6=A8=A1=E5=BC=8F=E5=AE=9A=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/video_flow.ts | 4 ++-- app/service/Interaction/ScriptService.ts | 2 +- app/service/usecase/ScriptEditUseCase.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/video_flow.ts b/api/video_flow.ts index 3e2e34d..8fc84c5 100644 --- a/api/video_flow.ts +++ b/api/video_flow.ts @@ -695,8 +695,8 @@ export const createMovieProjectV1 = async (request: { script: string; /** 用户ID */ user_id: string; - /** 模式:auto | manual */ - mode: "auto" | "manual"; + /** 模式:automatic | manual */ + mode: "automatic" | "manual"; /** 分辨率:720p | 1080p | 4k */ resolution: "720p" | "1080p" | "4k"; /** 语言 */ diff --git a/app/service/Interaction/ScriptService.ts b/app/service/Interaction/ScriptService.ts index db51ab9..53a8dce 100644 --- a/app/service/Interaction/ScriptService.ts +++ b/app/service/Interaction/ScriptService.ts @@ -51,7 +51,7 @@ export interface UseScriptService { /** 根据用户想法生成剧本并自动创建项目 */ generateScriptFromIdea: (idea: string) => Promise; /** 根据项目ID初始化已有剧本 */ - initializeFromProject: (projectId: string) => Promise; + initializeFromProject: (projectId: string,script:string) => Promise; /** 修改剧本 */ updateScript: (scriptText: string) => Promise; /** 应用剧本到视频生成流程 */ diff --git a/app/service/usecase/ScriptEditUseCase.ts b/app/service/usecase/ScriptEditUseCase.ts index 735ad0f..dea9f6d 100644 --- a/app/service/usecase/ScriptEditUseCase.ts +++ b/app/service/usecase/ScriptEditUseCase.ts @@ -118,14 +118,14 @@ export class ScriptEditUseCase { * @description: 创建项目 * @param prompt 用户提示词 * @param userId 用户ID - * @param mode 模式:auto | manual + * @param mode automatic | manual * @param resolution 分辨率:720p | 1080p | 4k * @returns Promise 返回项目ID */ async createProject( prompt: string, userId: string , - mode: "auto" | "manual" = "auto", + mode: "automatic" | "manual" = "automatic", resolution: "720p" | "1080p" | "4k" = "720p", language: string ) {