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
d3d4d01d
Commit
d3d4d01d
authored
Sep 09, 2021
by
zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加剧情最短路径接口
parent
661c0673
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
开始和结束剧情最短路径.md
dramaeditor/开始和结束剧情最短路径.md
+68
-0
No files found.
dramaeditor/开始和结束剧情最短路径.md
0 → 100644
View file @
d3d4d01d
1.
1 查询词性内容
1.
1 查询词性内容
1.
请求参数
2.
Request Method: Get
Path: wordDefinition/shortestPath
3.
请求参数
| 参数名 | 参数类型 | 描述 | 必须 |
| ------------- | -------- | -------- | ---- |
| projectId | Long | 作品id | Y |
| startingPoint | String | 开始剧情 | Y |
| destination | String | 借宿剧情 | Y |
-
请求参数示例
```
curl --location --request GET 'localhost:48089/plotpoint/shortestPath?projectId=1170&startingPoint=1-1&destination=1-9' \
--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTXpFd09UQTJORFVzSW1WNGNDSTZNVFl6TVRFM056QTBOU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TVgwLkZ6OGhTVndhZkU3Slg1RjktREJJbWJqdHNrWFhCeHN6S21Gb0VkenlKWXM6czAwcGVyczNjcmV0' \
--data-raw ''
localhost:48089/plotpoint/shortestPath?projectId=1170&startingPoint=1-1&destination=1-9
```
4.
响应参数
| 参数名 | 参数类型 | 描述 | 必须 |
| ----------- | -------- | ---------- | ---- |
| shortCount | Integer | 路劲总数 | Y |
| userSpeech | String | 分支内容 | Y |
| nextPlotNum | String | 分支剧情点 | Y |
5.
响应参数示例
```
{
"code": 1,
"msg": "成功",
"data": {
"shortCount": 4,
"shortSpeechVo": [
{
"userSpeech": null,
"nextPlotNum": "1-1"
},
{
"userSpeech": "对啊我就是攀上高枝了+你就是眼红了吧",
"nextPlotNum": "1-2"
},
{
"userSpeech": null,
"nextPlotNum": "1-8"
},
{
"userSpeech": "不是这样的+我不会这么做+我没有这样",
"nextPlotNum": "1-9"
}
]
}
}
```
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