| 
					
				 | 
			
			
				@@ -12,7 +12,9 @@ import com.ym.mec.biz.dal.wrapper.ImGroupWrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.service.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.controller.BaseController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.entity.HttpResponseResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.common.exception.BizException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.page.PageInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.web.vo.ImGroupVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.log.model.AuditLogAnnotation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiImplicitParam; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -25,6 +27,7 @@ import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Arrays; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.stream.Collectors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("imGroup") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -162,12 +165,20 @@ public class ImGroupController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(" 移交群主") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PostMapping(value = "/groupChangeOwner") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @AuditLogAnnotation(operateName = "移交群主",interfaceURL = "imGroup/groupChangeOwner") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @ApiImplicitParams({ @ApiImplicitParam(name = "imGroupId", value = "群编号", required = true, dataType = "String"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "integer")}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Object groupChangeOwner(String imGroupId, Integer userId) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return succeed(imGroupService.groupChangeOwner(userId,imGroupId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /*@ApiImplicitParams({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			@ApiImplicitParam(name = "imGroupId", value = "群编号", required = true, dataType = "String"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "integer") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	})*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping(value = "/groupChangeOwner") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public Object groupChangeOwner(@RequestBody ImGroupVo.GroupChangeOwner info) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		// 校验参数合法性 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if (StringUtils.isBlank(info.getImGroupId()) || Objects.isNull(info.getUserId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			throw new BizException("请求参数错误"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return succeed(imGroupService.groupChangeOwner(info.getUserId(), info.getImGroupId())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiOperation("解散群") 
			 |