|
|
@ -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); |
|
|
|