|  | @@ -20,15 +20,10 @@ import org.apache.commons.collections.CollectionUtils;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.http.HttpStatus;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.GetMapping;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.PathVariable;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import java.util.ArrayList;
 | 
	
		
			
				|  |  | -import java.util.List;
 | 
	
		
			
				|  |  | -import java.util.Objects;
 | 
	
		
			
				|  |  | -import java.util.Optional;
 | 
	
		
			
				|  |  | +import java.util.*;
 | 
	
		
			
				|  |  | +import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @RequestMapping("${app-config.url.student:}/imGroup")
 | 
	
		
			
				|  |  |  @Api(tags = "IM群服务")
 | 
	
	
		
			
				|  | @@ -243,4 +238,11 @@ public class ImGroupController extends BaseController {
 | 
	
		
			
				|  |  |      public Object imRegister(Integer userId) throws Exception {
 | 
	
		
			
				|  |  |          return succeed(imGroupCoreService.register(userId.toString(),"","测试",null));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	@ApiOperation("主动退群")
 | 
	
		
			
				|  |  | +	@PostMapping(value = "/quitGroup/v2")
 | 
	
		
			
				|  |  | +	public Object quitGroupV2(String imGroupId, String userId) {
 | 
	
		
			
				|  |  | +		List<Integer> userIds = Arrays.stream(userId.split(",")).mapToInt(Integer::valueOf).boxed().collect(Collectors.toList());
 | 
	
		
			
				|  |  | +		return succeed(imGroupMemberService.quit(imGroupId,userIds,false));
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  |  }
 |