|
|
@@ -217,9 +217,10 @@ public class SysRoleController extends BaseController {
|
|
|
return roleService.getById(id);
|
|
|
}
|
|
|
|
|
|
+ @RequiresPermissions("system:role:query")
|
|
|
@ApiOperation(value = "根据机构类型查询角色")
|
|
|
- @GetMapping(value = "/getRoleByType")
|
|
|
- public List<SysRole> getRoleByType(String type) {
|
|
|
+ @GetMapping(value = "/getRoleByType/{type}")
|
|
|
+ public List<SysRole> getRoleByType(@PathVariable(value = "type", required = false)String type) {
|
|
|
return roleService.getRoleByType(type);
|
|
|
}
|
|
|
|