12345678910111213141516171819202122232425262728293031 |
- package com.ym.controller;
- import com.ym.mec.common.controller.BaseController;
- import com.ym.service.ChatroomService;
- import io.rong.models.chatroom.ChatroomModel;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * Created by weiqinxiao on 2019/2/25.
- */
- @RestController
- @RequestMapping("/distribute")
- public class DistributeController extends BaseController {
- @Autowired
- ChatroomService chatroomService;
- @RequestMapping(value = "/stop", method = RequestMethod.POST)
- public Object stop(@RequestBody ChatroomModel chatroomModel) throws Exception {
- return succeed(chatroomService.distributeStop(chatroomModel));
- }
- @RequestMapping(value = "/resume", method = RequestMethod.POST)
- public Object resume(@RequestBody ChatroomModel chatroomModel) throws Exception {
- return succeed(chatroomService.distributeResume(chatroomModel));
- }
- }
|