Commit f3c35fd5 by zhou

更新最短路径接口文档

parent d3d4d01d
1.1 查询词性内容
1.1 查询词性内容
......@@ -11,7 +11,7 @@
| ------------- | -------- | -------- | ---- |
| projectId | Long | 作品id | Y |
| startingPoint | String | 开始剧情 | Y |
| destination | String | 借宿剧情 | Y |
| destination | String | 结束剧情 | Y |
- 请求参数示例
......@@ -25,42 +25,93 @@ curl --location --request GET 'localhost:48089/plotpoint/shortestPath?projectId=
localhost:48089/plotpoint/shortestPath?projectId=1170&startingPoint=1-1&destination=1-9
```
4.响应参数
| 参数名 | 参数类型 | 描述 | 必须 |
| ----------- | -------- | ---------- | ---- |
| shortCount | Integer | 路劲总数 | Y |
| userSpeech | String | 分支内容 | Y |
| nextPlotNum | String | 分支剧情点 | Y |
5.响应参数示例
4.响应参数示例
```
{
"code": 1,
"msg": "成功",
"data": {
"shortCount": 4,
"shortSpeechVo": [
"chartAndUserSpeechVoList": [
{
"userSpeech": null,
"nextPlotNum": "1-1"
"shortUserSpeechVo": {
"primate": "1-2",
"charactersBOS": [
{
"npcName": "狐妈妈",
"content": "快,先进来,想吃什么,妈妈给你做。"
}
]
},
"shortChartVo": {
"userSpeech": null,
"nextPlotNum": "1-9"
}
},
{
"userSpeech": "对啊我就是攀上高枝了+你就是眼红了吧",
"nextPlotNum": "1-2"
"shortUserSpeechVo": {
"primate": "1-9",
"charactersBOS": [
{
"npcName": "旁白",
"content": "狐妈妈见你回来开心极了,连续给你做了好几天的荤食。就连关关也来你家蹭了好几顿饭,以至于你和关关的脸肉眼可见的变圆了一圈。这天,关关依旧来你家蹭了饭,酒足饭饱后关关打了一个饱嗝,从怀里掏出了一封邀请函,道:"
},
{
"npcName": "关关",
"content": "对了,这是我昨天晚上收到了一封邀请函,说是让你和我去一个叫碧海的地方,我们去不去?"
}
]
},
"shortChartVo": {
"userSpeech": "不去我不想去别去了",
"nextPlotNum": "1-11"
}
},
{
"userSpeech": null,
"nextPlotNum": "1-8"
"shortUserSpeechVo": {
"primate": "1-11",
"charactersBOS": [
{
"npcName": "关关",
"content": "好吧,那咱就别去了。"
}
]
},
"shortChartVo": {
"userSpeech": null,
"nextPlotNum": "1-18"
}
},
{
"userSpeech": "不是这样的+我不会这么做+我没有这样",
"nextPlotNum": "1-9"
"shortUserSpeechVo": {
"primate": "1-18",
"charactersBOS": [
{
"npcName": "旁边",
"content": "你和关关分开后,各自回家和家人说明了情况。第二日,青龙手持信件前来接你们,它不会说话,只是低头示意你们坐到它身上去。随后,你就和关关坐到了青龙身上,待你们坐稳后,它一个腾飞就载着你们冲进了云霄之中,前往碧海。关关从昨天就一直纳闷,到底是谁邀请的你们,于是,她开口问道:"
},
{
"npcName": "关关",
"content": "九歌,据我阅读古籍知道,碧海是在东海那边,你猜会是谁叫我们去碧海的呢?"
}
]
},
"shortChartVo": {
"userSpeech": "我不知道我猜不出来不清楚是谁",
"nextPlotNum": "1-19"
}
}
]
],
"minShortPath": [
"1-2",
"1-9",
"1-11",
"1-18",
"1-19"
],
"pathCount": 5
}
}
```
......
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