diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bba7b53 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target/ +/.idea/ diff --git a/target/classes/application-dev.yml b/target/classes/application-dev.yml deleted file mode 100644 index fb60211..0000000 --- a/target/classes/application-dev.yml +++ /dev/null @@ -1,49 +0,0 @@ -server: - port: 8080 - -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/wecom_robot?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true - username: root - password: jiong1114 - redis: - host: localhost - port: 6379 - password: - database: 0 - timeout: 10000 - lettuce: - pool: - max-active: 8 - max-wait: -1 - max-idle: 8 - min-idle: 0 - -mybatis-plus: - configuration: - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - -wecom: - corp-id: ww29e81e73b1f4c6fd - agent-id: 1000006 - secret: vltAfKVAH1bqo6WjB99rJaH6iQSXDyx3uf3hbbA8F-M - token: 2wuT6pE - encoding-aes-key: l0boKM2eqcGT3xV2O03y6VXx9U5l25u0tWQsgF3aNPT - -ai: - enabled: true - provider: deepseek - deepseek: - api-key: sk-6cdd32d6d49d4d399b479d99e02d1672 - base-url: https://api.deepseek.com/v1 - model: deepseek-chat - openai: - api-key: your_openai_api_key - base-url: https://api.openai.com/v1 - model: gpt-3.5-turbo - -logging: - level: - com.wecom.robot: debug - org.springframework.web: info diff --git a/target/classes/application-prod.yml b/target/classes/application-prod.yml deleted file mode 100644 index d5f72e8..0000000 --- a/target/classes/application-prod.yml +++ /dev/null @@ -1,49 +0,0 @@ -server: - port: 8080 - -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://host.docker.internal:3316/wecom_robot?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true - username: root - password: jiong1114 - redis: - host: host.docker.internal - port: 6379 - password: jiong1114 - database: 0 - timeout: 10000 - lettuce: - pool: - max-active: 16 - max-wait: -1 - max-idle: 8 - min-idle: 2 - -mybatis-plus: - configuration: - log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl - -wecom: - corp-id: ww29e81e73b1f4c6fd - agent-id: 1000006 - secret: vltAfKVAH1bqo6WjB99rJaH6iQSXDyx3uf3hbbA8F-M - token: 2wuT6pE - encoding-aes-key: l0boKM2eqcGT3xV2O03y6VXx9U5l25u0tWQsgF3aNPT - -ai: - enabled: true - provider: deepseek - deepseek: - api-key: sk-6cdd32d6d49d4d399b479d99e02d1672 - base-url: https://api.deepseek.com/v1 - model: deepseek-chat - openai: - api-key: your_openai_api_key - base-url: https://api.openai.com/v1 - model: gpt-3.5-turbo - -logging: - level: - com.wecom.robot: info - org.springframework.web: warn diff --git a/target/classes/application.yml b/target/classes/application.yml deleted file mode 100644 index 5314849..0000000 --- a/target/classes/application.yml +++ /dev/null @@ -1,30 +0,0 @@ -server: - port: 8080 - -spring: - application: - name: wecom-robot - profiles: - active: dev - -mybatis-plus: - mapper-locations: classpath:mapper/*.xml - type-aliases-package: com.wecom.robot.entity - configuration: - map-underscore-to-camel-case: true - -wecom: - kf: - callback-url: /wecom/callback - -transfer: - keywords: - - 人工 - - 转人工 - - 投诉 - - 客服 - - 人工客服 - confidence-threshold: 0.6 - max-fail-rounds: 3 - max-session-duration: 1800000 - max-message-rounds: 50 diff --git a/target/classes/com/wecom/robot/WecomRobotApplication.class b/target/classes/com/wecom/robot/WecomRobotApplication.class deleted file mode 100644 index 0c23894..0000000 Binary files a/target/classes/com/wecom/robot/WecomRobotApplication.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/config/AiConfig$DeepSeekConfig.class b/target/classes/com/wecom/robot/config/AiConfig$DeepSeekConfig.class deleted file mode 100644 index eb64c54..0000000 Binary files a/target/classes/com/wecom/robot/config/AiConfig$DeepSeekConfig.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/config/AiConfig$OpenAiConfig.class b/target/classes/com/wecom/robot/config/AiConfig$OpenAiConfig.class deleted file mode 100644 index b15f1b2..0000000 Binary files a/target/classes/com/wecom/robot/config/AiConfig$OpenAiConfig.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/config/AiConfig.class b/target/classes/com/wecom/robot/config/AiConfig.class deleted file mode 100644 index d2d34fc..0000000 Binary files a/target/classes/com/wecom/robot/config/AiConfig.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/config/TransferConfig.class b/target/classes/com/wecom/robot/config/TransferConfig.class deleted file mode 100644 index d4cd377..0000000 Binary files a/target/classes/com/wecom/robot/config/TransferConfig.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/config/WebSocketConfig.class b/target/classes/com/wecom/robot/config/WebSocketConfig.class deleted file mode 100644 index 1aec11b..0000000 Binary files a/target/classes/com/wecom/robot/config/WebSocketConfig.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/config/WecomConfig$KfConfig.class b/target/classes/com/wecom/robot/config/WecomConfig$KfConfig.class deleted file mode 100644 index 29b701a..0000000 Binary files a/target/classes/com/wecom/robot/config/WecomConfig$KfConfig.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/config/WecomConfig.class b/target/classes/com/wecom/robot/config/WecomConfig.class deleted file mode 100644 index 6151d5e..0000000 Binary files a/target/classes/com/wecom/robot/config/WecomConfig.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/controller/ChatHistoryController.class b/target/classes/com/wecom/robot/controller/ChatHistoryController.class deleted file mode 100644 index 669bb49..0000000 Binary files a/target/classes/com/wecom/robot/controller/ChatHistoryController.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/controller/DebugController.class b/target/classes/com/wecom/robot/controller/DebugController.class deleted file mode 100644 index 6f06e2e..0000000 Binary files a/target/classes/com/wecom/robot/controller/DebugController.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/controller/SessionController.class b/target/classes/com/wecom/robot/controller/SessionController.class deleted file mode 100644 index 45ef165..0000000 Binary files a/target/classes/com/wecom/robot/controller/SessionController.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/controller/TestController.class b/target/classes/com/wecom/robot/controller/TestController.class deleted file mode 100644 index 2e3fb08..0000000 Binary files a/target/classes/com/wecom/robot/controller/TestController.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/controller/WecomCallbackController.class b/target/classes/com/wecom/robot/controller/WecomCallbackController.class deleted file mode 100644 index e69c22c..0000000 Binary files a/target/classes/com/wecom/robot/controller/WecomCallbackController.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/AcceptSessionRequest.class b/target/classes/com/wecom/robot/dto/AcceptSessionRequest.class deleted file mode 100644 index c5f51b8..0000000 Binary files a/target/classes/com/wecom/robot/dto/AcceptSessionRequest.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ApiResponse.class b/target/classes/com/wecom/robot/dto/ApiResponse.class deleted file mode 100644 index 831d22a..0000000 Binary files a/target/classes/com/wecom/robot/dto/ApiResponse.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ChatCompletionRequest$Message.class b/target/classes/com/wecom/robot/dto/ChatCompletionRequest$Message.class deleted file mode 100644 index 0ffd94b..0000000 Binary files a/target/classes/com/wecom/robot/dto/ChatCompletionRequest$Message.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ChatCompletionRequest.class b/target/classes/com/wecom/robot/dto/ChatCompletionRequest.class deleted file mode 100644 index 2a146a8..0000000 Binary files a/target/classes/com/wecom/robot/dto/ChatCompletionRequest.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Choice.class b/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Choice.class deleted file mode 100644 index b6f6659..0000000 Binary files a/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Choice.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Message.class b/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Message.class deleted file mode 100644 index e96ba61..0000000 Binary files a/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Message.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Usage.class b/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Usage.class deleted file mode 100644 index 4b3b909..0000000 Binary files a/target/classes/com/wecom/robot/dto/ChatCompletionResponse$Usage.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ChatCompletionResponse.class b/target/classes/com/wecom/robot/dto/ChatCompletionResponse.class deleted file mode 100644 index 74a8a25..0000000 Binary files a/target/classes/com/wecom/robot/dto/ChatCompletionResponse.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/MessageInfo.class b/target/classes/com/wecom/robot/dto/MessageInfo.class deleted file mode 100644 index d2c6447..0000000 Binary files a/target/classes/com/wecom/robot/dto/MessageInfo.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SendMessageRequest.class b/target/classes/com/wecom/robot/dto/SendMessageRequest.class deleted file mode 100644 index 3729793..0000000 Binary files a/target/classes/com/wecom/robot/dto/SendMessageRequest.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/ServiceStateResponse.class b/target/classes/com/wecom/robot/dto/ServiceStateResponse.class deleted file mode 100644 index 30a9171..0000000 Binary files a/target/classes/com/wecom/robot/dto/ServiceStateResponse.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SessionInfo.class b/target/classes/com/wecom/robot/dto/SessionInfo.class deleted file mode 100644 index 29e960c..0000000 Binary files a/target/classes/com/wecom/robot/dto/SessionInfo.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$BusinessCardContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$BusinessCardContent.class deleted file mode 100644 index d512a76..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$BusinessCardContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$EventContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$EventContent.class deleted file mode 100644 index 55fca34..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$EventContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$FileContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$FileContent.class deleted file mode 100644 index 07eefbf..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$FileContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$ImageContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$ImageContent.class deleted file mode 100644 index 5770324..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$ImageContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$LinkContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$LinkContent.class deleted file mode 100644 index f549022..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$LinkContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$LocationContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$LocationContent.class deleted file mode 100644 index d023099..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$LocationContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuClick.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuClick.class deleted file mode 100644 index 0b75631..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuClick.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuItem.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuItem.class deleted file mode 100644 index cbb57e6..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuItem.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuMiniprogram.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuMiniprogram.class deleted file mode 100644 index e3c2b7e..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuMiniprogram.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuView.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuView.class deleted file mode 100644 index 8afa36d..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MenuView.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MiniprogramContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$MiniprogramContent.class deleted file mode 100644 index 15f571e..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MiniprogramContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MsgItem.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$MsgItem.class deleted file mode 100644 index af7dee7..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MsgItem.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MsgMenuContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$MsgMenuContent.class deleted file mode 100644 index 4ec5552..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$MsgMenuContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$TextContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$TextContent.class deleted file mode 100644 index a004cbf..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$TextContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$VideoContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$VideoContent.class deleted file mode 100644 index fa5e796..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$VideoContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$VoiceContent.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$VoiceContent.class deleted file mode 100644 index 5a3942d..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$VoiceContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse$WechatChannels.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse$WechatChannels.class deleted file mode 100644 index 8bdc885..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse$WechatChannels.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/SyncMsgResponse.class b/target/classes/com/wecom/robot/dto/SyncMsgResponse.class deleted file mode 100644 index c56a257..0000000 Binary files a/target/classes/com/wecom/robot/dto/SyncMsgResponse.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/WxAccessToken.class b/target/classes/com/wecom/robot/dto/WxAccessToken.class deleted file mode 100644 index 67499b1..0000000 Binary files a/target/classes/com/wecom/robot/dto/WxAccessToken.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/WxCallbackMessage.class b/target/classes/com/wecom/robot/dto/WxCallbackMessage.class deleted file mode 100644 index 572bec5..0000000 Binary files a/target/classes/com/wecom/robot/dto/WxCallbackMessage.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/WxSendMessageRequest$ImageContent.class b/target/classes/com/wecom/robot/dto/WxSendMessageRequest$ImageContent.class deleted file mode 100644 index 6357a0c..0000000 Binary files a/target/classes/com/wecom/robot/dto/WxSendMessageRequest$ImageContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/WxSendMessageRequest$LinkContent.class b/target/classes/com/wecom/robot/dto/WxSendMessageRequest$LinkContent.class deleted file mode 100644 index 0d8b949..0000000 Binary files a/target/classes/com/wecom/robot/dto/WxSendMessageRequest$LinkContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/WxSendMessageRequest$TextContent.class b/target/classes/com/wecom/robot/dto/WxSendMessageRequest$TextContent.class deleted file mode 100644 index 06d6650..0000000 Binary files a/target/classes/com/wecom/robot/dto/WxSendMessageRequest$TextContent.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/dto/WxSendMessageRequest.class b/target/classes/com/wecom/robot/dto/WxSendMessageRequest.class deleted file mode 100644 index 9566578..0000000 Binary files a/target/classes/com/wecom/robot/dto/WxSendMessageRequest.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/entity/KfAccount.class b/target/classes/com/wecom/robot/entity/KfAccount.class deleted file mode 100644 index 393c3bb..0000000 Binary files a/target/classes/com/wecom/robot/entity/KfAccount.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/entity/Message.class b/target/classes/com/wecom/robot/entity/Message.class deleted file mode 100644 index 4b63902..0000000 Binary files a/target/classes/com/wecom/robot/entity/Message.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/entity/Session.class b/target/classes/com/wecom/robot/entity/Session.class deleted file mode 100644 index 018ca05..0000000 Binary files a/target/classes/com/wecom/robot/entity/Session.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/entity/TransferLog.class b/target/classes/com/wecom/robot/entity/TransferLog.class deleted file mode 100644 index d6a9c76..0000000 Binary files a/target/classes/com/wecom/robot/entity/TransferLog.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/mapper/KfAccountMapper.class b/target/classes/com/wecom/robot/mapper/KfAccountMapper.class deleted file mode 100644 index 21fb185..0000000 Binary files a/target/classes/com/wecom/robot/mapper/KfAccountMapper.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/mapper/MessageMapper.class b/target/classes/com/wecom/robot/mapper/MessageMapper.class deleted file mode 100644 index a501825..0000000 Binary files a/target/classes/com/wecom/robot/mapper/MessageMapper.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/mapper/SessionMapper.class b/target/classes/com/wecom/robot/mapper/SessionMapper.class deleted file mode 100644 index 5b077e4..0000000 Binary files a/target/classes/com/wecom/robot/mapper/SessionMapper.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/mapper/TransferLogMapper.class b/target/classes/com/wecom/robot/mapper/TransferLogMapper.class deleted file mode 100644 index fa64fa7..0000000 Binary files a/target/classes/com/wecom/robot/mapper/TransferLogMapper.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/service/AiService.class b/target/classes/com/wecom/robot/service/AiService.class deleted file mode 100644 index 3ba90f3..0000000 Binary files a/target/classes/com/wecom/robot/service/AiService.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/service/MessageProcessService.class b/target/classes/com/wecom/robot/service/MessageProcessService.class deleted file mode 100644 index 7654a45..0000000 Binary files a/target/classes/com/wecom/robot/service/MessageProcessService.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/service/SessionManagerService.class b/target/classes/com/wecom/robot/service/SessionManagerService.class deleted file mode 100644 index f3836af..0000000 Binary files a/target/classes/com/wecom/robot/service/SessionManagerService.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/service/TransferService.class b/target/classes/com/wecom/robot/service/TransferService.class deleted file mode 100644 index 8a4aa4c..0000000 Binary files a/target/classes/com/wecom/robot/service/TransferService.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/service/WebSocketService.class b/target/classes/com/wecom/robot/service/WebSocketService.class deleted file mode 100644 index ff4cdc8..0000000 Binary files a/target/classes/com/wecom/robot/service/WebSocketService.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/service/WecomApiService.class b/target/classes/com/wecom/robot/service/WecomApiService.class deleted file mode 100644 index b0b4e60..0000000 Binary files a/target/classes/com/wecom/robot/service/WecomApiService.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/AesException.class b/target/classes/com/wecom/robot/util/AesException.class deleted file mode 100644 index 675df0b..0000000 Binary files a/target/classes/com/wecom/robot/util/AesException.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/ByteGroup.class b/target/classes/com/wecom/robot/util/ByteGroup.class deleted file mode 100644 index feac60b..0000000 Binary files a/target/classes/com/wecom/robot/util/ByteGroup.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/PKCS7Encoder.class b/target/classes/com/wecom/robot/util/PKCS7Encoder.class deleted file mode 100644 index 2e7d311..0000000 Binary files a/target/classes/com/wecom/robot/util/PKCS7Encoder.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/SHA1.class b/target/classes/com/wecom/robot/util/SHA1.class deleted file mode 100644 index 3125173..0000000 Binary files a/target/classes/com/wecom/robot/util/SHA1.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/Sample.class b/target/classes/com/wecom/robot/util/Sample.class deleted file mode 100644 index 5e8e4f0..0000000 Binary files a/target/classes/com/wecom/robot/util/Sample.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/WXBizMsgCrypt.class b/target/classes/com/wecom/robot/util/WXBizMsgCrypt.class deleted file mode 100644 index 42527bd..0000000 Binary files a/target/classes/com/wecom/robot/util/WXBizMsgCrypt.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/XMLParse.class b/target/classes/com/wecom/robot/util/XMLParse.class deleted file mode 100644 index 00452c9..0000000 Binary files a/target/classes/com/wecom/robot/util/XMLParse.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/util/XmlUtil.class b/target/classes/com/wecom/robot/util/XmlUtil.class deleted file mode 100644 index 080f29f..0000000 Binary files a/target/classes/com/wecom/robot/util/XmlUtil.class and /dev/null differ diff --git a/target/classes/com/wecom/robot/websocket/CsWebSocketHandler.class b/target/classes/com/wecom/robot/websocket/CsWebSocketHandler.class deleted file mode 100644 index 271cb4b..0000000 Binary files a/target/classes/com/wecom/robot/websocket/CsWebSocketHandler.class and /dev/null differ diff --git a/target/classes/db/init.sql b/target/classes/db/init.sql deleted file mode 100644 index 8ce7c8e..0000000 --- a/target/classes/db/init.sql +++ /dev/null @@ -1,77 +0,0 @@ --- 创建数据库 -CREATE DATABASE IF NOT EXISTS wecom_robot DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - -USE wecom_robot; - --- 会话表 -CREATE TABLE IF NOT EXISTS `session` ( - `session_id` VARCHAR(128) NOT NULL COMMENT '会话ID', - `customer_id` VARCHAR(64) NOT NULL COMMENT '客户ID (external_userid)', - `kf_id` VARCHAR(64) NOT NULL COMMENT '客服账号ID (open_kfid)', - `status` VARCHAR(20) NOT NULL DEFAULT 'AI' COMMENT '状态: AI/PENDING/MANUAL/CLOSED', - `wx_service_state` INT DEFAULT 0 COMMENT '微信会话状态: 0-未处理/1-智能助手/2-待接入池/3-人工接待/4-已结束', - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - `manual_cs_id` VARCHAR(64) DEFAULT NULL COMMENT '人工客服ID', - `metadata` TEXT DEFAULT NULL COMMENT '扩展信息JSON', - PRIMARY KEY (`session_id`), - INDEX `idx_customer_id` (`customer_id`), - INDEX `idx_kf_id` (`kf_id`), - INDEX `idx_status` (`status`), - INDEX `idx_updated_at` (`updated_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='会话表'; - --- 消息表 -CREATE TABLE IF NOT EXISTS `message` ( - `msg_id` VARCHAR(128) NOT NULL COMMENT '消息ID', - `session_id` VARCHAR(128) NOT NULL COMMENT '会话ID', - `sender_type` VARCHAR(20) NOT NULL COMMENT '发送者类型: customer/ai/manual', - `sender_id` VARCHAR(64) NOT NULL COMMENT '发送者标识', - `content` TEXT NOT NULL COMMENT '消息内容', - `msg_type` VARCHAR(20) NOT NULL DEFAULT 'text' COMMENT '消息类型: text/image/link等', - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `raw_data` TEXT DEFAULT NULL COMMENT '原始消息数据JSON', - PRIMARY KEY (`msg_id`), - INDEX `idx_session_id` (`session_id`), - INDEX `idx_created_at` (`created_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息表'; - --- 客服账号表 -CREATE TABLE IF NOT EXISTS `kf_account` ( - `kf_id` VARCHAR(64) NOT NULL COMMENT '客服账号ID', - `name` VARCHAR(100) DEFAULT NULL COMMENT '客服昵称', - `avatar` VARCHAR(500) DEFAULT NULL COMMENT '头像URL', - `status` VARCHAR(20) NOT NULL DEFAULT 'offline' COMMENT '状态: online/offline', - `bind_manual_id` VARCHAR(64) DEFAULT NULL COMMENT '绑定的企业微信员工ID', - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', - PRIMARY KEY (`kf_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='客服账号表'; - --- 转人工记录表 -CREATE TABLE IF NOT EXISTS `transfer_log` ( - `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '自增ID', - `session_id` VARCHAR(128) NOT NULL COMMENT '会话ID', - `trigger_reason` VARCHAR(200) DEFAULT NULL COMMENT '触发原因', - `trigger_time` DATETIME NOT NULL COMMENT '触发时间', - `accepted_time` DATETIME DEFAULT NULL COMMENT '客服接入时间', - `accepted_cs_id` VARCHAR(64) DEFAULT NULL COMMENT '接入的客服ID', - PRIMARY KEY (`id`), - INDEX `idx_session_id` (`session_id`), - INDEX `idx_trigger_time` (`trigger_time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='转人工记录表'; - --- 快捷回复表 (可选) -CREATE TABLE IF NOT EXISTS `quick_reply` ( - `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '自增ID', - `cs_id` VARCHAR(64) DEFAULT NULL COMMENT '客服ID,为空表示公共', - `category` VARCHAR(50) DEFAULT NULL COMMENT '分类', - `content` VARCHAR(500) NOT NULL COMMENT '回复内容', - `sort_order` INT DEFAULT 0 COMMENT '排序', - `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - PRIMARY KEY (`id`), - INDEX `idx_cs_id` (`cs_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='快捷回复表'; - --- 如果表已存在,添加新字段 -ALTER TABLE `session` ADD COLUMN IF NOT EXISTS `wx_service_state` INT DEFAULT 0 COMMENT '微信会话状态'; diff --git a/target/classes/static/chat-history.html b/target/classes/static/chat-history.html deleted file mode 100644 index 3912e0c..0000000 --- a/target/classes/static/chat-history.html +++ /dev/null @@ -1,455 +0,0 @@ - - - - - - 聊天记录查询 - - - -
-
-

