From f3c35fd5a5e4211622e2f68d5ac92478721b0a23 Mon Sep 17 00:00:00 2001 From: leijie <547224643@qq.com> Date: Thu, 9 Sep 2021 18:29:27 +0800 Subject: [PATCH] 更新最短路径接口文档 --- dramaeditor/开始和结束剧情最短路径.md | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 73 insertions(+), 22 deletions(-) diff --git "a/dramaeditor/\345\274\200\345\247\213\345\222\214\347\273\223\346\235\237\345\211\247\346\203\205\346\234\200\347\237\255\350\267\257\345\276\204.md" "b/dramaeditor/\345\274\200\345\247\213\345\222\214\347\273\223\346\235\237\345\211\247\346\203\205\346\234\200\347\237\255\350\267\257\345\276\204.md" index b3d2e74..c5c4b3e 100644 --- "a/dramaeditor/\345\274\200\345\247\213\345\222\214\347\273\223\346\235\237\345\211\247\346\203\205\346\234\200\347\237\255\350\267\257\345\276\204.md" +++ "b/dramaeditor/\345\274\200\345\247\213\345\222\214\347\273\223\346\235\237\345\211\247\346\203\205\346\234\200\347\237\255\350\267\257\345\276\204.md" @@ -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 } } ``` -- libgit2 0.27.1