refactor: 发布撤销支持put请求

发布撤销支持put请求
This commit is contained in:
胡少翔
2024-11-14 09:31:41 +08:00
parent c7621f90cb
commit 16bd1399db
2 changed files with 3 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ public class NoticeController {
@Operation(summary = "发布通知公告")
@PatchMapping(value = "/{id}/publish")
@PutMapping(value = "/{id}/publish")
@PreAuthorize("@ss.hasPerm('sys:notice:publish')")
public Result<Void> publishNotice(
@Parameter(description = "通知公告ID") @PathVariable Long id
@@ -93,6 +94,7 @@ public class NoticeController {
}
@Operation(summary = "撤回通知公告")
@PutMapping(value = "/{id}/revoke")
@PatchMapping(value = "/{id}/revoke")
@PreAuthorize("@ss.hasPerm('sys:notice:revoke')")
public Result<Void> revokeNotice(