Package com.bytedesk.core.message
Class MessageSpecificationVip
java.lang.Object
com.bytedesk.core.message.MessageSpecificationVip
企业版消息查询规范 - 包含未读消息等高级功能
- Since:
- 2025-08-14
- Author:
- Jackning (270580156@qq.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isCustomerServiceType
(String threadType) 判断是否为客服类型会话private static boolean
isGroupType
(String threadType) 判断是否为群聊类型会话private static boolean
isMemberType
(String threadType) 判断是否为成员类型会话static org.springframework.data.jpa.domain.Specification<MessageEntity>
searchUnread
(MessageRequest request, UserEntity user) 查询未读消息的 Specification 参考 ThreadEntity.getUnreadCount 的逻辑
-
Constructor Details
-
MessageSpecificationVip
public MessageSpecificationVip()
-
-
Method Details
-
searchUnread
public static org.springframework.data.jpa.domain.Specification<MessageEntity> searchUnread(MessageRequest request, UserEntity user) 查询未读消息的 Specification 参考 ThreadEntity.getUnreadCount 的逻辑- Parameters:
request
- 请求对象user
- 当前用户- Returns:
- Specification对象
-
isCustomerServiceType
判断是否为客服类型会话 -
isMemberType
判断是否为成员类型会话 -
isGroupType
判断是否为群聊类型会话
-