|
@@ -289,9 +289,21 @@ public class ImGroupController extends BaseController {
|
|
|
@ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "String")})
|
|
|
public Object quitGroup(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));
|
|
|
+ return succeed(imGroupMemberService.quit(imGroupId,userIds));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation("主动退群")
|
|
|
+ @PostMapping(value = "/quitGroup/v2")
|
|
|
+ @AuditLogAnnotation(operateName = "退群",interfaceURL = "imGroup/quitGroup/v2")
|
|
|
+ @ApiImplicitParams({ @ApiImplicitParam(name = "imGroupId", value = "群编号", required = true, dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "String")})
|
|
|
+ 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));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(" 移交群主")
|
|
|
@AuditLogAnnotation(operateName = "移交群主",interfaceURL = "imGroup/groupChangeOwner")
|
|
|
/*@ApiImplicitParams({
|