From 571ce3330d9f90468243e202d42416e63c143f75 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 26 十一月 2024 09:50:57 +0800 Subject: [PATCH] 项目库接口路径 --- business/src/main/java/com/ycl/controller/ProjectInfoController.java | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/business/src/main/java/com/ycl/controller/ProjectInfoController.java b/business/src/main/java/com/ycl/controller/ProjectInfoController.java index d0144ee..1d14514 100644 --- a/business/src/main/java/com/ycl/controller/ProjectInfoController.java +++ b/business/src/main/java/com/ycl/controller/ProjectInfoController.java @@ -26,55 +26,55 @@ @RequiredArgsConstructor @Api(value = "椤圭洰绠$悊鍩虹淇℃伅琛�", tags = "椤圭洰绠$悊鍩虹淇℃伅琛ㄧ鐞�") @RestController -@RequestMapping("/api/project-info") +@RequestMapping("/project/info") public class ProjectInfoController { private final ProjectInfoService projectInfoService; @PostMapping @ApiOperation(value = "娣诲姞", notes = "娣诲姞") - @PreAuthorize("hasAuthority('projectInfo:add')") +// @PreAuthorize("hasAuthority('projectInfo:add')") public Result add(@RequestBody @Validated(Add.class) ProjectInfoForm form) { return projectInfoService.add(form); } @PutMapping @ApiOperation(value = "淇敼", notes = "淇敼") - @PreAuthorize("hasAuthority('projectInfo:edit')") +// @PreAuthorize("hasAuthority('projectInfo:edit')") public Result update(@RequestBody @Validated(Update.class) ProjectInfoForm form) { return projectInfoService.update(form); } @DeleteMapping("/{id}") @ApiOperation(value = "ID鍒犻櫎", notes = "ID鍒犻櫎") - @PreAuthorize("hasAuthority('projectInfo:del')") +// @PreAuthorize("hasAuthority('projectInfo:del')") public Result removeById(@PathVariable("id") String id) { return projectInfoService.removeById(id); } @DeleteMapping("/batch") @ApiOperation(value = "鎵归噺鍒犻櫎", notes = "鎵归噺鍒犻櫎") - @PreAuthorize("hasAuthority('projectInfo:del:batch')") +// @PreAuthorize("hasAuthority('projectInfo:del:batch')") public Result remove(@RequestBody @NotEmpty(message = "璇烽�夋嫨鏁版嵁") List<String> ids) { return projectInfoService.remove(ids); } @GetMapping("/page") @ApiOperation(value = "鍒嗛〉", notes = "鍒嗛〉") - @PreAuthorize("hasAuthority('projectInfo:page')") +// @PreAuthorize("hasAuthority('projectInfo:page')") public Result page(ProjectInfoQuery query) { return projectInfoService.page(query); } @GetMapping("/{id}") @ApiOperation(value = "璇︽儏", notes = "璇︽儏") - @PreAuthorize("hasAuthority('projectInfo:detail')") +// @PreAuthorize("hasAuthority('projectInfo:detail')") public Result detail(@PathVariable("id") Integer id) { return projectInfoService.detail(id); } @GetMapping("/list") - @PreAuthorize("hasAuthority('projectInfo:list')") +// @PreAuthorize("hasAuthority('projectInfo:list')") @ApiOperation(value = "鍒楄〃", notes = "鍒楄〃") public Result list() { return projectInfoService.all(); -- Gitblit v1.8.0