From 224ee8fe120aacb2162fb20ded545c3ede2d22b3 Mon Sep 17 00:00:00 2001 From: 陈宥希 Date: Fri, 24 Nov 2023 15:17:11 +0800 Subject: [PATCH] Replace 自动生成参数导入导出_v20231110.md --- dramaeditor/自动生成参数导入导出_v20231110.md | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 69 insertions(+), 3 deletions(-) diff --git "a/dramaeditor/\350\207\252\345\212\250\347\224\237\346\210\220\345\217\202\346\225\260\345\257\274\345\205\245\345\257\274\345\207\272_v20231110.md" "b/dramaeditor/\350\207\252\345\212\250\347\224\237\346\210\220\345\217\202\346\225\260\345\257\274\345\205\245\345\257\274\345\207\272_v20231110.md" index 18ee8b1..6fa72f5 100644 --- "a/dramaeditor/\350\207\252\345\212\250\347\224\237\346\210\220\345\217\202\346\225\260\345\257\274\345\205\245\345\257\274\345\207\272_v20231110.md" +++ "b/dramaeditor/\350\207\252\345\212\250\347\224\237\346\210\220\345\217\202\346\225\260\345\257\274\345\205\245\345\257\274\345\207\272_v20231110.md" @@ -65,9 +65,9 @@ curl --location --request GET 'https://juben.jiaoyou365.com/api/juben/aigc/expor **RequestParam:** -| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 | -| ------ | ------- | ------ | -------- | ------------ | -| id | Integer | 2701 | 是 | 作品的项目id | +| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 | +| ------ | ------- | ------ | -------- | ---------------------- | +| id | Integer | 2701 | 是 | 要导入到的作品的项目id | **RequestFormData:** @@ -96,3 +96,69 @@ curl --location --request POST 'https://juben.jiaoyou365.com/api/juben/aigc/impo +## **导出的参数文件格式 - JSON** + +每个项目导出为一个文件,包含setting对象(故事背景)、themes列表(故事中的所有主题)、scenarios列表(故事中的所有大纲); + +setting对象包含属性setting(故事背景内容)、player(故事的玩家角色名); + +themes列表的每个元素包含id(主题原来的内部id)、theme(主题内容)、entryPlotNumber(主题的入口剧情点在本故事中的剧情点编号(如有)); + +scenarios列表的每个元素包含id(与themes列表中的id关联)、plotNumber(大纲所对应的剧情点在本故事中的剧情点编号)、scenario(大纲内容)、roleList(该大纲中出现的角色列表)。 + + + +每个在scenarios列表中出现的themeId都必须能在themes列表中出现的id中找到。 + +themes列表、scenarios列表以及setting对象中的两个参数均可空,但列表和对象本身必须显式写出 + +```json +{ + "setting":{ + "setting":"一个养女儿的游戏", + "player":"玩家" + }, + "themes":[ + { + "id":340, + "theme":"一个主题", + }, + { + "id":341, + "theme":"另一个主题" + }, + { + "id":342, + "theme":"主题", + "entryPlotNumber":"1-1" + } + ], + "scenarios":[ + { + "themeId":340, + "plotNumber":"1-1-1", + "scenario":"大纲1-1", + "roleList":"妻子|女儿" + }, + { + "themeId":341, + "plotNumber":"1-1-2", + "scenario":"大纲1-2", + "roleList":"女儿|妻子" + }, + { + "themeId":342, + "plotNumber":"1-1", + "scenario":"大纲1", + "roleList":"妻子" + }, + { + "themeId":342, + "plotNumber":"1-2", + "scenario":"大纲2", + "roleList":"女儿" + } + ] +} +``` + -- libgit2 0.27.1