|
@@ -1,5 +1,6 @@
|
|
|
package com.ym.controller;
|
|
|
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.service.GroupService;
|
|
|
import io.rong.models.conversation.ConversationModel;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -13,23 +14,23 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/conversation")
|
|
|
-public class ConversationController{
|
|
|
+public class ConversationController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
GroupService groupService;
|
|
|
|
|
|
@RequestMapping(value = "/mute", method = RequestMethod.POST)
|
|
|
public Object mute(@RequestBody ConversationModel conversationModel) throws Exception {
|
|
|
- return groupService.conversationMute(conversationModel);
|
|
|
+ return succeed(groupService.conversationMute(conversationModel));
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/unmute", method = RequestMethod.POST)
|
|
|
public Object unmute(@RequestBody ConversationModel conversationModel) throws Exception {
|
|
|
- return groupService.conversationUnmute(conversationModel);
|
|
|
+ return succeed(groupService.conversationUnmute(conversationModel));
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/get", method = RequestMethod.POST)
|
|
|
public Object get(@RequestBody ConversationModel conversationModel) throws Exception {
|
|
|
- return groupService.conversationGet(conversationModel);
|
|
|
+ return succeed(groupService.conversationGet(conversationModel));
|
|
|
}
|
|
|
}
|