From 661c067322f271242b7e7f3a03f07537fe4ab278 Mon Sep 17 00:00:00 2001 From: leijie <547224643@qq.com> Date: Tue, 7 Sep 2021 11:23:15 +0800 Subject: [PATCH] 添加了查询作品的一些数据统计接口文档 --- dramaeditor/导入txt文件和监听百分比.md | 9 +-------- dramaeditor/查询作品的所有数据的数量.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 8 deletions(-) create mode 100644 dramaeditor/查询作品的所有数据的数量.md diff --git "a/dramaeditor/\345\257\274\345\205\245txt\346\226\207\344\273\266\345\222\214\347\233\221\345\220\254\347\231\276\345\210\206\346\257\224.md" "b/dramaeditor/\345\257\274\345\205\245txt\346\226\207\344\273\266\345\222\214\347\233\221\345\220\254\347\231\276\345\210\206\346\257\224.md" index 800fcc9..a43831d 100644 --- "a/dramaeditor/\345\257\274\345\205\245txt\346\226\207\344\273\266\345\222\214\347\233\221\345\220\254\347\231\276\345\210\206\346\257\224.md" +++ "b/dramaeditor/\345\257\274\345\205\245txt\346\226\207\344\273\266\345\222\214\347\233\221\345\220\254\347\231\276\345\210\206\346\257\224.md" @@ -16,13 +16,6 @@ | id | Long | 作品id | Y | | flags | Boolean | 累加还是覆盖,true为覆盖 | Y | - 4. 请求体示例 - -``` -curl --location --request post 'http://localhost:48089/work/importTxt?id=1' -上传的文件 -``` - ## 响应参数 - 响应参数示例 @@ -52,7 +45,7 @@ curl --location --request post 'http://localhost:48089/work/importTxt?id=1' 4. 请求体示例 ``` -curl --location --request post 'http://localhost:48089/work/getPercent?id=1' +curl --location --request post 'http://localhost:48089/work/getPercent?projectId=1' 上传的文件 ``` diff --git "a/dramaeditor/\346\237\245\350\257\242\344\275\234\345\223\201\347\232\204\346\211\200\346\234\211\346\225\260\346\215\256\347\232\204\346\225\260\351\207\217.md" "b/dramaeditor/\346\237\245\350\257\242\344\275\234\345\223\201\347\232\204\346\211\200\346\234\211\346\225\260\346\215\256\347\232\204\346\225\260\351\207\217.md" new file mode 100644 index 0000000..6e89f59 --- /dev/null +++ "b/dramaeditor/\346\237\245\350\257\242\344\275\234\345\223\201\347\232\204\346\211\200\346\234\211\346\225\260\346\215\256\347\232\204\346\225\260\351\207\217.md" @@ -0,0 +1,47 @@ + + +## 1.1获取作品的所有数据的数量 + +## 请求参数 + + 1. 请求方式 + Request Method: get + Path: /plotpoint/getAllCount + 2. 请求头:无 + 3. 请求参数 + +| 参数名 | 参数类型 | 描述 | 必须 | +| ------ | -------- | ------ | ---- | +| workId | Long | 作品id | Y | + +4.请求示例体 + +``` +curl --location --request GET 'localhost:48089/plotpoint/getAllCount?workId=1155' \ +--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTXpBNU9ETXlOamtzSW1WNGNDSTZNVFl6TVRBMk9UWTJPU3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TVgwLjJVSHNHUlFHSWoxTHpXNG5Bc0VWRFpPd2JBci1ZeHVKRFRjLXdwWDZ6aGM6czAwcGVyczNjcmV0' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "workId":295 +}' + + +``` + +## 响应参数 + + - 响应参数示例 + +``` +{ + "code": 1, + "msg": "成功", + "data": { + "branchesCount": 164, + "intentsCount": 163, + "commentCount": 0, + "textCount": 9171, + "plotCount": 199 + } +} +``` + -- libgit2 0.27.1