From 9aabe748d6d37b42b852f4125261ba4bbacd685d Mon Sep 17 00:00:00 2001 From: lyf666 Date: Tue, 26 Sep 2017 12:21:57 +0800 Subject: [PATCH] =?UTF-8?q?delRole=E5=80=9F=E5=8F=A3=E5=8F=82=E6=95=B0id?= =?UTF-8?q?=E5=90=8D=E6=B2=A1=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/route/CtrlRole.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/route/CtrlRole.kt b/src/main/java/route/CtrlRole.kt index f42191e..57daa9b 100644 --- a/src/main/java/route/CtrlRole.kt +++ b/src/main/java/route/CtrlRole.kt @@ -66,7 +66,7 @@ class CtrlRole : Controller() { @POST("/del/{id: [0-9]+}") @Produces(Produces.JSON) - fun delRole(@Param("roleId") roleId: Int): JSONResponse { + fun delRole(@Param("id") roleId: Int): JSONResponse { val role = service.getRoleById(roleId) if (role == null) { responseNotFoundById()