From 7d95f69474f8ded7299ed6ca991683b2f24b43a0 Mon Sep 17 00:00:00 2001 From: LiuY <1622779752@qq.com> Date: Wed, 11 Oct 2023 16:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/noticeconfig/NoticeConfigController.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/module-notice/src/main/java/cn/com/tenlion/notice/controller/api/noticeconfig/NoticeConfigController.java b/module-notice/src/main/java/cn/com/tenlion/notice/controller/api/noticeconfig/NoticeConfigController.java index 021376b..d298a59 100644 --- a/module-notice/src/main/java/cn/com/tenlion/notice/controller/api/noticeconfig/NoticeConfigController.java +++ b/module-notice/src/main/java/cn/com/tenlion/notice/controller/api/noticeconfig/NoticeConfigController.java @@ -33,6 +33,19 @@ public class NoticeConfigController extends DefaultBaseController { @Autowired private INoticeConfigService noticeConfigService; + + @ApiOperation(value = "菜单显示的栏目配置列表", notes = "菜单显示的栏目配置列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "token", value = "token", paramType = "header") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listswitchview") + public List listSwitchView(@RequestHeader("token") String token) { + Map params = requestParams(); + return noticeConfigService.listSwitchView(params); + } + + @ApiOperation(value = "新增通知公告配置", notes = "新增通知公告配置接口") @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @PostMapping("save") @@ -107,4 +120,4 @@ public class NoticeConfigController extends DefaultBaseController { return new SuccessResultData<>(noticeConfigService.count(params)); } -} \ No newline at end of file +}