Class ChatHistoryPOServiceImpl
java.lang.Object
io.github.seenings.chat.service.impl.ChatHistoryPOServiceImpl
- All Implemented Interfaces:
io.github.seenings.chat.service.ChatHistoryService
@Repository
public class ChatHistoryPOServiceImpl
extends Object
implements io.github.seenings.chat.service.ChatHistoryService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(io.github.seenings.article.enumeration.ContentType contentType, Integer contentId, Long fromUserId, Long toUserId, Boolean sent, LocalDateTime sendTime) booleanadd(io.github.seenings.chat.model.ChatMessage chatMessage, LocalDateTime sendTime, boolean sent) fromUserIdToId(Long fromUserId, Long toUserId, int current, int size) 根据发送方用户和接收方用户获取聊天记录IDidToChatContentAndTime(Set<Integer> ids) 根据ID获取聊天内容和时间idToFromUserId(Set<Integer> ids) 根据聊天记录ID获取发送方IDidToIsSent(Set<Integer> ids) 根据聊天记录ID获取是否发出idToSendTime(Set<Integer> ids) 根据聊天记录ID获取发出时间idToToUserId(Set<Integer> ids) 根据聊天记录ID获取接收方IDboolean
-
Constructor Details
-
ChatHistoryPOServiceImpl
public ChatHistoryPOServiceImpl()
-
-
Method Details
-
fromUserIdToId
-
idToChatContentAndTime
-
idToFromUserId
-
idToSendTime
根据聊天记录ID获取发出时间- Specified by:
idToSendTimein interfaceio.github.seenings.chat.service.ChatHistoryService- Parameters:
ids- 聊天记录ID- Returns:
- 聊天记录ID对应发出时间
-
idToIsSent
-
idToToUserId
-
add
public boolean add(io.github.seenings.chat.model.ChatMessage chatMessage, LocalDateTime sendTime, boolean sent) - Specified by:
addin interfaceio.github.seenings.chat.service.ChatHistoryService
-
add
-
setSent
- Specified by:
setSentin interfaceio.github.seenings.chat.service.ChatHistoryService
-