Commit a19ab7b9 authored by yaoke.yk's avatar yaoke.yk

feat(storyboard): persist scene refs and video prompts

parent b9d8f02b
...@@ -98,7 +98,7 @@ public class StoryboardController { ...@@ -98,7 +98,7 @@ public class StoryboardController {
public ApiResponse<Map<String, String>> generatePrompt(@PathVariable Long projectId, public ApiResponse<Map<String, String>> generatePrompt(@PathVariable Long projectId,
@PathVariable Long storyboardId) { @PathVariable Long storyboardId) {
Long tenantId = TenantContext.get(); Long tenantId = TenantContext.get();
String prompt = storyboardService.generatePrompt(storyboardId, tenantId); Map<String, String> body = Map.of("prompt", storyboardService.generatePrompt(storyboardId, tenantId));
return ApiResponse.success(Map.of("prompt", prompt)); return ApiResponse.success(body);
} }
} }
...@@ -30,4 +30,6 @@ public interface StoryboardPipelineService { ...@@ -30,4 +30,6 @@ public interface StoryboardPipelineService {
* AI 根据分镜剧本信息生成视频描述提示词(分时段影视风格) * AI 根据分镜剧本信息生成视频描述提示词(分时段影视风格)
*/ */
String generatePrompt(Long storyboardId, Long tenantId); String generatePrompt(Long storyboardId, Long tenantId);
List<Storyboard> populateMissingVideoPromptsByEpisode(Long episodeId, Long tenantId);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment