Commit d3d4d01d by zhou

添加剧情最短路径接口

parent 661c0673
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"
}
]
}
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment