From afb72d28db0641fe89aada07fff718326b93ca7c Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Thu, 13 Feb 2025 18:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bootstrap-smart_canteen_local.yml | 3 +- scripts_244/smart_canteen_bootstrap.yml | 69 +++++++++++++++++++ 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/bootstrap-smart_canteen_local.yml b/bonus-modules/bonus-smart-canteen/src/main/resources/bootstrap-smart_canteen_local.yml index c48c0a07..16ba80b2 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/bootstrap-smart_canteen_local.yml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/bootstrap-smart_canteen_local.yml @@ -41,5 +41,4 @@ system: bucket: /lnyst -oss: - endpoint: http://localhost:9000 + diff --git a/scripts_244/smart_canteen_bootstrap.yml b/scripts_244/smart_canteen_bootstrap.yml index a5c157c0..778e1d82 100644 --- a/scripts_244/smart_canteen_bootstrap.yml +++ b/scripts_244/smart_canteen_bootstrap.yml @@ -32,6 +32,51 @@ spring: # 共享配置 shared-configs: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + messages: + basename: "message_device,message_account,message_adapter,message_allocation,message_attendance,message_auth,message_common,message_customer,message_dorm,message_drp,message_kitchen,message_marketing,message_menu,message_merchant,message_notice,message_nutrition,message_open,message_order,message_pay,message_report,message_supermarket,message_backfield,message_bus" + fallback-to-system-locale: false + mq: + type: ${MQ_TYPE:rabbitmq} + namespace: __yunshitang__ + topics: + - name: order #订单 + - name: backfield #后场 + - name: drp #出入库 + - name: supermarket #商超 + - name: device #设备 + - name: acc #账户 + - name: notice #通知 + - name: auth #权限 + - name: menuai #菜品识别 + - name: dishes #菜品 + - name: marketing #营销 + - name: backfield-mqtt + - name: device-mqtt + - name: customer + - name: pay + - name: canteen + - name: merchant + - name: paddle-ai + rabbitmq: + clean-none-namespace-queue: true + publisher-confirm-type: correlated + publisher-returns: true + username: guest + password: guest + addresses: ${RABBITMQ_ADDRESS:localhost:5672} + address-shuffle-mode: random + connection-timeout: 3000 + listener: + simple: + acknowledge-mode: manual + prefetch: ${RABBITMQ_CONSUMER_PREFETCH:10} + rocketmq: + name-server: ${ROCKETMQ_NAME_SERVER:rocketmq-nameserver:9876} + access-key: ${ROCKETMQ_ACCESS_KEY:root@rocket} + secret-key: ${ROCKETMQ_SECRET_KEY:do@u.can} + mqtt-enabled: true + producer: + group: default alipay: URL: https://openapi.alipay.com/gateway.do @@ -48,4 +93,28 @@ system: prefixOffline: http://localhost:9000/lnyst prefixOnline: http://localhost:9000/lnyst bucket: /lnyst + max-upload-file-size: ${MAX_UPLOAD_FILE_SIZE:5} + notify: + unify-host: ${NOTIFY_UNIFY_HOST:} + +data-config: + sm4-key: ${SENSITIVE_SM4KEY:jY7bZz6Pjml+H/WZYfNSNA==} + encrypted: ${SENSITIVE_ENCRYPTED:true} + desensitization: ${SENSITIVE_DESENSITIZATION:true} + +oss: + endpoint: ${OSS_ENDPOINT:http://127.0.0.1:9000} + access-key: ${OSS_ACCESS_KEY:minioadmin} + secret-key: ${OSS_SECRET_KEY:minioadmin} + bucketName: ${OSS_BUCKET:lnyst} + expiresTime: ${OSS_EXPIRES_TIME:604600} + useToken: ${OSS_USE_TOKEN:false} + region: ${OSS_REGION:} + path-style-access: ${OSS_PATH_STYLE:true} + useHttp: ${OSS_USE_HTTP:false} + +tenant: + carrier-name: MERCHANT-ID + schema-prefix: ${TENANT_SCHEMA_PREFIX:} + schema-suffix: ${TENANT_SCHEMA_SUFFIX:}