Class ChatUserController
java.lang.Object
io.github.seenings.chat.controller.ChatUserController
@RestController
@RequestMapping("/seen/rest-v1/chat/chat-user")
public class ChatUserController
extends Object
可以聊天的用户列表 前端控制器
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhistoryIdToRemoteChatMessage(Set<Integer> historyIds) pageToUserChatInfo(int current, int size, Long userId) sendChatTextMessage(SingleContent singleContent, Long toUserId, Long userId) sendPhotoMessage(Integer photoId, Long toUserId, Long userId) sendVoiceMessage(Integer voiceId, Long toUserId, Long userId) userIdToHistoryId(Set<Long> pageUserIds, Long userId)
-
Constructor Details
-
ChatUserController
public ChatUserController()
-
-
Method Details
-
setFriend
-
historyIdToRemoteChatMessage
-
pageToUserChatInfo
@PostMapping("page-to-user-chat-info") public R<List<UserChatInfo>> pageToUserChatInfo(@RequestParam int current, @RequestParam int size, @SessionAttribute Long userId) -
sendChatTextMessage
@PostMapping("send-chat-text-message") public R<Integer> sendChatTextMessage(@RequestBody SingleContent singleContent, @RequestParam Long toUserId, @SessionAttribute Long userId) -
sendVoiceMessage
-
sendPhotoMessage
-
userIdToHistoryId
-