|
@@ -302,4 +302,11 @@ public class ImGroupController extends BaseController {
|
|
|
public HttpResponseResult<PageInfo<ImGroupNoticeDto>> queryNoticeList(ImGroupNoticeQueryInfo queryInfo) {
|
|
|
return succeed(imGroupNoticeService.queryPage(queryInfo));
|
|
|
}
|
|
|
+
|
|
|
+ @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));
|
|
|
+ }
|
|
|
}
|