From 11143dc71302bc9b6c3b9d826b6eabe024f029ae Mon Sep 17 00:00:00 2001 From: leijie <547224643@qq.com> Date: Wed, 1 Sep 2021 20:12:09 +0800 Subject: [PATCH] 添加了词性功能 --- dramaeditor/剧情编辑前后端接口文档.md | 3 ++- dramaeditor/查询所有分组编号.md | 35 +++++++++++++++++++++++++++++++++++ dramaeditor/查询词性内容.md | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 dramaeditor/查询所有分组编号.md create mode 100644 dramaeditor/查询词性内容.md diff --git "a/dramaeditor/\345\211\247\346\203\205\347\274\226\350\276\221\345\211\215\345\220\216\347\253\257\346\216\245\345\217\243\346\226\207\346\241\243.md" "b/dramaeditor/\345\211\247\346\203\205\347\274\226\350\276\221\345\211\215\345\220\216\347\253\257\346\216\245\345\217\243\346\226\207\346\241\243.md" index cfe4521..0a6fece 100644 --- "a/dramaeditor/\345\211\247\346\203\205\347\274\226\350\276\221\345\211\215\345\220\216\347\253\257\346\216\245\345\217\243\346\226\207\346\241\243.md" +++ "b/dramaeditor/\345\211\247\346\203\205\347\274\226\350\276\221\345\211\215\345\220\216\347\253\257\346\216\245\345\217\243\346\226\207\346\241\243.md" @@ -299,9 +299,10 @@ curl --location --request DELETE 'http://localhost:48089/work/delete?id=8' 参数名 | 参数类型 | 描述 | 必须 -------- | ----- | ----- | ----- id | int | 作品id | Y +plotSort | Long | 分组序号 | Y 4. 请求体示例 ``` -curl --location --request GET 'http://localhost:48089/plotpoint/insertAll?Id=1' +curl --location --request GET 'http://localhost:48089/plotpoint/insertAll?Id=1&plotSort=1' ``` ## 响应参数 - 响应参数data说明 diff --git "a/dramaeditor/\346\237\245\350\257\242\346\211\200\346\234\211\345\210\206\347\273\204\347\274\226\345\217\267.md" "b/dramaeditor/\346\237\245\350\257\242\346\211\200\346\234\211\345\210\206\347\273\204\347\274\226\345\217\267.md" new file mode 100644 index 0000000..13869b2 --- /dev/null +++ "b/dramaeditor/\346\237\245\350\257\242\346\211\200\346\234\211\345\210\206\347\273\204\347\274\226\345\217\267.md" @@ -0,0 +1,35 @@ +## 查询所有分组 + +1. 请求参数 + +2. Request Method: Get + Path: plotpoint/findPlotSort + +3. 请求参数 + +| 参数名 | 参数类型 | 描述 | 必须 | +| ------ | -------- | ------ | ---- | +| workId | Long | 作品id | Y | + +- 请求参数示例 + +``` +curl --location --request GET 'localhost:48089/plotpoint/findPlotSort?workId=332' \ +--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTXpBek9UQTNNRFFzSW1WNGNDSTZNVFl6TURRM056RXdOQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TVgwLm1yTGJwQVF6dk5NRU15THlNcWF0WmFiZDJQY00wNlFGczY0U0Q1dW52UmM6czAwcGVyczNjcmV0' \ +--data-raw '' +``` + + 4.响应参数 + +- 响应参数示例 + +``` +{ + "code": 1, + "msg": "成功", + "data": [ + 2, + 122 + ] +} +``` diff --git "a/dramaeditor/\346\237\245\350\257\242\350\257\215\346\200\247\345\206\205\345\256\271.md" "b/dramaeditor/\346\237\245\350\257\242\350\257\215\346\200\247\345\206\205\345\256\271.md" new file mode 100644 index 0000000..ec35d63 --- /dev/null +++ "b/dramaeditor/\346\237\245\350\257\242\350\257\215\346\200\247\345\206\205\345\256\271.md" @@ -0,0 +1,87 @@ +## 1.1 查询词性内容 + +1. 请求参数 + +2. Request Method: Get + Path: wordDefinition/findWordDefinition + +3. 请求参数 + +| 参数名 | 参数类型 | 描述 | 必须 | +| ------ | -------- | -------- | ---- | +| workId | Long | 作品id | Y | +| pos | String | 词性名称 | Y | + +- 请求参数示例 + +``` +curl --location --request GET 'localhost:48089/wordDefinition/findWordDefinition?workId=1&pos=%E5%90%8D%E8%AF%8D' \ +--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTXpBME5qWXlOVEFzSW1WNGNDSTZNVFl6TURVMU1qWTFNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TVgwLlhvSm9CbHg2N2FidTBLR1dUZWxxNkRKMVp0d1FkSVBqQXI1ZDJYcHZTYzQ6czAwcGVyczNjcmV0' \ +--data-raw '' + + + +localhost:48089/wordDefinition/findWordDefinition?workId=1&pos=名词 +``` + + 4.响应参数 + +| 参数名 | 参数类型 | 描述 | 必须 | +| --------- | -------- | -------- | ---- | +| words | String | 词性内容 | Y | +| pos | String | 词性名称 | Y | +| projectId | Long | 作品id | Y | + + + + 5.响应参数示例 + +``` +{ + "code": 1, + "msg": "成功", + "data": { + "pos": "名词", + "words": "qqq", + "projectId": 1 + } +} +``` + +## 1.2 修改词性内容 + +1. 请求参数 + +2. Request Method: POST + Path: wordDefinition/updateWordContent + +3. 请求参数 + +| 参数名 | 参数类型 | 描述 | 必须 | +| --------- | -------- | -------- | ---- | +| words | String | 词性内容 | Y | +| pos | String | 词性名称 | Y | +| projectId | Long | 作品id | Y | + +- 请求参数示例 + +``` +curl --location --request POST 'localhost:48089/wordDefinition/updateWordContent' \ +--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTXpBME5qWXlOVEFzSW1WNGNDSTZNVFl6TURVMU1qWTFNQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TVgwLlhvSm9CbHg2N2FidTBLR1dUZWxxNkRKMVp0d1FkSVBqQXI1ZDJYcHZTYzQ6czAwcGVyczNjcmV0' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "workId":1, + "pos":"名词", + "words":"ffffffffff" +}' +``` + + 4.响应参数示例 + +``` +{ + "code": 1, + "msg": "成功", + "data": "更新成功" +} +``` -- libgit2 0.27.1