|
@@ -7,7 +7,9 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -161,9 +163,10 @@ public class ImGroupController extends BaseController {
|
|
|
@PostMapping(value = "/quitGroup")
|
|
|
@AuditLogAnnotation(operateName = "退群",interfaceURL = "imGroup/quitGroup")
|
|
|
@ApiImplicitParams({ @ApiImplicitParam(name = "imGroupId", value = "群编号", required = true, dataType = "Integer"),
|
|
|
- @ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "Integer")})
|
|
|
- public Object quitGroup(Long imGroupId, Integer userId) {
|
|
|
- return succeed(imGroupMemberService.quit(imGroupId,userId));
|
|
|
+ @ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "String")})
|
|
|
+ public Object quitGroup(Long imGroupId, String userId) {
|
|
|
+ List<Integer> userIds = Arrays.stream(userId.split(",")).mapToInt(Integer::valueOf).boxed().collect(Collectors.toList());
|
|
|
+ return succeed(imGroupMemberService.quit(imGroupId,userIds));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("修改角色")
|