123456789101112131415161718192021222324252627282930313233343536 |
- 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;
- @RestController
- @RequestMapping("/keepAlive")
- public class KeepAliveController extends BaseController {
- @Autowired
- ChatroomService chatroomService;
- @RequestMapping(value = "/add", method = RequestMethod.POST)
- public Object add(@RequestBody ChatroomModel chatroomModel) throws Exception {
- return succeed(chatroomService.keepAliveAdd(chatroomModel));
- }
- @RequestMapping(value = "/remove", method = RequestMethod.POST)
- public Object remove(@RequestBody ChatroomModel chatroomModel) throws Exception {
- return succeed(chatroomService.keepAliveRemove(chatroomModel));
- }
- @RequestMapping(value = "/getList", method = RequestMethod.POST)
- public Object getList() throws Exception {
- return succeed(chatroomService.keepAliveGetList());
- }
- }
|