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" new file mode 100644 index 0000000..b3d2e74 --- /dev/null +++ "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" @@ -0,0 +1,67 @@ + 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" + } + ] + } +} +``` +