聊天记录查询

-

查看各客服账号的历史聊天记录

-
- -
-
- - -
-
- - -
- - -
- -
-
-
- 会话列表 (0) -
-
-
请选择客服账号并查询
-
-
- -
-
-
请选择会话查看聊天记录
-
-
-
- - - -

选择左侧会话查看聊天记录

-
-
-
-
-
- - - - diff --git a/target/classes/static/customer.html b/target/classes/static/customer.html deleted file mode 100644 index 34c509c..0000000 --- a/target/classes/static/customer.html +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - 客户模拟端 - - - -
-
-
- 12:00 - 📶 🔋 -
-
智能客服
-
AI在线
-
- -
-
会话已开始
-
-
客服
-
您好!我是智能客服,有什么可以帮您的吗?
-
刚刚
-
-
- -
-
- - -
-
- - - -
-
- - - -
-

测试设置

- - - - -
-
- - - - diff --git a/target/classes/static/index.html b/target/classes/static/index.html deleted file mode 100644 index d4e2c5f..0000000 --- a/target/classes/static/index.html +++ /dev/null @@ -1,638 +0,0 @@ - - - - - - 人工客服工作台 - - - - - -
- -
-
-

请从左侧选择一个会话

-

WebSocket: 未连接

-
-
-
- -
-

