feat: 历史列表分类改为固定5标签(全部/中篇/短篇/长篇/收藏夹),移除状态筛选,后端保存length改为short
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user