From f6261d380e6f9c40e1ef0a51bec8d31ed8566509 Mon Sep 17 00:00:00 2001 From: Alan <3052806735@qq.com> Date: Tue, 27 Aug 2024 16:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teaching/backend/controller/courses/CoursesController.java | 2 +- .../teaching/backend/controller/message/MessagesController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/teaching/backend/controller/courses/CoursesController.java b/src/main/java/com/teaching/backend/controller/courses/CoursesController.java index c42bb16..d53b0c5 100644 --- a/src/main/java/com/teaching/backend/controller/courses/CoursesController.java +++ b/src/main/java/com/teaching/backend/controller/courses/CoursesController.java @@ -140,7 +140,7 @@ public class CoursesController { } @ApiOperation("根据用户id,查询与用户有关的课程列表,并在课程列表显示所有用户信息") -// @ValidateParams({"userId"}) + @ValidateParams({"userId"}) @GetMapping("/page/courseusers") public BaseResponse> getUserInfByCourse(@RequestParam Long userId){ List courseUsersInfList = coursesService.getUserInfByCourse(userId); diff --git a/src/main/java/com/teaching/backend/controller/message/MessagesController.java b/src/main/java/com/teaching/backend/controller/message/MessagesController.java index be95f7f..bfcf1c6 100644 --- a/src/main/java/com/teaching/backend/controller/message/MessagesController.java +++ b/src/main/java/com/teaching/backend/controller/message/MessagesController.java @@ -37,7 +37,7 @@ public class MessagesController { private IMessagesService messagesService; @ApiOperation("发送消息") - @ValidateParams({"senderId","title","content","receiverId"}) // 需要校验的参数 + @ValidateParams({"senderId","title","content","receiverId","courseId"}) // 需要校验的参数 @PostMapping("/addmessage") public BaseResponse sendMessage(@RequestBody SysMessageDTO sysMessageDTO){ String data = messagesService.sendMessageToUserInbox(sysMessageDTO);