From 255aa253ee25e2bc7f8e1c1c081b46f3c386bd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E9=BE=99?= Date: Mon, 25 Aug 2025 23:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BC=A0=E9=80=92=E9=87=8F?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/DTO/movie_start_dto.ts | 4 ++++ app/service/Interaction/templateStoryService.ts | 2 ++ app/service/domain/Entities.ts | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/DTO/movie_start_dto.ts b/api/DTO/movie_start_dto.ts index 3e3a06b..89d1c55 100644 --- a/api/DTO/movie_start_dto.ts +++ b/api/DTO/movie_start_dto.ts @@ -196,6 +196,10 @@ export interface CreateMovieProjectResponse { * 创建电影项目V3请求参数 模板生成电影 */ export interface CreateMovieProjectV3Request { + /** 故事梗概 */ + script: string; + /**分类 */ + category: string; /** 用户ID */ user_id: string; /** 模式:auto | manual */ diff --git a/app/service/Interaction/templateStoryService.ts b/app/service/Interaction/templateStoryService.ts index d6ca392..b7fa795 100644 --- a/app/service/Interaction/templateStoryService.ts +++ b/app/service/Interaction/templateStoryService.ts @@ -301,6 +301,8 @@ export const useTemplateStoryServiceHook = (): UseTemplateStoryService => { setIsLoading(true); const params: CreateMovieProjectV3Request = { + script: selectedTemplate?.generateText || "", + category: selectedTemplate?.category || "", user_id, mode, resolution, diff --git a/app/service/domain/Entities.ts b/app/service/domain/Entities.ts index 5c8f186..9c17320 100644 --- a/app/service/domain/Entities.ts +++ b/app/service/domain/Entities.ts @@ -140,9 +140,11 @@ export interface StoryTemplateEntity { image_url: string[]; /** 故事模板概览*/ generateText: string; + /** 故事分类 */ + category: string; /** 故事模板ID */ template_id: string; - /**故事角色 */ + /**故事角色 */ storyRole: { /**角色名 */ role_name: string;