发送消息,参数调整

master
Alan 3 months ago
parent 0442325910
commit f6261d380e
  1. 2
      src/main/java/com/teaching/backend/controller/courses/CoursesController.java
  2. 2
      src/main/java/com/teaching/backend/controller/message/MessagesController.java

@ -140,7 +140,7 @@ public class CoursesController {
} }
@ApiOperation("根据用户id,查询与用户有关的课程列表,并在课程列表显示所有用户信息") @ApiOperation("根据用户id,查询与用户有关的课程列表,并在课程列表显示所有用户信息")
// @ValidateParams({"userId"}) @ValidateParams({"userId"})
@GetMapping("/page/courseusers") @GetMapping("/page/courseusers")
public BaseResponse<List<CourseUserInfVO>> getUserInfByCourse(@RequestParam Long userId){ public BaseResponse<List<CourseUserInfVO>> getUserInfByCourse(@RequestParam Long userId){
List<CourseUserInfVO> courseUsersInfList = coursesService.getUserInfByCourse(userId); List<CourseUserInfVO> courseUsersInfList = coursesService.getUserInfByCourse(userId);

@ -37,7 +37,7 @@ public class MessagesController {
private IMessagesService messagesService; private IMessagesService messagesService;
@ApiOperation("发送消息") @ApiOperation("发送消息")
@ValidateParams({"senderId","title","content","receiverId"}) // 需要校验的参数 @ValidateParams({"senderId","title","content","receiverId","courseId"}) // 需要校验的参数
@PostMapping("/addmessage") @PostMapping("/addmessage")
public BaseResponse<String> sendMessage(@RequestBody SysMessageDTO sysMessageDTO){ public BaseResponse<String> sendMessage(@RequestBody SysMessageDTO sysMessageDTO){
String data = messagesService.sendMessageToUserInbox(sysMessageDTO); String data = messagesService.sendMessageToUserInbox(sysMessageDTO);

Loading…
Cancel
Save