package com.ym.controller; import com.ym.service.GroupService; import io.rong.models.Result; import io.rong.models.group.GroupModel; 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("/muteAllMembers") public class MuteAllMembersController { @Autowired GroupService groupService; @RequestMapping(value = "/add", method = RequestMethod.POST) public Result add(@RequestBody String[] groupIds) throws Exception { return groupService.muteAllMembersAdd(groupIds); } @RequestMapping(value = "/remove", method = RequestMethod.POST) public Result remove(@RequestBody String[] groupIds) throws Exception { return groupService.muteAllMembersRemove(groupIds); } @RequestMapping(value = "/getList", method = RequestMethod.POST) public Result getList() throws Exception { return groupService.muteAllMembersGetList(); } }