From a577fd5cc32d5a2fb0251c7ec1a8d99ce6566ebd Mon Sep 17 00:00:00 2001 From: czk Date: Tue, 2 Nov 2021 15:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=80=E5=89=8D=E5=AF=B9Sw?= =?UTF-8?q?agger=E9=94=99=E8=AF=AF=E7=9A=84=E4=BD=BF=E7=94=A8=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/NoticeController.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/mobile_education_platform/controller/NoticeController.java b/src/main/java/com/mobile_education_platform/controller/NoticeController.java index 75cd115..dedd972 100644 --- a/src/main/java/com/mobile_education_platform/controller/NoticeController.java +++ b/src/main/java/com/mobile_education_platform/controller/NoticeController.java @@ -71,7 +71,7 @@ public class NoticeController { * @return R */ @ApiOperation(value = "系统消息-查询接口", notes = "查询本人参与的逻辑删除字段不为0的班级的通知,以学期为条件来排序查询。") - @ApiImplicitParam(name = "用户编号",value = "number",paramType = "string") + @ApiImplicitParam(name = "number",value = "用户编号",dataType = "string") @RequestMapping(value = "/notices/{number}", method = RequestMethod.GET) public R inNotice(@PathVariable("number") String number) { Map data = new HashMap<>(); @@ -158,6 +158,10 @@ public class NoticeController { */ @ApiOperation(value = "发送通知-添加接口") @RequestMapping(value = "/notice", method = RequestMethod.POST) + @ApiImplicitParams({ + @ApiImplicitParam(name = "notice",value = "通知",dataType = "Notice"), + @ApiImplicitParam(name = "classIds",value = "班级ID的List",dataType = "string",allowMultiple = true) + }) public R addNotice(@RequestBody Notice notice, @RequestParam List classIds) throws IOException { notice.setIsDeleted(1); @@ -200,9 +204,9 @@ public class NoticeController { */ @ApiOperation(value = "发送通知-查询接口",notes = "查询自己所发布的通知") @ApiImplicitParams({ - @ApiImplicitParam(name = "教师ID",value = "teacherId",paramType = "string"), - @ApiImplicitParam(name = "页数总数",value = "pageNum",paramType = "integer"), - @ApiImplicitParam(name = "每页中通知数量",value = "pageCount",paramType = "integer") + @ApiImplicitParam(name = "teacherId",value = "教师ID",dataType = "string"), + @ApiImplicitParam(name = "pageNum",value = "当前页数",dataType = "integer"), + @ApiImplicitParam(name = "pageCount",value = "每页中通知数量",dataType = "integer") }) @RequestMapping(value = "/notice/{teacherId}/{pageNum}/{pageCount}", method = RequestMethod.GET) public R selectNotice(@PathVariable("teacherId") String teacherId, @@ -231,7 +235,7 @@ public class NoticeController { * @return R */ @ApiOperation(value = "发送通知-删除接口",notes ="修改通知记录的逻辑删除状态") - @ApiImplicitParam(name = "待删除的通知ID", value = "id",paramType = "string") + @ApiImplicitParam(name = "id", value = "待删除的通知ID",dataType = "string") @RequestMapping(value = "/notice/{id}", method = RequestMethod.DELETE) public R deleteNotice(@PathVariable("id") String id) { Integer update = noticeService.updateDeletedState(id); @@ -249,8 +253,8 @@ public class NoticeController { * @return R * @throws IOException */ - @ApiOperation("订阅消息群发-家庭作业") - @ApiImplicitParam(name = "用户openId",value = "openId",paramType = "string") + @ApiOperation(value = "订阅消息群发-家庭作业",notes = "用于教师发布家庭作业后的发送通知(不用为该接口编写页面)") + @ApiImplicitParam(name = "openId",value = "用户openId",dataType = "string") @RequestMapping(value = "/publishMsg",method = RequestMethod.GET) public R publishMsg(String openId) throws IOException { if (openId==null || "".equals(openId)){ -- Gitee