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