From ec6d43aa07ee0e8faf34498057ebcfbb446aa015 Mon Sep 17 00:00:00 2001 From: hjl <1657978663@qq.com> Date: 星期二, 16 七月 2024 09:21:51 +0800 Subject: [PATCH] feat: 代码重构 --- ruoyi-service/ruoyi-admin/src/main/java/com/ruoyi/admin/controller/NoticesController.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-admin/src/main/java/com/ruoyi/admin/controller/NoticesController.java b/ruoyi-service/ruoyi-admin/src/main/java/com/ruoyi/admin/controller/NoticesController.java index f13dd04..46d08fd 100644 --- a/ruoyi-service/ruoyi-admin/src/main/java/com/ruoyi/admin/controller/NoticesController.java +++ b/ruoyi-service/ruoyi-admin/src/main/java/com/ruoyi/admin/controller/NoticesController.java @@ -55,8 +55,8 @@ /** * 系统通知列表 + * -- 远程调用 */ - @RequiresPermissions("system_notice") @ApiOperation(value = "系统通知列表(不分页)", tags = {"后台-系统设置-系统通知管理"}) @GetMapping(value = "/noticesList") public R<List<Notices>> noticesList() { @@ -66,6 +66,17 @@ /** * 系统通知详情 + * -- 远程调用 + */ + @ApiOperation(value = "系统通知详情", tags = {"后台-系统设置-系统通知管理"}) + @GetMapping(value = "/noticesDetail") + public R<Notices> noticesDetail(@RequestParam("id") Integer id) { + return R.ok(noticesService.lambdaQuery().eq(Notices::getIsDelete, 0) + .eq(Notices::getId, id).one()); + } + + /** + * 系统通知详情 * * @param id 系统通知id */ -- Gitblit v1.7.1