feat: add case synchronization feature and integrate OSS for JSON storage
- Added `ali-oss` dependency for OSS integration.
- Implemented `import-cases.js` script to read and normalize case data from a JSON source.
- Enhanced configuration to include OSS settings for case JSON storage.
- Created `oss.js` library for handling OSS uploads.
- Updated error handling middleware to improve status code validation.
- Refactored authentication service to cache user data and reduce redundant requests.
- Introduced `syncCasesToPublic` function in the cases service to upload case data to OSS.
- Added new route for case synchronization in the DMS routes.
- Updated project service to ensure consistent product name handling.
正在显示
差异被折叠。
| ... | @@ -25,6 +25,7 @@ | ... | @@ -25,6 +25,7 @@ |
| "pino-pretty": "^13.1.3" | "pino-pretty": "^13.1.3" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| "ali-oss": "^6.23.0", | |||
| "axios": "^1.15.2", | "axios": "^1.15.2", | ||
| "cors": "^2.8.5", | "cors": "^2.8.5", | ||
| "cross-env": "^7.0.3", | "cross-env": "^7.0.3", | ||
| ... | ... |
scripts/import-cases.js
0 → 100644
src/lib/oss.js
0 → 100644
请
注册
或者
登录
后发表评论