From 1529dd0db8325fd96f8b7b55c671d1f0277b71a6 Mon Sep 17 00:00:00 2001 From: Ke Jie Date: Thu, 21 Sep 2023 17:10:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9A=E4=B9=89=E6=9C=BA=E5=99=A8?= =?UTF-8?q?=E4=BA=BA=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ke Jie --- app-stream-api/pom.xml | 2 +- .../app/api/models/bot/ChatbotMessage.java | 25 ++++++++ .../open/app/api/models/bot/MentionUser.java | 22 +++++++ .../app/api/models/bot/MessageContent.java | 58 +++++++++++++++++++ app-stream-client/pom.xml | 4 +- .../app-stream-network-api/pom.xml | 4 +- .../app-stream-network-core/pom.xml | 2 +- .../app-stream-network-rsocket/pom.xml | 2 +- .../app-stream-network-ws/pom.xml | 4 +- app-stream-network/pom.xml | 2 +- app-stream-protocol/pom.xml | 2 +- dingtalk-stream/pom.xml | 4 +- pom.xml | 2 +- version.sh | 2 +- 14 files changed, 120 insertions(+), 15 deletions(-) create mode 100644 app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/ChatbotMessage.java create mode 100644 app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MentionUser.java create mode 100644 app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MessageContent.java mode change 100644 => 100755 version.sh diff --git a/app-stream-api/pom.xml b/app-stream-api/pom.xml index dfd43d6..596efe0 100644 --- a/app-stream-api/pom.xml +++ b/app-stream-api/pom.xml @@ -5,7 +5,7 @@ open-app-stream-client com.dingtalk.open - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml 4.0.0 diff --git a/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/ChatbotMessage.java b/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/ChatbotMessage.java new file mode 100644 index 0000000..9f9d899 --- /dev/null +++ b/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/ChatbotMessage.java @@ -0,0 +1,25 @@ +package com.dingtalk.open.app.api.models.bot; + +import java.util.List; + +public class ChatbotMessage { + String conversationId; + List atUsers; + String chatbotCorpId; + String chatbotUserId; + String msgId; + String senderNick; + Boolean isAdmin; + String senderStaffId; + Long sessionWebhookExpiredTime; + Long createAt; + String senderCorpId; + String conversationType; + String senderId; + String conversationTitle; + Boolean isInAtList; + String sessionWebhook; + String msgtype; + MessageContent text; + MessageContent content; +} diff --git a/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MentionUser.java b/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MentionUser.java new file mode 100644 index 0000000..474f479 --- /dev/null +++ b/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MentionUser.java @@ -0,0 +1,22 @@ +package com.dingtalk.open.app.api.models.bot; + +public class MentionUser { + String dingtalkId; + String staffId; + + public String getDingtalkId() { + return dingtalkId; + } + + public void setDingtalkId(String dingtalkId) { + this.dingtalkId = dingtalkId; + } + + public String getStaffId() { + return staffId; + } + + public void setStaffId(String staffId) { + this.staffId = staffId; + } +} diff --git a/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MessageContent.java b/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MessageContent.java new file mode 100644 index 0000000..e36c697 --- /dev/null +++ b/app-stream-api/src/main/java/com/dingtalk/open/app/api/models/bot/MessageContent.java @@ -0,0 +1,58 @@ +package com.dingtalk.open.app.api.models.bot; + +import java.util.List; + +public class MessageContent { + /** + * 适用的类型:text + */ + String content; + /** + * 适用的类型:picture, richText[index] + */ + String pictureDownloadCode; + /** + * 适用的类型:picture, video, audio, file, richText[index] + */ + String downloadCode; + /** + * 适用的类型:video + */ + String duration; + /** + * 适用的类型:video + */ + String videoType; + /** + * 适用的类型:audio + */ + String recognition; + /** + * 适用的类型:file + */ + String spaceId; + /** + * 适用的类型:file + */ + String fileName; + /** + * 适用的类型:file + */ + String fileId; + /** + * 适用的类型:richText + */ + List richText; + /** + * 适用的类型:richText[index] + */ + String text; + /** + * 适用的类型:richText[index] + */ + String type; + /** + * 适用的类型:unknownMsgType + */ + String unknownMsgType; +} diff --git a/app-stream-client/pom.xml b/app-stream-client/pom.xml index d8b4522..d30101d 100644 --- a/app-stream-client/pom.xml +++ b/app-stream-client/pom.xml @@ -4,13 +4,13 @@ com.dingtalk.open open-app-stream-client - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml app-stream-client jar - 1.0.8 + 1.0.9-SNAPSHOT app-stream-client diff --git a/app-stream-network/app-stream-network-api/pom.xml b/app-stream-network/app-stream-network-api/pom.xml index f3b15df..324ceed 100644 --- a/app-stream-network/app-stream-network-api/pom.xml +++ b/app-stream-network/app-stream-network-api/pom.xml @@ -4,12 +4,12 @@ com.dingtalk.open app-stream-network - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml app-stream-network-api - 1.0.8 + 1.0.9-SNAPSHOT jar app-stream-network-api diff --git a/app-stream-network/app-stream-network-core/pom.xml b/app-stream-network/app-stream-network-core/pom.xml index f9881c1..69cdb8a 100644 --- a/app-stream-network/app-stream-network-core/pom.xml +++ b/app-stream-network/app-stream-network-core/pom.xml @@ -4,7 +4,7 @@ com.dingtalk.open app-stream-network - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml diff --git a/app-stream-network/app-stream-network-rsocket/pom.xml b/app-stream-network/app-stream-network-rsocket/pom.xml index a0048b4..c44a6cd 100644 --- a/app-stream-network/app-stream-network-rsocket/pom.xml +++ b/app-stream-network/app-stream-network-rsocket/pom.xml @@ -4,7 +4,7 @@ com.dingtalk.open app-stream-network - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml diff --git a/app-stream-network/app-stream-network-ws/pom.xml b/app-stream-network/app-stream-network-ws/pom.xml index 8026f4a..cff1d9e 100644 --- a/app-stream-network/app-stream-network-ws/pom.xml +++ b/app-stream-network/app-stream-network-ws/pom.xml @@ -4,7 +4,7 @@ com.dingtalk.open app-stream-network - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml @@ -20,7 +20,7 @@ com.dingtalk.open app-stream-network-api - 1.0.8 + 1.0.9-SNAPSHOT com.alibaba diff --git a/app-stream-network/pom.xml b/app-stream-network/pom.xml index 6abf871..1e0e71a 100644 --- a/app-stream-network/pom.xml +++ b/app-stream-network/pom.xml @@ -5,7 +5,7 @@ open-app-stream-client com.dingtalk.open - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml pom diff --git a/app-stream-protocol/pom.xml b/app-stream-protocol/pom.xml index 6087d26..d175635 100644 --- a/app-stream-protocol/pom.xml +++ b/app-stream-protocol/pom.xml @@ -6,7 +6,7 @@ com.dingtalk.open open-app-stream-client - 1.0.8 + 1.0.9-SNAPSHOT app-stream-protocol diff --git a/dingtalk-stream/pom.xml b/dingtalk-stream/pom.xml index 652adcd..07cdeb6 100644 --- a/dingtalk-stream/pom.xml +++ b/dingtalk-stream/pom.xml @@ -4,13 +4,13 @@ com.dingtalk.open open-app-stream-client - 1.0.8 + 1.0.9-SNAPSHOT ../pom.xml dingtalk-stream jar - 1.0.8 + 1.0.9-SNAPSHOT app-stream-client diff --git a/pom.xml b/pom.xml index ba61c9c..0064dcd 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.dingtalk.open open-app-stream-client pom - 1.0.8 + 1.0.9-SNAPSHOT app-stream-client app-stream-api diff --git a/version.sh b/version.sh old mode 100644 new mode 100755 index cb37bec..ef026cf --- a/version.sh +++ b/version.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -mvn versions:set -DnewVersion=1.0.8 +mvn versions:set -DnewVersion=1.0.9-SNAPSHOT