| | |
| | | agentProducer.sendAddRobotMsg(adminRegisterMemberVo.getInviteId()); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse openSwitchAutoSend(String id) { |
| | | this.baseMapper.updateAutoSendByGroupId(id,1); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse closeSwitchAutoSend(String id) { |
| | | this.baseMapper.updateAutoSendByGroupId(id,0); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<AdminRedBagVo> getRedBagList(ChatUser chatUser, QueryRequest request) { |
| | | Page<AdminRedBagVo> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | return this.baseMapper.selectRedBagListInPage(page, chatUser); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse openCreateGroup(String userId) { |
| | | ChatUser chatUser = this.baseMapper.selectByUserId(userId); |
| | | if(ObjectUtil.isEmpty(chatUser)) { |
| | | return new FebsResponse().fail().message("会员信息不存在"); |
| | | } |
| | | this.baseMapper.updateCreateGroupByUserId(userId,1); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse closeCreateGroup(String userId) { |
| | | ChatUser chatUser = this.baseMapper.selectByUserId(userId); |
| | | if(ObjectUtil.isEmpty(chatUser)) { |
| | | return new FebsResponse().fail().message("会员信息不存在"); |
| | | } |
| | | this.baseMapper.updateCreateGroupByUserId(userId,0); |
| | | return new FebsResponse().success(); |
| | | } |
| | | } |