🧪 模拟客户消息

- - - - - -
- - - - diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties deleted file mode 100644 index e5c90b8..0000000 --- a/target/maven-archiver/pom.properties +++ /dev/null @@ -1,3 +0,0 @@ -artifactId=wecom-robot -groupId=com.wecom -version=1.0.0 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst deleted file mode 100644 index 414a402..0000000 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ /dev/null @@ -1,46 +0,0 @@ -com\wecom\robot\dto\WxAccessToken.class -com\wecom\robot\dto\ChatCompletionResponse$Choice.class -com\wecom\robot\dto\WxCallbackMessage.class -com\wecom\robot\websocket\CsWebSocketHandler.class -com\wecom\robot\dto\AcceptSessionRequest.class -com\wecom\robot\dto\SyncMsgResponse$MsgItem.class -com\wecom\robot\dto\WxSendMessageRequest$TextContent.class -com\wecom\robot\controller\WecomCallbackController.class -com\wecom\robot\dto\WxSendMessageRequest$ImageContent.class -com\wecom\robot\config\AiConfig$DeepSeekConfig.class -com\wecom\robot\mapper\TransferLogMapper.class -com\wecom\robot\service\WecomApiService.class -com\wecom\robot\dto\SyncMsgResponse.class -com\wecom\robot\dto\SessionInfo.class -com\wecom\robot\config\WecomConfig$KfConfig.class -com\wecom\robot\dto\WxSendMessageRequest$LinkContent.class -com\wecom\robot\mapper\KfAccountMapper.class -com\wecom\robot\service\MessageProcessService.class -com\wecom\robot\dto\ApiResponse.class -com\wecom\robot\mapper\MessageMapper.class -com\wecom\robot\config\AiConfig$OpenAiConfig.class -com\wecom\robot\dto\ChatCompletionResponse$Usage.class -com\wecom\robot\dto\MessageInfo.class -com\wecom\robot\WecomRobotApplication.class -com\wecom\robot\dto\ChatCompletionResponse.class -com\wecom\robot\config\WecomConfig.class -com\wecom\robot\dto\ChatCompletionRequest.class -com\wecom\robot\dto\ChatCompletionResponse$Message.class -com\wecom\robot\service\AiService.class -com\wecom\robot\util\XmlUtil.class -com\wecom\robot\service\WebSocketService.class -com\wecom\robot\config\TransferConfig.class -com\wecom\robot\dto\ChatCompletionRequest$Message.class -com\wecom\robot\dto\SendMessageRequest.class -com\wecom\robot\service\TransferService.class -com\wecom\robot\controller\SessionController.class -com\wecom\robot\entity\Session.class -com\wecom\robot\controller\TestController.class -com\wecom\robot\entity\Message.class -com\wecom\robot\entity\TransferLog.class -com\wecom\robot\service\SessionManagerService.class -com\wecom\robot\dto\WxSendMessageRequest.class -com\wecom\robot\entity\KfAccount.class -com\wecom\robot\config\AiConfig.class -com\wecom\robot\mapper\SessionMapper.class -com\wecom\robot\config\WebSocketConfig.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst deleted file mode 100644 index 4e6a6dd..0000000 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ /dev/null @@ -1,45 +0,0 @@ -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\entity\Session.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\service\WebSocketService.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\controller\WecomCallbackController.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\PKCS7Encoder.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\Sample.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\config\AiConfig.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\controller\DebugController.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\ApiResponse.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\XMLParse.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\SessionInfo.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\SyncMsgResponse.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\entity\TransferLog.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\SendMessageRequest.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\websocket\CsWebSocketHandler.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\mapper\MessageMapper.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\mapper\SessionMapper.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\WecomRobotApplication.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\XmlUtil.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\ChatCompletionRequest.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\AcceptSessionRequest.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\controller\SessionController.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\service\SessionManagerService.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\AesException.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\WXBizMsgCrypt.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\config\WebSocketConfig.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\service\TransferService.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\MessageInfo.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\service\MessageProcessService.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\ChatCompletionResponse.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\service\AiService.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\ByteGroup.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\WxCallbackMessage.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\entity\Message.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\service\WecomApiService.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\ServiceStateResponse.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\config\TransferConfig.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\entity\KfAccount.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\mapper\TransferLogMapper.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\mapper\KfAccountMapper.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\controller\TestController.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\controller\ChatHistoryController.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\util\SHA1.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\config\WecomConfig.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\WxAccessToken.java -E:\AiProject\wecom-robot\src\main\java\com\wecom\robot\dto\WxSendMessageRequest.java diff --git a/target/wecom-robot-1.0.0.jar b/target/wecom-robot-1.0.0.jar deleted file mode 100644 index 2dcfe0d..0000000 Binary files a/target/wecom-robot-1.0.0.jar and /dev/null differ diff --git a/target/wecom-robot-1.0.0.jar.original b/target/wecom-robot-1.0.0.jar.original deleted file mode 100644 index 1fce2b3..0000000 Binary files a/target/wecom-robot-1.0.0.jar.original and /dev/null differ