mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-28 12:03:43 +08:00
fix(公告管理): 修复未登录可以修改公告信息
Closes https://github.com/ageerle/ruoyi-ai/issues/44
This commit is contained in:
@@ -31,6 +31,7 @@ public class SysNoticeController extends BaseController {
|
||||
/**
|
||||
* 获取公告列表
|
||||
*/
|
||||
@SaCheckPermission("system:notice:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<SysNoticeVo> list(SysNoticeBo notice, PageQuery pageQuery) {
|
||||
//公告类型(1通知 2公告)
|
||||
@@ -70,6 +71,7 @@ public class SysNoticeController extends BaseController {
|
||||
/**
|
||||
* 修改通知公告
|
||||
*/
|
||||
@SaCheckPermission("system:notice:edit")
|
||||
@Log(title = "通知公告", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public R<Void> edit(@Validated @RequestBody SysNoticeBo notice) {
|
||||
|
||||
Reference in New Issue
Block a user