Commit 8316eb56 authored by fshenye's avatar fshenye

1. 添加跨域cors配置

2. 系统管理查询接口添加权限限制
parent 55b12621
......@@ -36,6 +36,9 @@ public class GlobalCorsConfig {
add("http://127.0.0.1:12998");
add("http://sict-gateway:12998");
add("http://192.168.31.140:12998");
add("http://localhost:12999");
add("http://127.0.0.1:12999");
add("http://sict-gateway:12999");
}};
private static final String ALLOWED_Expose = "*";
private static final String MAX_AGE = "18000L";
......
......@@ -41,6 +41,7 @@ public class HpMenuController {
*/
@ApiOperation("分页查询 系统菜单表")
@GetMapping("/page")
@PreAuthorize("@pms.hasPermission('ROLE_admin')")
public R getHpMenuPage(Page page, HpMenu hpMenu) {
return new R<>(hpMenuService.page(page, Wrappers.query(hpMenu)));
}
......
......@@ -49,6 +49,7 @@ public class HpRoleController {
*/
@ApiOperation("分页查询 系统角色表")
@GetMapping("/page")
@PreAuthorize("@pms.hasPermission('ROLE_admin')")
public R getHpRolePage(Page page, HpRole hpRole) {
return new R<>(hpRoleService.page(page, Wrappers.query(hpRole)));
}
......
......@@ -60,6 +60,7 @@ public class SysUserBaseController {
@ApiOperation("分页查询 系统基础用户表")
@GetMapping("/page")
@PreAuthorize("@pms.hasPermission('ROLE_admin')")
public R getSysUserBasePage(Page page, SysUserBase sysUserBase) {
return new R<>(sysUserBaseService.page(page, Wrappers.query(sysUserBase)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment