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 75cd115e4c474df5742d637406eaf58370590a55..dedd972529413863e2de1175aac6273d7db100d0 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)){