delRole借口参数id名没匹配

master
lyf666 2017-09-26 12:21:57 +08:00
parent b952359dd4
commit 9aabe748d6
1 changed files with 1 additions and 1 deletions

View File

@ -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()