| | |
| | | import org.springblade.jfpt.chatrecords.vo.ChatRecordsVo; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhongrj |
| | | */ |
| | |
| | | public IPage<ChatRecordsVo> getChatListPage(IPage<ChatRecordsVo> page, ChatRecords chatRecords) { |
| | | return page.setRecords(baseMapper.getChatListPage(page,chatRecords)); |
| | | } |
| | | |
| | | /** |
| | | * 查询当前用户的聊天列表(不分页) |
| | | * @param chatRecords 消息记录对象 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ChatRecordsVo> getChatList(ChatRecords chatRecords) { |
| | | return baseMapper.getChatListPage(null,chatRecords); |
| | | } |
| | | |
| | | /** |
| | | * 查询单聊消息记录 (不分页) |
| | | * @param chatRecords 消息记录对象 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ChatRecords> selectChatlist(ChatRecords chatRecords) { |
| | | return baseMapper.selectChatRecordsPage(null,chatRecords); |
| | | } |
| | | } |