diff --git a/backend/config-templates/nacos/rui-common.yaml b/backend/config-templates/nacos/rui-common.yaml index fe14972..e24f5b4 100644 --- a/backend/config-templates/nacos/rui-common.yaml +++ b/backend/config-templates/nacos/rui-common.yaml @@ -33,11 +33,7 @@ security: - /notify/** - /actuator/** -# MyBatis Plus 全局配置 -mybatis-plus: - configuration: - map-underscore-to-camel-case: true - cache-enabled: true + # Feign 服务提供者配置(默认走聚合启动器,独立模式请在各服务配置中覆盖) feign: diff --git a/backend/config-templates/nacos/rui-data.yaml b/backend/config-templates/nacos/rui-data.yaml index a9a3323..3788af8 100644 --- a/backend/config-templates/nacos/rui-data.yaml +++ b/backend/config-templates/nacos/rui-data.yaml @@ -14,7 +14,7 @@ spring: min-idle: 5 max-active: 20 max-wait: 60000 - +# MyBatis Plus 全局配置 mybatis-plus: global-config: db-config: @@ -25,6 +25,7 @@ mybatis-plus: logic-not-delete-value: 0 configuration: map-underscore-to-camel-case: true + cache-enabled: true log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mapper-locations: classpath*:/mapper/**/*.xml tenant: diff --git a/backend/config-templates/nacos/rui-service-cache.yaml b/backend/config-templates/nacos/rui-service-cache.yaml deleted file mode 100644 index 090bca6..0000000 --- a/backend/config-templates/nacos/rui-service-cache.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# rui-service-cache.yaml — 缓存服务配置 -# Data ID: rui-service-cache.yaml -# Group: DEFAULT_GROUP -# 功能:Redis缓存封装、分布式锁 - -# 服务端口:9309(缓存服务) -server: - port: 9309 diff --git a/backend/config-templates/nacos/rui-service-file.yaml b/backend/config-templates/nacos/rui-service-file.yaml deleted file mode 100644 index 987fad3..0000000 --- a/backend/config-templates/nacos/rui-service-file.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# rui-service-file.yaml — 文件存储服务配置 -# Data ID: rui-service-file.yaml -# Group: DEFAULT_GROUP -# 功能:文件上传、下载、OOS存储、本地存储 - -# 服务端口:9305(文件服务) -server: - port: 9305 diff --git a/backend/config-templates/nacos/rui-service-log.yaml b/backend/config-templates/nacos/rui-service-log.yaml deleted file mode 100644 index 98de516..0000000 --- a/backend/config-templates/nacos/rui-service-log.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# rui-service-log.yaml — 日志服务配置 -# Data ID: rui-service-log.yaml -# Group: DEFAULT_GROUP -# 功能:日志收集、日志分析、ELK集成 - -# 服务端口:9310(日志服务) -server: - port: 9310 diff --git a/backend/config-templates/nacos/rui-service-monitor.yaml b/backend/config-templates/nacos/rui-service-monitor.yaml deleted file mode 100644 index e70ff14..0000000 --- a/backend/config-templates/nacos/rui-service-monitor.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# rui-service-monitor.yaml — 监控告警服务配置 -# Data ID: rui-service-monitor.yaml -# Group: DEFAULT_GROUP -# 功能:系统监控、性能指标、告警通知 - -# 服务端口:9311(监控服务) -server: - port: 9311 diff --git a/backend/config-templates/nacos/rui-service-msg.yaml b/backend/config-templates/nacos/rui-service-msg.yaml deleted file mode 100644 index 0990564..0000000 --- a/backend/config-templates/nacos/rui-service-msg.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# rui-service-msg.yaml — 消息通知服务配置 -# Data ID: rui-service-msg.yaml -# Group: DEFAULT_GROUP -# 功能:SMS短信、邮件、站内信、App推送 - -# 服务端口:9304(消息服务) -server: - port: 9304 diff --git a/backend/config-templates/nacos/rui-service-order.yaml b/backend/config-templates/nacos/rui-service-order.yaml deleted file mode 100644 index 486374e..0000000 --- a/backend/config-templates/nacos/rui-service-order.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# rui-service-order.yaml — 订单服务配置 -# Data ID: rui-service-order.yaml -# Group: DEFAULT_GROUP - -# 服务端口:9306(订单服务) -server: - port: 9306 diff --git a/backend/config-templates/nacos/rui-service-pay.yaml b/backend/config-templates/nacos/rui-service-pay.yaml deleted file mode 100644 index 12598b1..0000000 --- a/backend/config-templates/nacos/rui-service-pay.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# rui-service-pay.yaml — 支付服务配置 -# Data ID: rui-service-pay.yaml -# Group: DEFAULT_GROUP -# 功能:支付通道、支付回调、对账 - -# 服务端口:9307(支付服务) -server: - port: 9307 - -# 支付模块配置 -payment: - # 订单超时时间(分钟) - order-timeout: 30 - # 分账延迟时间(天) - split-delay-days: 7 - # 佣金结算周期 - commission-settle-cycle: T+1 - # 通知重试次数 - notify-max-times: 5 - # 通知间隔(秒) - notify-intervals: 15,30,60,300,900 - -# 渠道配置(示例) -payment: - channels: - alipay: - enabled: true - sandbox: true - app-id: ${ALIPAY_APP_ID:} - private-key: ${ALIPAY_PRIVATE_KEY:} - public-key: ${ALIPAY_PUBLIC_KEY:} - notify-url: http://localhost:9307/payment/notify/alipay - wechat_pay: - enabled: true - sandbox: true - app-id: ${WXPAY_APP_ID:} - mch-id: ${WXPAY_MCH_ID:} - api-v3-key: ${WXPAY_API_V3_KEY:} - notify-url: http://localhost:9307/payment/notify/wechat_pay - -# 安全白名单 -security: - oauth2: - ignore-urls: - - /payment/entry/** - - /payment/notify/** - -# Swagger 文档 -springdoc: - swagger-ui: - enabled: true - path: /swagger-ui.html - api-docs: - enabled: true - path: /v3/api-docs - -knife4j: - enable: true - setting: - language: zh_cn diff --git a/backend/config-templates/nacos/rui-service-search.yaml b/backend/config-templates/nacos/rui-service-search.yaml deleted file mode 100644 index 46ae7c3..0000000 --- a/backend/config-templates/nacos/rui-service-search.yaml +++ /dev/null @@ -1,8 +0,0 @@ -# rui-service-search.yaml — 搜索服务配置 -# Data ID: rui-service-search.yaml -# Group: DEFAULT_GROUP -# 功能:Elasticsearch封装、全文检索 - -# 服务端口:9308(搜索服务) -server: - port: 9308