wangqi49 1 месяц назад
Родитель
Сommit
a3de1672dc

+ 21 - 0
.gitignore

@@ -0,0 +1,21 @@
+.idea/
+**/target/
+*.iml
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Cursive Clojure plugin
+.idea/replstate.xml
+.DS_Store
+.settings
+logs/
+.vscode
+**/.classpath/
+**/.factorypath/
+**/.project/
+**/.DS_Store
+**/target

+ 3 - 0
resources/nacos-yaml/webchat-act-service-dev.yaml

@@ -0,0 +1,3 @@
+spring:
+  application:
+    name: webchat-act-service

+ 15 - 1
resources/nacos-yaml/webchat-admin-service-dev.yaml

@@ -3,9 +3,23 @@ spring:
     multipart:
       max-file-size: 10MB
       max-request-size: 10MB
+  data:
+    redis:
+      host: 127.0.0.1
+      port: 6379
+      database: 6
+      jedis:
+        timeout: 5000
+        pool:
+          max-active: 100
+          max-wait: -1
+          min-idle: 10
 
 minio:
   endpoint: http://127.0.0.1:9000
   accessKey: BArEoI6PE8uGh13jHRuN
   secretKey: eHRL9vpXUH6vGOGkL5Vth2ZQRpzh7AvdKzNlASko
-  bucketName: webchat
+  bucketName: webchat
+
+oauth:
+  server-url: http://localhost:5000/?call_back=%s

+ 35 - 0
resources/nacos-yaml/webchat-aigc-service-dev.yaml

@@ -0,0 +1,35 @@
+spring:
+  mvc:
+    async:
+      request-timeout: -1
+  #---------------------------------redis----------------------------------#
+  data:
+    redis:
+      host: 127.0.0.1
+      port: 6379
+      database: 6
+      jedis:
+        timeout: 5000
+        pool:
+          max-active: 100
+          max-wait: -1
+          min-idle: 10
+# 大模型配置,应用于对话机器人
+llm:
+  config:
+    # 当前开启使用哪个模型 kimi or deepseek
+    model: deepseek
+    kimi:
+      api-key: sk-BsG4iFzdpTBbrsx5cCMlTVCRzI5pdlwGco8286ranZ746aX6
+      model: moonshot-v1-32k
+    deepseek:
+      api-key: sk-452335792fa14341bb8d47c687c81f41
+      model: deepseek-chat
+    liblib:
+      accessKey: at4oOOb07YDuCFhICHWE-g
+      SecretKey: XegvK69OprhgesBBD6R5ohJlc9y0wqVC
+
+rocketmq:
+  name-server: 127.0.0.1:9876
+  consumer:
+    group: web_chat

+ 15 - 1
resources/nacos-yaml/webchat-client-chat-service-dev.yaml

@@ -3,9 +3,23 @@ spring:
     multipart:
       max-file-size: 10MB
       max-request-size: 10MB
+  data:
+    redis:
+      host: 127.0.0.1
+      port: 6379
+      database: 6
+      jedis:
+        timeout: 5000
+        pool:
+          max-active: 100
+          max-wait: -1
+          min-idle: 10
 
 minio:
   endpoint: http://127.0.0.1:9000
   accessKey: BArEoI6PE8uGh13jHRuN
   secretKey: eHRL9vpXUH6vGOGkL5Vth2ZQRpzh7AvdKzNlASko
-  bucketName: webchat
+  bucketName: webchat
+
+oauth:
+  server-url: http://localhost:5000/?call_back=%s

+ 18 - 6
resources/nacos-yaml/webchat-connect-service-dev.yaml

@@ -1,12 +1,24 @@
 spring:
+  mvc:
+    async:
+      request-timeout: -1
+  main:
+    allow-bean-definition-overriding: true
   data:
     redis:
       host: 127.0.0.1
       port: 6379
-      database: 0
+      database: 6
       jedis:
-      timeout: 5000
-      pool:
-        max-active: 100
-        max-wait: -1
-        min-idle: 10
+        timeout: 5000
+        pool:
+          max-active: 100
+          max-wait: -1
+          min-idle: 10
+
+rocketmq:
+  name-server: 127.0.0.1:9876
+  consumer:
+    group: web_chat
+  producer:
+    group: web_chat

