mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-15 04:43:40 +00: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")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<SysNoticeVo> list(SysNoticeBo notice, PageQuery pageQuery) {
|
public TableDataInfo<SysNoticeVo> list(SysNoticeBo notice, PageQuery pageQuery) {
|
||||||
//公告类型(1通知 2公告)
|
//公告类型(1通知 2公告)
|
||||||
@@ -70,6 +71,7 @@ public class SysNoticeController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 修改通知公告
|
* 修改通知公告
|
||||||
*/
|
*/
|
||||||
|
@SaCheckPermission("system:notice:edit")
|
||||||
@Log(title = "通知公告", businessType = BusinessType.UPDATE)
|
@Log(title = "通知公告", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public R<Void> edit(@Validated @RequestBody SysNoticeBo notice) {
|
public R<Void> edit(@Validated @RequestBody SysNoticeBo notice) {
|
||||||
|
|||||||
Reference in New Issue
Block a user