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
jixudong
jiaoyou_doc
Commits
6a69782e
Commit
6a69782e
authored
Aug 25, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档更新
parent
6ad61043
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
1 deletion
+125
-1
work_data_api.md
app_doc/work_data_api.md
+1
-0
intent_search.md
dramaeditor/intent_search.md
+1
-1
创作平台剧本生成接口.md
dramaeditor/创作平台剧本生成接口.md
+123
-0
No files found.
app_doc/work_data_api.md
View file @
6a69782e
...
@@ -168,6 +168,7 @@ SUCCESS:
...
@@ -168,6 +168,7 @@ SUCCESS:
"authorname": // String | 作者名称
"authorname": // String | 作者名称
"aipioneerUsername": // String | 作品ID
"aipioneerUsername": // String | 作品ID
"hot": // Number | 热度
"hot": // Number | 热度
"labels": [] // List<String> | 标签
}
}
]
]
}
}
...
...
dramaeditor/intent_search.md
View file @
6a69782e
...
@@ -2,7 +2,7 @@ BaseURL: https://hw-gz26.heyqiwu.cn
...
@@ -2,7 +2,7 @@ BaseURL: https://hw-gz26.heyqiwu.cn
##### 获取领域配置
##### 获取领域配置
URL: {backUrl}/api/juben/intent/query
URL: {backUrl}/api/juben/intent/query
?secret=f1fvo0Yhw199PIHWTmCbbQ
METHOD: POST
METHOD: POST
...
...
dramaeditor/创作平台剧本生成接口.md
0 → 100644
View file @
6a69782e
BaseURL: https://hw-gz26.heyqiwu.cn
BaseURL: https://hw-gz26.heyqiwu.cn
##### 生成剧本
URL: {BaseURL}/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
RequestBody:
```
剧本导出ai未加密json放这,有注释地方是新加字段
{
"pointBOList": [],
"work": {
"count": 1490,
"gmtCreate": 1627279090000,
"gmtModified": 1627279090000,
"id": 51,
"name": "血族女王",
"ownerId": 8,
"serviceCode":"juben1", // 服务器标识
"startPlotNum":"1-1", // 让用户输入开始剧情点生成
"username":"jinfengli" // 用户名
}
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
FAILTURE:
{
"code": 60003,
"msg": "该接口禁止访问",
"data": null
}
{
"code": 50002,
"msg": "作品数据缺失!",
"data": null
}
```
Example:
```
curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/juben/generate?secret=f1fvo0Yhw199PIHWTmCbbQ' \
--header 'Content-Type: application/json' \
--data-raw '{
"pointBOList": [
],
"work": {
"count": 1490,
"gmtCreate": 1627279090000,
"gmtModified": 1627279090000,
"id": 51,
"name": "血族女王",
"ownerId": 8,
"serviceCode":"juben1",
"startPlotNum":"1-1",
"username":"jinfengli"
}
}'
```
##### 获取生成进度
URL: {BaseURL}/api/juben/generate/percent?jubenId={剧本ID}&serviceCode={服务标识,例如:juben1}&secret=f1fvo0Yhw199PIHWTmCbbQ
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"status": 1, // 生成完成状态-> 1: 成功, 0: 生成中
"progress": 100 // 进度,100表示完成
}
}
{
"code": 1,
"msg": "成功",
"data": {
"status": 0, // 生成完成状态-> 1: 成功, 0: 生成中
"progress": 90 // 进度,100表示完成
}
}
FAILTURE:
{
"code": 50002,
"msg": "不存在脚本,请先生成!",
"data": null
}
```
Example:
```
curl --location --request GET 'https://hw-gz26.heyqiwu.cn/api/juben/generate/percent?jubenId=51&serviceCode=juben1&secret=f1fvo0Yhw199PIHWTmCbbQ'
```
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