update modules/ai: add 1 mod 2 files

This commit is contained in:
jack ning
2025-03-11 15:46:39 +08:00
parent 0552fc21a3
commit 1c501f5c4e
3 changed files with 85 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-08-31 16:23:54
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-03-09 22:24:57
* @LastEditTime: 2025-03-11 15:44:06
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -17,9 +17,11 @@ import java.time.LocalDateTime;
// import java.util.Date;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.bytedesk.core.config.BytedeskEventPublisher;
import com.bytedesk.core.enums.ClientEnum;
import com.bytedesk.core.rbac.user.UserProtobuf;
import com.bytedesk.core.rbac.user.UserTypeEnum;
import com.bytedesk.core.rbac.user.UserUtils;
import com.bytedesk.core.thread.ThreadEntity;
import com.bytedesk.core.thread.ThreadProtobuf;
@@ -76,6 +78,9 @@ public class MessageUtils {
return message;
}
public static void notifyUser(MessageProtobuf messageProtobuf) {
String json = JSON.toJSONString(messageProtobuf);
//