| | |
| | | import org.springblade.modules.chatrecords.entity.ChatRecords; |
| | | import org.springblade.modules.chatrecords.service.ChatRecordsService; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.feign.IUserClient; |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | @RequestMapping("/chat-records") |
| | | public class ChatRecordsController { |
| | | |
| | | private final IUserClient iUserClient; |
| | | private final IUserService iUserService; |
| | | |
| | | private final ChatRecordsService chatRecordsService; |
| | | |
| | |
| | | crossDomain(response); |
| | | Map<String, Object> map = new HashMap<>(2); |
| | | //查询单聊人的信息 |
| | | List<User> user = Arrays.asList(iUserClient.userInfoById(chatRecords.getSenderId()).getData(), iUserClient.userInfoById(chatRecords.getRecipientId()).getData()); |
| | | List<User> user = Arrays.asList(iUserService.getById(chatRecords.getSenderId()), iUserService.getById(chatRecords.getRecipientId())); |
| | | //查询单聊记录信息 |
| | | if (null==query.getCurrent()){ |
| | | map.put("chatRecordsIPage",chatRecordsService.selectChatlist(chatRecords)); |