This commit is contained in:
jack ning
2025-09-01 10:52:40 +08:00
parent 68ec0ea354
commit 405963db3c
3 changed files with 28 additions and 5 deletions

View File

@@ -492,10 +492,10 @@ services:
SPRINGDOC_SHOW_ACTUATOR: false
# swagger-ui
# http://服务器ip:9003/swagger-ui/index.html
SPRINGDOC_SWAGGER_UI_ENABLED: true
SPRINGDOC_SWAGGER_UI_ENABLED: "false"
SPRINGDOC_SWAGGER_UI_PATH: /index.html
# api-docs
SPRINGDOC_API_DOCS_ENABLED: true
SPRINGDOC_API_DOCS_ENABLED: "false"
SPRINGDOC_API_DOCS_PATH: /v3/api-docs
# 百度翻译 https://fanyi-api.baidu.com/doc/21
BYTEDESK_TRANSLATE_BAIDU_APPID: placeholder

View File

@@ -478,10 +478,10 @@ services:
SPRINGDOC_SHOW_ACTUATOR: "false"
# swagger-ui
# http://服务器ip:9003/swagger-ui/index.html
SPRINGDOC_SWAGGER_UI_ENABLED: "true"
SPRINGDOC_SWAGGER_UI_ENABLED: "false"
SPRINGDOC_SWAGGER_UI_PATH: /index.html
# api-docs
SPRINGDOC_API_DOCS_ENABLED: "true"
SPRINGDOC_API_DOCS_ENABLED: "false"
SPRINGDOC_API_DOCS_PATH: /v3/api-docs
# 百度翻译 https://fanyi-api.baidu.com/doc/21
BYTEDESK_TRANSLATE_BAIDU_APPID: placeholder

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-02-21 10:00:32
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-08-22 14:20:01
* @LastEditTime: 2025-09-01 10:41:47
* @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.
@@ -45,4 +45,27 @@ public class MessageRequest extends BaseRequest {
private String componentType;
private String searchDate;
/**
* 判断是否为客服类型会话
*/
public boolean isCustomerServiceType() {
return "AGENT".equals(threadType) || "WORKGROUP".equals(threadType) ||
"ROBOT".equals(threadType) || "UNIFIED".equals(threadType);
}
/**
* 判断是否为成员类型会话
*/
public boolean isMemberType() {
return "MEMBER".equals(threadType);
}
/**
* 判断是否为群聊类型会话
*/
public boolean isGroupType() {
return "GROUP".equals(threadType);
}
}