From 81b9b4b2c0ea24c42e90dd75420717279bbcd068 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Mon, 20 Feb 2023 16:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=91=8A=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ningdatech/pmapi/sys/controller/NoticeController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java index 9837ad8..6f8a722 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/NoticeController.java @@ -3,12 +3,12 @@ package com.ningdatech.pmapi.sys.controller; import com.ningdatech.basic.model.IdVo; import com.ningdatech.basic.model.PageVo; import com.ningdatech.log.annotation.WebLog; +import com.ningdatech.pmapi.sys.manage.NoticeManage; import com.ningdatech.pmapi.sys.model.req.NoticeListReq; import com.ningdatech.pmapi.sys.model.req.NoticeSaveReq; import com.ningdatech.pmapi.sys.model.req.NoticeStatusModifyReq; import com.ningdatech.pmapi.sys.model.vo.NoticeDetailVO; import com.ningdatech.pmapi.sys.model.vo.NoticeListItemVO; -import com.ningdatech.pmapi.sys.manage.NoticeManage; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; @@ -18,7 +18,7 @@ import javax.validation.Valid; /** *

- * 系统通知 前端控制器 + * 系统公告 前端控制器 *

* * @author WendyYang @@ -33,21 +33,21 @@ public class NoticeController { private final NoticeManage noticeManage; @PostMapping("/save") - @ApiOperation("新增通知") + @ApiOperation("新增公告") @WebLog("新增公告") public IdVo save(@Valid @RequestBody NoticeSaveReq req) { return noticeManage.saveOrModify(req); } @GetMapping("/detail/{id}") - @ApiOperation("通知详情") + @ApiOperation("公告详情") public NoticeDetailVO save(@PathVariable Long id) { return noticeManage.detail(id); } @PostMapping("/enabled") - @ApiOperation("启用禁用") - @WebLog("启用禁用") + @ApiOperation("启用/禁用") + @WebLog("启用/禁用") public Boolean save(@Valid @RequestBody NoticeStatusModifyReq req) { return noticeManage.changeEnabled(req); }