+ 3 - 0
resources/nacos-yaml/webchat-gateway-service-dev.yaml

@@ -0,0 +1,3 @@
+spring:
+  application:
+    name: webchat-gateway-service

+ 2 - 2
resources/nacos-yaml/webchat-pay-service-dev.yaml

@@ -1,7 +1,7 @@
 spring:
   # set mysql config
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/webchat?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=false
+    url: jdbc:mysql://127.0.0.1:3306/webchat_payment?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=false
     username: root
     password: 12345678
     driver-class-name: com.mysql.jdbc.Driver
@@ -14,7 +14,7 @@ spring:
     redis:
       host: 127.0.0.1
       port: 6379
-      database: 0
+      database: 6
       jedis:
         timeout: 5000
         pool:

+ 1 - 1
resources/nacos-yaml/webchat-pgc-service-dev.yaml

@@ -22,7 +22,7 @@ spring:
   data:
     redis:
     port: 6379
-    database: 0
+    database: 6
     jedis:
       pool:
       max-active: 100

+ 3 - 0
resources/nacos-yaml/webchat-search-service-dev.yaml

@@ -0,0 +1,3 @@
+spring:
+  application:
+    name: webchat-search-service

+ 17 - 0
resources/nacos-yaml/webchat-sso-service-dev.yaml

@@ -0,0 +1,17 @@
+spring:
+  data:
+    redis:
+      host: 127.0.0.1
+      port: 6379
+      database: 2
+      jedis:
+        timeout: 5000
+        pool:
+          max-active: 100
+          max-wait: -1
+          min-idle: 10
+minio:
+  endpoint: http://127.0.0.1:9000
+  accessKey: BArEoI6PE8uGh13jHRuN
+  secretKey: eHRL9vpXUH6vGOGkL5Vth2ZQRpzh7AvdKzNlASko
+  bucketName: webchat

+ 37 - 0
resources/nacos-yaml/webchat-ugc-service-dev.yaml

@@ -0,0 +1,37 @@
+spring:
+  datasource:
+    url: jdbc:mysql://127.0.0.1:3306/webchat_ugc?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&&useSSL=false
+    username: root
+    password: 12345678
+    driver-class-name: com.mysql.jdbc.Driver
+    type: com.zaxxer.hikari.HikariDataSource
+    hikari:
+    minimum-idle: 10
+    maximum-pool-size: 50
+    auto-commit: false
+    idle-timeout: 30000
+    pool-name: DatebookHikariCP
+    max-lifetime: 1800000
+    connection-timeout: 30000
+    connection-test-query: SELECT 1
+    connection-init-sql: set names utf8mb4
+  jpa:
+    show-sql: true
+  data:
+    redis:
+      host: 127.0.0.1
+      port: 6379
+      database: 6
+      jedis:
+        timeout: 5000
+        pool:
+          max-active: 100
+          max-wait: -1
+          min-idle: 10
+
+rocketmq:
+  name-server: 127.0.0.1:9876
+  consumer:
+    group: web_chat
+  producer:
+    group: web_chat

+ 10 - 3
resources/nacos-yaml/webchat-user-service-dev.yaml

@@ -1,6 +1,8 @@
 spring:
+  main:
+    allow-bean-definition-overriding: true
   datasource:
-    url: jdbc:mysql://127.0.0.1:3306/webchat_user?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8
+    url: jdbc:mysql://127.0.0.1:3306/webchat_user?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
     username: root
     password: 12345678
     driver-class-name: com.mysql.jdbc.Driver
@@ -12,10 +14,15 @@ spring:
     redis:
       host: 127.0.0.1
       port: 6379
-      database: 0
+      database: 6
       jedis:
         timeout: 5000
         pool:
           max-active: 100
           max-wait: -1
-          min-idle: 10
+          min-idle: 10
+
+rocketmq:
+  producer:
+    group: web_chat
+  name-server: 127.0.0.1:9876