创建群组
这个提交包含在:
父节点
e037d174fc
当前提交
c44064904a
@ -19,6 +19,12 @@ import java.util.UUID;
|
|||||||
import static cn.org.bjca.trust.java.imserver.request.RequestConstant.Group_create_v1;
|
import static cn.org.bjca.trust.java.imserver.request.RequestConstant.Group_create_v1;
|
||||||
|
|
||||||
public class RequestManager {
|
public class RequestManager {
|
||||||
|
|
||||||
|
private final UserRepository userRepository = SpringUtilsAuTo.getBean(UserRepository.class);
|
||||||
|
private final GroupRepository groupRepository = SpringUtilsAuTo.getBean(GroupRepository.class);
|
||||||
|
private final ApplicationRepository applicationRepository = SpringUtilsAuTo.getBean(ApplicationRepository.class);
|
||||||
|
private final MessageRepository messageRepository = SpringUtilsAuTo.getBean(MessageRepository.class);
|
||||||
|
|
||||||
private static final class RequestManagerHolder {
|
private static final class RequestManagerHolder {
|
||||||
static final RequestManager instance = new RequestManager();
|
static final RequestManager instance = new RequestManager();
|
||||||
}
|
}
|
||||||
@ -73,12 +79,6 @@ public class RequestManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private final UserRepository userRepository = SpringUtilsAuTo.getBean(UserRepository.class);
|
|
||||||
private final GroupRepository groupRepository = SpringUtilsAuTo.getBean(GroupRepository.class);
|
|
||||||
private final ApplicationRepository applicationRepository = SpringUtilsAuTo.getBean(ApplicationRepository.class);
|
|
||||||
private final MessageRepository messageRepository = SpringUtilsAuTo.getBean(MessageRepository.class);
|
|
||||||
|
|
||||||
|
|
||||||
public HttpResult<String> groupCreate(GroupCreateData data, String appid, String userid) {
|
public HttpResult<String> groupCreate(GroupCreateData data, String appid, String userid) {
|
||||||
if (null == data.getUserIdList() || data.getUserIdList().isEmpty() || data.getUserIdList().size() < 2) {
|
if (null == data.getUserIdList() || data.getUserIdList().isEmpty() || data.getUserIdList().size() < 2) {
|
||||||
return new HttpResult<>(201, "群组成员需要大于一", "");
|
return new HttpResult<>(201, "群组成员需要大于一", "");
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户