From d6919e2a05a86a9e0a05a2f2464ae718e46fc0c4 Mon Sep 17 00:00:00 2001 From: cyan0714 <917244295@qq.com> Date: Tue, 27 Jun 2023 17:48:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E7=AE=A1=E7=90=86=E5=91=98=E8=BA=AB?= =?UTF-8?q?=E4=BB=BD=E9=AA=8C=E8=AF=81=E6=8E=A5=E5=8F=A3=E5=BA=94=E4=B8=BA?= =?UTF-8?q?GET=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/admin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/admin.md b/doc/admin.md index dc73a0f..8e3faf4 100644 --- a/doc/admin.md +++ b/doc/admin.md @@ -47,7 +47,7 @@ password | 密码 | 是 ``` ## 管理员身份验证 ``` -POST /admin/auth +GET /admin/auth ``` ### 参数说明 无 From bde7846a7b5ba15b861208a4bdf98bf0e8c8766b Mon Sep 17 00:00:00 2001 From: cyan0714 <917244295@qq.com> Date: Tue, 27 Jun 2023 18:11:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/v1/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v1/user.js b/app/api/v1/user.js index 7a57da0..160e299 100644 --- a/app/api/v1/user.js +++ b/app/api/v1/user.js @@ -126,7 +126,7 @@ router.get('/detail/:id', new Auth(AUTH_USER).m, async (ctx) => { }) -// 获取用户列表 +// 删除指定用户 // 需要管理员及以上才能操作 router.delete('/delete/:id', new Auth(AUTH_ADMIN).m, async (ctx) => { // 通过验证器校验参数是否通过