zouxuan hace 3 años
padre
commit
14477a5b14

+ 6 - 6
mec-web/src/main/java/com/ym/mec/web/controller/PlatformServeController.java

@@ -26,7 +26,7 @@ public class PlatformServeController extends BaseController {
 
     @ApiOperation("添加平台服务")
     @PostMapping(value = "/add")
-    @PreAuthorize("@pcs.hasPermissions('/platformServe/add')")
+    @PreAuthorize("@pcs.hasPermissions('platformServe/add')")
     public Object addServe(@Valid @RequestBody PlatformServeDto dto) {
         platformServeService.addServe(dto);
         return succeed();
@@ -34,7 +34,7 @@ public class PlatformServeController extends BaseController {
 
     @ApiOperation("修改平台服务")
     @PostMapping(value = "/update")
-    @PreAuthorize("@pcs.hasPermissions('/platformServe/update')")
+    @PreAuthorize("@pcs.hasPermissions('platformServe/update')")
     public Object updateServe(@Valid @RequestBody PlatformServeDto dto) {
         platformServeService.updateServe(dto);
         return succeed();
@@ -42,7 +42,7 @@ public class PlatformServeController extends BaseController {
 
     @ApiOperation("删除平台服务")
     @GetMapping(value = "/delete/{id}")
-    @PreAuthorize("@pcs.hasPermissions('/platformServe/delete')")
+    @PreAuthorize("@pcs.hasPermissions('platformServe/delete')")
     public Object deleteServe(@ApiParam(value = "平台服务ID", required = true) @PathVariable("id") Integer id) {
         platformServeService.deleteServe(id);
         return succeed();
@@ -50,21 +50,21 @@ public class PlatformServeController extends BaseController {
 
     @ApiOperation("分页查询")
     @GetMapping(value = "/queryPage")
-    @PreAuthorize("@pcs.hasPermissions('/platformServe/queryPage')")
+    @PreAuthorize("@pcs.hasPermissions('platformServe/queryPage')")
     public Object queryPage(String search, Integer page, Integer rows) {
         return succeed(platformServeService.queryPage(search, page, rows));
     }
 
     @ApiOperation("查询单个服务的详情")
     @GetMapping(value = "/queryInfo/{id}")
-    @PreAuthorize("@pcs.hasPermissions('/platformServe/queryInfo')")
+    @PreAuthorize("@pcs.hasPermissions('platformServe/queryInfo')")
     public Object queryInfo(@ApiParam(value = "平台服务ID", required = true) @PathVariable("id") Integer id) {
         return succeed(platformServeService.queryInfo(id));
     }
 
     @ApiOperation("查询单个服务各付费模式详情")
     @GetMapping(value = "/queryModeDetail/{id}")
-    @PreAuthorize("@pcs.hasPermissions('/platformServe/queryModeDetail')")
+    @PreAuthorize("@pcs.hasPermissions('platformServe/queryModeDetail')")
     public Object queryModeDetail(@ApiParam(value = "平台服务ID", required = true) @PathVariable("id") Integer id) {
         return succeed(platformServeService.queryModeDetail(id));
     }