Class ChatHistoryController
java.lang.Object
io.github.seenings.chat.controller.ChatHistoryController
- All Implemented Interfaces:
io.github.seenings.chat.http.HttpChatHistoryService
@RestController
public class ChatHistoryController
extends Object
implements io.github.seenings.chat.http.HttpChatHistoryService
ChatHistoryController
- Since:
- 2022-10-16
- Author:
- chixuehui
-
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) idToChatContentAndTime(Set<Integer> ids) 根据ID获取聊天内容和时间idToFromUserId(Set<Integer> ids) 根据聊天记录ID获取发送方IDidToIsSent(Set<Integer> ids) 根据聊天记录ID获取是否发出idToToUserId(Set<Integer> ids) 根据聊天记录ID获取接收方IDpageUserIdToHistoryId(Long pageUserId, Long selfUserId) 根据页面用户ID和自己的用户ID获取聊天记录IDbooleanuserIdToChatContentAndTime(Set<Long> userIds, Long toUserId)
-
Constructor Details
-
ChatHistoryController
public ChatHistoryController()
-
-
Method Details
-
add
-
pageUserIdToHistoryId
public List<Integer> pageUserIdToHistoryId(@RequestParam("pageUserId") Long pageUserId, @RequestParam("selfUserId") Long selfUserId) 根据页面用户ID和自己的用户ID获取聊天记录ID- Specified by:
pageUserIdToHistoryIdin interfaceio.github.seenings.chat.http.HttpChatHistoryService- Parameters:
pageUserId- 页面用户IDselfUserId- 自己用户ID- Returns:
- 聊天记录ID
-
idToChatContentAndTime
-
userIdToChatContentAndTime
-
setSent
- Specified by:
setSentin interfaceio.github.seenings.chat.http.HttpChatHistoryService
-
idToFromUserId
-
idToIsSent
-
idToToUserId
-