Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李进峰
jiaoyou_doc
Commits
224ee8fe
Commit
224ee8fe
authored
Nov 24, 2023
by
陈宥希
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 自动生成参数导入导出_v20231110.md
parent
16b58998
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
4 deletions
+70
-4
自动生成参数导入导出_v20231110.md
dramaeditor/自动生成参数导入导出_v20231110.md
+70
-4
No files found.
dramaeditor/自动生成参数导入导出_v20231110.md
View file @
224ee8fe
# 自动生
成参数导入导出
# 自动生
成参数导入导出
...
...
@@ -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"
:
"女儿"
}
]
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment