Add chat history retrieval: implement /api/site/chat/history endpoint, database query, service logic, and permission checks.
This commit is contained in:
1 parent
4623fbcc82
commit
a4adff3845
5 files changed
+71
No files matched your search
@@ -16,6 +16,15 @@ public interface ChatLogMapper {
|
||||
""")
|
||||
List<ChatLogDao> getChatLogs(@Param("since") long since);
|
||||
|
||||
@Select("""
|
||||
SELECT uuid, time_stamp, server, type, channel, receiver, mini_message, blocked
|
||||
FROM chat_log
|
||||
WHERE mini_message IS NOT NULL
|
||||
AND time_stamp >= #{since}
|
||||
AND time_stamp <= #{to}
|
||||
""")
|
||||
List<ChatLogDao> getChatLogHistory(@Param("since") long since, @Param("to") long to);
|
||||
|
||||
@Select("""
|
||||
SELECT party_id FROM chat_users
|
||||
WHERE uuid = #{uuid}
|
||||
|
||||
Reference in new issue
Block a user