|
@@ -42,7 +42,7 @@ public class RoleController {
|
|
|
* @return 角色主键
|
|
|
*/
|
|
|
@PostMapping("/role")
|
|
|
- public Long addRole(@RequestBody @Valid RoleModifyParam param) {
|
|
|
+ public Integer addRole(@RequestBody @Valid RoleModifyParam param) {
|
|
|
return this.roleClient.addRole(param);
|
|
|
}
|
|
|
|
|
@@ -53,7 +53,7 @@ public class RoleController {
|
|
|
* @param param 修改参数
|
|
|
*/
|
|
|
@PutMapping("/role/{id}")
|
|
|
- public void updateRole(@PathVariable("id") @Min(value = 1, message = "角色主键不能小于1") Long id,
|
|
|
+ public void updateRole(@PathVariable("id") @Min(value = 1, message = "角色主键不能小于1") Integer id,
|
|
|
@RequestBody @Valid RoleModifyParam param) {
|
|
|
this.roleClient.updateRole(id, param);
|
|
|
}
|
|
@@ -65,7 +65,7 @@ public class RoleController {
|
|
|
* @return 角色信息
|
|
|
*/
|
|
|
@GetMapping("/role/{id}/detail")
|
|
|
- public RoleDetailDTO getRoleDetail(@PathVariable("id") @Min(value = 1, message = "角色主键不能小于1") Long id) {
|
|
|
+ public RoleDetailDTO getRoleDetail(@PathVariable("id") @Min(value = 1, message = "角色主键不能小于1") Integer id) {
|
|
|
return this.roleClient.getRoleDetail(id);
|
|
|
}
|
|
|
|
|
@@ -97,7 +97,7 @@ public class RoleController {
|
|
|
* @param param 修改得菜单ID参数
|
|
|
*/
|
|
|
@PostMapping("/role/menus/{id}")
|
|
|
- public void updateRoleMenus(@PathVariable("id") @Min(value = 1, message = "角色主键不能小于1") Long id,
|
|
|
+ public void updateRoleMenus(@PathVariable("id") @Min(value = 1, message = "角色主键不能小于1") Integer id,
|
|
|
@RequestBody @Valid MenuModifyParam param) {
|
|
|
this.roleClient.updateRoleMenu(id, param.getMenuIds());
|
|
|
}
|