feat: add channel support

This commit is contained in:
Tim
2025-08-23 01:31:06 +08:00
parent 24cc479a56
commit 4947978f81
12 changed files with 459 additions and 65 deletions

View File

@@ -28,4 +28,8 @@ public interface MessageConversationRepository extends JpaRepository<MessageConv
"WHERE p.user.id = :userId " +
"ORDER BY COALESCE(lm.createdAt, c.createdAt) DESC")
List<MessageConversation> findConversationsByUserIdOrderByLastMessageDesc(@Param("userId") Long userId);
List<MessageConversation> findByChannelTrue();
long countByChannelTrue();
}