diff --git a/app/Controller/Api/V1/ArticleController.php b/app/Controller/Api/V1/ArticleController.php index 5652c3d..2d73926 100644 --- a/app/Controller/Api/V1/ArticleController.php +++ b/app/Controller/Api/V1/ArticleController.php @@ -37,7 +37,7 @@ class ArticleController extends CController /** * 获取笔记分类列表 - * @RequestMapping(path="article-class", methods="get") + * @RequestMapping(path="classifys", methods="get") * * @return ResponseInterface */ @@ -50,7 +50,7 @@ class ArticleController extends CController /** * 获取笔记标签列表 - * @RequestMapping(path="article-tags", methods="get") + * @RequestMapping(path="tags", methods="get") * * @return ResponseInterface */ @@ -63,7 +63,7 @@ class ArticleController extends CController /** * 获取笔记列表 - * @RequestMapping(path="article-list", methods="get") + * @RequestMapping(path="search", methods="get") * * @return ResponseInterface */ @@ -97,7 +97,7 @@ class ArticleController extends CController /** * 获取笔记详情 - * @RequestMapping(path="article-detail", methods="get") + * @RequestMapping(path="detail", methods="get") * * @return ResponseInterface */ @@ -115,7 +115,7 @@ class ArticleController extends CController /** * 添加或编辑笔记分类 - * @RequestMapping(path="edit-article-class", methods="post") + * @RequestMapping(path="classify/editor", methods="post") * * @return ResponseInterface */ @@ -137,7 +137,7 @@ class ArticleController extends CController /** * 删除笔记分类 - * @RequestMapping(path="del-article-class", methods="post") + * @RequestMapping(path="classify/delete", methods="post") * * @return ResponseInterface * @throws \Exception @@ -158,7 +158,7 @@ class ArticleController extends CController /** * 笔记分类列表排序接口 - * @RequestMapping(path="article-class-sort", methods="post") + * @RequestMapping(path="classify/sort", methods="post") * * @return ResponseInterface * @throws \Exception @@ -189,7 +189,7 @@ class ArticleController extends CController /** * 笔记分类合并接口 - * @RequestMapping(path="merge-article-class", methods="post") + * @RequestMapping(path="classify/merge", methods="post") * * @return ResponseInterface */ @@ -210,7 +210,7 @@ class ArticleController extends CController /** * 添加或编辑笔记标签 - * @RequestMapping(path="edit-article-tag", methods="post") + * @RequestMapping(path="tag/editor", methods="post") * * @return ResponseInterface */ @@ -251,7 +251,7 @@ class ArticleController extends CController /** * 添加或编辑笔记 - * @RequestMapping(path="edit-article", methods="post") + * @RequestMapping(path="editor", methods="post") * * @return ResponseInterface */ @@ -282,7 +282,7 @@ class ArticleController extends CController /** * 删除笔记 - * @RequestMapping(path="delete-article", methods="post") + * @RequestMapping(path="delete", methods="post") * * @return ResponseInterface */ @@ -302,7 +302,7 @@ class ArticleController extends CController /** * 恢复删除笔记 - * @RequestMapping(path="recover-article", methods="post") + * @RequestMapping(path="recover", methods="post") * * @return ResponseInterface */ @@ -322,7 +322,7 @@ class ArticleController extends CController /** * 笔记图片上传接口 - * @RequestMapping(path="upload-article-image", methods="post") + * @RequestMapping(path="upload-image", methods="post") * * @param Filesystem $filesystem * @return ResponseInterface @@ -353,7 +353,7 @@ class ArticleController extends CController /** * 移动笔记至指定分类 - * @RequestMapping(path="move-article", methods="post") + * @RequestMapping(path="move", methods="post") * * @return ResponseInterface */ @@ -378,11 +378,11 @@ class ArticleController extends CController /** * 笔记标记星号接口 - * @RequestMapping(path="set-asterisk-article", methods="post") + * @RequestMapping(path="asterisk", methods="post") * * @return ResponseInterface */ - public function setAsteriskArticle() + public function setAsterisk() { $params = $this->request->inputs(['article_id', 'type']); $this->validate($params, [ @@ -403,7 +403,7 @@ class ArticleController extends CController /** * 更新笔记关联标签ID - * @RequestMapping(path="update-article-tag", methods="post") + * @RequestMapping(path="update-tag", methods="post") * * @return ResponseInterface */ @@ -424,7 +424,7 @@ class ArticleController extends CController /** * 永久删除笔记文章 - * @RequestMapping(path="forever-delete-article", methods="post") + * @RequestMapping(path="forever-delete", methods="post") * * @return ResponseInterface * @throws \Exception @@ -445,7 +445,7 @@ class ArticleController extends CController /** * 上传笔记附件 - * @RequestMapping(path="upload-article-annex", methods="post") + * @RequestMapping(path="annex/upload", methods="post") * * @return ResponseInterface */ @@ -487,7 +487,7 @@ class ArticleController extends CController /** * 删除笔记附件 - * @RequestMapping(path="delete-article-annex", methods="post") + * @RequestMapping(path="annex/delete", methods="post") * * @return ResponseInterface */ @@ -507,7 +507,7 @@ class ArticleController extends CController /** * 恢复笔记附件 - * @RequestMapping(path="recover-article-annex", methods="post") + * @RequestMapping(path="annex/recover", methods="post") * * @return ResponseInterface */ @@ -527,7 +527,7 @@ class ArticleController extends CController /** * 获取附件回收站列表 - * @RequestMapping(path="recover-annex-list", methods="get") + * @RequestMapping(path="annex/recover-list", methods="get") * * @return ResponseInterface */ @@ -552,7 +552,7 @@ class ArticleController extends CController /** * 永久删除笔记附件(从已删除附件中永久删除) - * @RequestMapping(path="forever-delete-annex", methods="post") + * @RequestMapping(path="annex/forever-delete", methods="post") * * @return ResponseInterface * @throws \Exception diff --git a/app/Controller/Api/V1/TalkController.php b/app/Controller/Api/V1/TalkController.php index ad6a5cb..2b7c623 100644 --- a/app/Controller/Api/V1/TalkController.php +++ b/app/Controller/Api/V1/TalkController.php @@ -176,11 +176,11 @@ class TalkController extends CController /** * 设置消息免打扰状态 - * @RequestMapping(path="set-not-disturb", methods="post") + * @RequestMapping(path="disturb", methods="post") * * @return ResponseInterface */ - public function setNotDisturb() + public function disturb() { $params = $this->request->inputs(['talk_type', 'receiver_id', 'is_disturb']); $this->validate($params, [ diff --git a/更新计划.md b/更新计划.md index f76c3b8..35a38cf 100644 --- a/更新计划.md +++ b/更新计划.md @@ -1,9 +1,11 @@ -- 更新计划 -- -1. 修改 users 相关字段 ok +1. 好友相关逻辑待开发 -2. 添加 robts 数据表及迁移文件 ok +2. 投票消息功能待开发 -3. 修改表情相关数据表及相关接口 ok +3. 发送名片功能待开发 -4. +4. 推送登录通知待开发 + +5. 静态文件上传第三方待开发