mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-04 22:41:24 +08:00
modify the post of updateNoticeTop
This commit is contained in:
@@ -88,7 +88,7 @@ public class NoticeController {
|
||||
}
|
||||
//修改公告置顶状态
|
||||
@PutMapping("/update_notice_top")
|
||||
@PreAuthorize("hasAuthority('notice:self:get')")
|
||||
@PreAuthorize("hasAuthority('notice:manage:get')")
|
||||
public ResponseResult<?> updateNoticeTop(@RequestBody Notice notice) {
|
||||
String operationMessage = notice.getTop() == 1 ? "取消置顶" : "置顶";
|
||||
Boolean updateResult = noticeService.updateNoticeTop(notice);
|
||||
|
||||
Reference in New Issue
Block a user