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
7a7ae257
Commit
7a7ae257
authored
Aug 26, 2021
by
zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
剧本编辑器
parent
169b49f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
435 additions
and
114 deletions
+435
-114
剧情编辑前后端接口文档.md
dramaeditor/剧情编辑前后端接口文档.md
+435
-114
No files found.
dramaeditor/剧情编辑前后端接口文档.md
View file @
7a7ae257
...
@@ -1021,7 +1021,7 @@ localhost:48089/plotpoint/updateByStyle?workId=89&speakStyle=滕志梅(11111服
...
@@ -1021,7 +1021,7 @@ localhost:48089/plotpoint/updateByStyle?workId=89&speakStyle=滕志梅(11111服
```
```
## 2.
8
搜索意图
## 2.
9
搜索意图
1. 请求方式
1. 请求方式
Request Method: POST
Request Method: POST
...
@@ -1047,141 +1047,462 @@ localhost:48089/plotpoint/updateByStyle?workId=89&speakStyle=滕志梅(11111服
...
@@ -1047,141 +1047,462 @@ localhost:48089/plotpoint/updateByStyle?workId=89&speakStyle=滕志梅(11111服
{
{
"code": 1,
"code": 1,
"msg": "成功",
"msg": "成功",
"data": {
"data":
[
"同意陪":
[
{
"先陪
\n
就陪伴",
"intentName": "同意陪",
"陪打球
\n
陪伴游泳",
"branchs":
[
"同意陪
\n
答应陪伴",
{
"愿意陪伴
\n
想陪",
"branchName": "不陪我",
"陪伴我
\n
陪我",
"examples": "陪伴我
\n
陪我",
"陪吧
\n
陪伴",
"auxiliaryPriority": "10",
"陪他们
\n
陪她",
"semanticTriples":
[
"当然陪
\n
一定陪伴",
{
"陪伴你
\n
陪你"
"semanticRelationName": "ruleb0dob0whatb0vn",
],
"valueRange": "
[
项目词组陪伴动词
]
:visitor"
"不同意陪":
[
}
"不陪伴你
\n
不陪你",
]
"不陪伴我
\n
不陪我",
},
"拒绝陪吗
\n
拒绝陪伴吗",
{
"我不陪
\n
我不陪伴",
"branchName": "同意陪",
"拒绝陪
\n
拒绝陪伴",
"examples": "同意陪
\n
答应陪伴",
"讨厌陪
\n
讨厌陪伴",
"auxiliaryPriority": "10",
"不愿意陪伴
\n
不想陪",
"semanticTriples":
[
"没兴趣陪伴你
\n
没兴趣陪你",
{
"真丢人,要人陪",
"semanticRelationName": "ruleb0dob0whatb0vv",
"不陪
\n
不陪伴",
"valueRange": "
[
项目词组同意动词
]
:
[
项目词组陪伴动词
]
"
"不陪他们
\n
不陪她",
}
"不同意陪
\n
不答应陪伴"
]
],
},
"不同意看":
[
{
"拒绝看
\n
拒绝看见",
"branchName": "当然陪",
"不看他们
\n
别看她",
"examples": "当然陪
\n
一定陪伴",
"拒绝看吗
\n
拒绝看见吗",
"auxiliaryPriority": "10",
"我不看看
\n
我没看见",
"semanticTriples":
[
"不看
\n
没看见",
{
"不看吗",
"semanticRelationName": "ruleb0dob0whatb0adv",
"不愿意看
\n
不想看",
"valueRange": "
[
项目词组当然肯定副词
]
:
[
项目词组陪伴动词
]
"
"不去看看
\n
不过去看",
}
"不同意看
\n
不答应看",
]
"讨厌看
\n
讨厌看见",
},
"看什么看",
{
"没看我
\n
不看看我",
"branchName": "愿意陪",
"没看你
\n
不看看你"
"examples": "愿意陪伴
\n
想陪",
],
"auxiliaryPriority": "10",
"同意看":
[
"semanticTriples":
[
"看他们
\n
看她",
{
"我看看
\n
我瞧瞧",
"semanticRelationName": "ruleb0dob0whatb0vv",
"去看看
\n
过去看",
"valueRange": "
[
项目词组同意意愿动词
]
:
[
项目词组陪伴动词
]
"
"看我
\n
看看我",
}
"同意看
\n
答应看",
]
"看你
\n
看看你",
},
"看吧
\n
看看",
{
"看吗
\n
看看吗",
"branchName": "继续",
"愿意看
\n
想看",
"examples": null,
"看一下
\n
就看看"
"auxiliaryPriority": "10",
]
"semanticTriples":
[
}
{
"semanticRelationName": "ruleb0certainb0answer",
"valueRange": "继续"
}
]
},
{
"branchName": "陪一下",
"examples": "先陪
\n
就陪伴",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0adv",
"valueRange": "一下:
[
项目词组陪伴动词
]
+就:
[
项目词组陪伴动词
]
+先:
[
项目词组陪伴动词
]
"
}
]
},
{
"branchName": "陪他们",
"examples": "陪他们
\n
陪她",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vn",
"valueRange": "
[
项目词组陪伴动词
]
:
[
项目词组第三人称词组
]
"
}
]
},
{
"branchName": "陪你",
"examples": "陪伴你
\n
陪你",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vn",
"valueRange": "
[
项目词组陪伴动词
]
:bot"
}
]
},
{
"branchName": "陪动作",
"examples": "陪打球
\n
陪伴游泳",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vv",
"valueRange": "
[
项目词组陪伴动词
]
:
[
项目词组动作类词组
]
"
}
]
},
{
"branchName": "陪吧",
"examples": "陪吧
\n
陪伴",
"auxiliaryPriority": "9",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0certainb0answer",
"valueRange": "
[
项目词组陪伴动词
]
"
}
]
}
],
"phrases":
[
{
"phraseName": "项目词组同意动词",
"pos": null,
"words": "希望+同意+期待+保证+答应+订交+许诺+允诺+容许+承诺+赞助+附和+认可+允许+接受+应承+批准+答允+赞成+许可+应允+和议+订定+制定+应许+愿望+协议+乐意+准许+认同+愿意+支持+赞同+愿",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组同意意愿动词",
"pos": null,
"words": "计划+要+想要+希望+打算+选+准备+选择+想+需要+乐意+应该+会+可以+愿意+考虑+愿",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组动作类词组",
"pos": null,
"words": "带走+失踪+锻炼+使用+说+etc+游泳+批评+打球+逃走",
"highPerformance": false,
"wordSet": null,
"ableEdit": true
},
{
"phraseName": "项目词组陪伴动词",
"pos": null,
"words": "陪同+伴随+陪陪+陪伴+陪+随同",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组第三人称词组",
"pos": null,
"words": "它们俩+它们+他们俩+它+他+她们+她+他俩+她俩+它俩+他们+她们俩",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组当然肯定副词",
"pos": null,
"words": "仍然+依旧+一定+依然+绝对+肯定+当然+必须+应该+必然+必定+照旧",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
}
],
"wsces":
[
{
"o": "bot",
"s": "陪",
"customWord": "和你在一起,和你一起,同你一起,跟你一起,同你一起,我和你在一起,我和你一起,我同你一起,我跟你一起,我同你一起",
"semanticRelationName": "ruleb0dob0whatb0vn"
},
{
"o": "陪",
"s": "吧",
"customWord": "
[
项目词组陪伴动词
]
",
"semanticRelationName": "ruleb0certainb0answer"
}
]
},
{
"intentName": "同意看",
"branchs":
[
{
"branchName": "去看",
"examples": "去看看
\n
过去看",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vv",
"valueRange": "
[
项目词组去的动词
]
:
[
项目词组看动词
]
"
}
]
},
{
"branchName": "同意看",
"examples": "同意看
\n
答应看",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vv",
"valueRange": "
[
项目词组同意动词
]
:
[
项目词组看动词
]
"
}
]
},
{
"branchName": "想看",
"examples": "愿意看
\n
想看",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vv",
"valueRange": "
[
项目词组同意意愿动词
]
:
[
项目词组看动词
]
"
}
]
},
{
"branchName": "我看",
"examples": "我看看
\n
我瞧瞧",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0nv",
"valueRange": "visitor:
[
项目词组看动词
]
"
}
]
},
{
"branchName": "看一下",
"examples": "看一下
\n
就看看",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0adv",
"valueRange": "一下:
[
项目词组看动词
]
+就:
[
项目词组看动词
]
+先:
[
项目词组看动词
]
"
}
]
},
{
"branchName": "看他们",
"examples": "看他们
\n
看她",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vn",
"valueRange": "
[
项目词组看动词
]
:
[
项目词组第三人称词组
]
"
}
]
},
{
"branchName": "看你",
"examples": "看你
\n
看看你",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vn",
"valueRange": "
[
项目词组看动词
]
:bot"
}
]
},
{
"branchName": "看吧",
"examples": "看吧
\n
看看",
"auxiliaryPriority": "9",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0certainb0answer",
"valueRange": "
[
项目词组看动词
]
"
}
]
},
{
"branchName": "看吧吗",
"examples": "看吗
\n
看看吗",
"auxiliaryPriority": "9",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0askb0answer",
"valueRange": "
[
项目词组看动词
]
"
}
]
},
{
"branchName": "看我",
"examples": "看我
\n
看看我",
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0dob0whatb0vn",
"valueRange": "
[
项目词组看动词
]
:visitor"
}
]
},
{
"branchName": "继续",
"examples": null,
"auxiliaryPriority": "10",
"semanticTriples":
[
{
"semanticRelationName": "ruleb0certainb0answer",
"valueRange": "继续"
}
]
}
],
"phrases":
[
{
"phraseName": "项目词组同意动词",
"pos": null,
"words": "希望+同意+期待+保证+答应+订交+许诺+允诺+容许+承诺+赞助+附和+认可+允许+接受+应承+批准+答允+赞成+许可+应允+和议+订定+制定+应许+愿望+协议+乐意+准许+认同+愿意+支持+赞同+愿",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组同意意愿动词",
"pos": null,
"words": "计划+要+想要+希望+打算+选+准备+选择+想+需要+乐意+应该+会+可以+愿意+考虑+愿",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组看动词",
"pos": null,
"words": "瞄+搜查+瞅+观望+搜索+查看查看+看+查看+瞅一眼+望见+看到+找找+观察+搜搜+瞄瞄+观看+看见+望+搜+查+看看看+瞧+查查+看看+瞧瞧+瞅瞅+观察观察+查找+瞧见+侦查+观看观看+找",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组第三人称词组",
"pos": null,
"words": "它们俩+它们+他们俩+它+他+她们+她+他俩+她俩+它俩+他们+她们俩",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
},
{
"phraseName": "项目词组去的动词",
"pos": null,
"words": "光临+移动+逃+到达+参与+逃离+上+出去+溜溜+走走+转转+参加+逛+溜+逃到+出发+登陆+抵达+赶路+离开+跑路+到+挪动+启程+去+逃跑+开始+走着+过去+逃命+行+行动+逃避+跑+进去+走到+溜走+逃走+跟+莅临+驾到+来临+驾临+来+来到+转+逃亡+过来+走+走近+逛逛+走进+出+进入+进来",
"highPerformance": false,
"wordSet": null,
"ableEdit": false
}
],
"wsces":
[
{
"o": "看",
"s": "吧",
"customWord": "
[
项目词组看动词
]
",
"semanticRelationName": "ruleb0certainb0answer"
}
]
}
]
}
}
```
```
##
2.9查看意图信息
##
3.0剧本生成
1. 请求方式
1. 请求方式
Request Method:
GE
T
Request Method:
POS
T
Path:
/plotpoint/selectBranch
Path:
localhost:48089/plotpoint/plotBeing
2.
请求参数
2.
请求头:无
| 参数名 | 参数类型 | 描述 | 必须 |
3.请求参数
| --------- | -------- | ---- | ---- |
| intention | String | 意图 | Y |
3.请求体示例
| 参数名 | 参数类型 | 描述 | 必须 |
| ------ | -------- | ------------------ | ---- |
| workId | Long | 作品id | Y |
| number | String | 开始生成剧情点编号 | Y |
4.请求体示例
```
```
localhost:48089/plotpoint/selectBranch?intention=同意陪
{
"workId":295,
"number":"1-1"
}
```
```
4.响应参数
5.响应体示例
| 参数名 | 参数类型 | 描述 | 必须 |
```
| --------------- | --------------- | ------------------------------- | ---- |
SUCCESS:
| examples | list<string> | map的key,value为string的集合 | Y |
{
| accompanyPhrase | list<PhrasesBo> | map的key,value为PhrasesBo的集合 | Y |
"code": 1,
| agree | list<PhrasesBo> | map的key,value为PhrasesBo的集合 | Y |
"msg": "成功",
| agreeWish | list<PhrasesBo> | map的key,value为PhrasesBo的集合 | Y |
"data": null
}
FAILTURE:
{
"code": 60003,
"msg": "该接口禁止访问",
"data": null
}
{
"code": 50002,
"msg": "作品数据缺失!",
"data": null
}
```
5.响应参数示例
## 3.1剧情生成百分比
1. 请求方式
Request Method: POST
Path: localhost:48089/plotpoint/percent
2.请求头:无
3.请求参数
| 参数名 | 参数类型 | 描述 | 必须 |
| ------ | -------- | ------ | ---- |
| workId | Long | 作品id | Y |
4.请求体示例
```
{
"workId":295
}
```
5.响应体示例
```
```
SUCCESS:
{
{
"code": 1,
"code": 1,
"msg": "成功",
"msg": "成功",
"data": {
"data": {
"examples":
[
"status": 1, // 生成完成状态-> 1: 成功, 0: 生成中
"先陪
\n
就陪伴",
"progress": 100 // 进度,100表示完成
"陪打球
\n
陪伴游泳",
"同意陪
\n
答应陪伴",
"愿意陪伴
\n
想陪",
"陪伴我
\n
陪我",
"陪吧
\n
陪伴",
"陪他们
\n
陪她",
"当然陪
\n
一定陪伴",
"陪伴你
\n
陪你"
],
"accompanyPhrase":
[
{
"phraseName": "项目词组陪伴动词",
"pos": null,
"words": "陪+陪陪+陪伴+陪同+伴随+随同",
"highPerformance": false,
"wordSet":
[
],
"ableEdit": false
}
],
"agree":
[
{
"phraseName": "项目词组同意动词",
"pos": null,
"words": "+同意+赞成+答应+应承+答允+承诺+愿意+允许+赞助+制定+附和+和议+协议+准许+订定+订交+应许+乐意+容许+许诺+允诺+应承+批准+赞成+许可+赞同+答应+应允+保证+支持+许可+准许+愿意+期待+愿+应允+希望+愿望+认同+认可+接受",
"highPerformance": false,
"wordSet":
[
],
"ableEdit": false
}
],
"agreeWish":
[
{
"phraseName": "项目词组同意意愿动词",
"pos": null,
"words": "要+想+需要+应该+想要+选+选择+会+可以+打算+准备+计划+愿意+乐意+希望+考虑+愿",
"highPerformance": false,
"wordSet":
[
],
"ableEdit": false
}
]
}
}
}
}
{
"code": 1,
"msg": "成功",
"data": {
"status": 0, // 生成完成状态-> 1: 成功, 0: 生成中
"progress": 90 // 进度,100表示完成
}
}
FAILTURE:
{
"code": 50002,
"msg": "不存在脚本,请先生成!",
"data": null
}
```
```
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