From 7dcc2997614f849258091f5d66e648317a40d323 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期五, 14 八月 2026 10:12:42 +0800
Subject: [PATCH] add shop module

---
 src/config/config.default.ts |   53 ++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 44 insertions(+), 9 deletions(-)

diff --git a/src/config/config.default.ts b/src/config/config.default.ts
index 03a7323..1cc32d5 100644
--- a/src/config/config.default.ts
+++ b/src/config/config.default.ts
@@ -1,19 +1,23 @@
-import { CoolConfig } from '@cool-midway/core';
+import { CoolCacheStore, CoolConfig } from '@cool-midway/core';
 import { MidwayConfig } from '@midwayjs/core';
-import { CoolCacheStore } from '@cool-midway/core';
 import * as path from 'path';
 import { pCachePath, pUploadPath } from '../comm/path';
 import { availablePort } from '../comm/port';
 
+// redis缂撳瓨
+// import { redisStore } from 'cache-manager-ioredis-yet';
+
 export default {
-  keys: 'f65bcafd-b72c-4f01-a451-333155097148',
+  // 纭繚姣忎釜椤圭洰鍞竴锛岄」鐩娆″惎鍔ㄤ細鑷姩鐢熸垚
+  keys: '44ceca50-584c-44c4-8346-4b44471ea41f',
   koa: {
     port: availablePort(8001),
-    rawBody: true,    
   },
+  // 寮�鍚紓姝ヤ笂涓嬫枃绠$悊
   asyncContextManager: {
     enable: true,
   },
+  // 闈欐�佹枃浠堕厤缃�
   staticFile: {
     buffer: true,
     dirs: {
@@ -27,11 +31,12 @@
       },
     },
   },
+  // 鏂囦欢涓婁紶
   upload: {
     fileSize: '200mb',
     whitelist: null,
-    ignore: ['/open/push/yingshiyun', "/open/push/cameraEvent"],    
   },
+  // 缂撳瓨 鍙垏鎹㈡垚鍏朵粬缂撳瓨濡傦細redis http://www.midwayjs.org/docs/extensions/caching
   cacheManager: {
     clients: {
       default: {
@@ -43,19 +48,49 @@
       },
     },
   },
+  // cacheManager: {
+  //   clients: {
+  //     default: {
+  //       store: redisStore,
+  //       options: {
+  //         port: 6379,
+  //         host: '127.0.0.1',
+  //         password: '',
+  //         ttl: 0,
+  //         db: 0,
+  //       },
+  //     },
+  //   },
+  // },
   cool: {
+    redis: {
+      host: '127.0.0.1',
+      password: '',
+      port: 6379,
+      db: 10,
+    },
+    // 宸茬粡鎻掍欢鍖栵紝鏈湴鏂囦欢涓婁紶鏌ョ湅 plugin/config.ts锛屽叾浠栦簯瀛樺偍鏌ョ湅瀵瑰簲鎻掍欢鐨勪娇鐢�
     file: {},
+    // 鏄惁寮�鍚绉熸埛
     tenant: {
-      enable: true,
+      // 鏄惁寮�鍚绉熸埛
+      enable: false,
+      // 闇�瑕佽繃婊ゅ绉熸埛鐨剈rl, 鏀寔閫氶厤绗︼紝 濡�/admin/**/* 琛ㄧずadmin妯″潡涓嬬殑鎵�鏈夋帴鍙i兘杩涜澶氱鎴疯繃婊�
       urls: [],
     },
+    // 鍥介檯鍖栭厤缃�
     i18n: {
-      enable: true,
+      // 鏄惁寮�鍚�
+      enable: false,
+      // 璇█
       languages: ['zh-cn', 'zh-tw', 'en'],
     },
+    // crud閰嶇疆
     crud: {
+      // 鎻掑叆妯″紡锛宻ave涓嶄細鏍¢獙瀛楁(鍏佽浼犲叆涓嶅瓨鍦ㄧ殑瀛楁)锛宨nsert浼氭牎楠屽瓧娈�
       upsert: 'save',
+      // 杞垹闄�
       softDelete: true,
-    },  
+    },
   } as CoolConfig,
-} as MidwayConfig;
\ No newline at end of file
+} as MidwayConfig;

--
Gitblit v1.9.1