feat: 历史列表分类改为固定5标签(全部/中篇/短篇/长篇/收藏夹),移除状态筛选,后端保存length改为short

This commit is contained in:
2026-07-21 21:15:31 +08:00
parent 9b496bb42a
commit 3813f91b8d
2 changed files with 26 additions and 85 deletions
@@ -241,13 +241,17 @@ public class EpicScriptDialogueServiceImpl implements EpicScriptDialogueService
? (String) metadata.get("title") : "我的人生剧本");
script.setTheme(theme);
script.setStyle("career");
script.setLength("medium");
script.setLength("short");
script.setConversationId(conversationId);
script.setPlotIntro(fullText);
script.setPlotIntro("");
script.setPlotTurning("");
script.setPlotClimax("");
script.setPlotEnding("");
script.setPlotJson(metadata != null ? metadata : new HashMap<>());
// 短篇小说全量文本保存到 plotJson.fullContent
// 前端 transformToFrontendFormat 通过 plotJson.fullContent 读取完整内容
Map<String, Object> plotJsonMap = metadata != null ? new HashMap<>(metadata) : new HashMap<>();
plotJsonMap.put("fullContent", fullText);
script.setPlotJson(plotJsonMap);
script.setIsSelected(0);
epicScriptService.save(script);