feat: add workflow management and user utilities
- Implemented manual stage transitions and approval rules in workflow.js.
- Added current user retrieval utility in current-user.js.
- Refactored logs controller to simplify error handling and improve readability.
- Introduced validation for logs routes using zod.
- Enhanced wechat controller with improved error handling and validation.
- Created wx-chart controller and routes for managing chart data.
- Added test-watch.mjs for application loading confirmation.
正在显示
.env.example
0 → 100644
drizzle.config.js
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | ... | @@ -7,6 +7,9 @@ |
| "scripts": { | ||
| "start": "node src/index.js", | ||
| "dev": "cross-env NODE_ENV=development node --watch src/index.js", | ||
| "dingtalk:stream": "node src/modules/dms/dingtalk/stream.js", | ||
| "db:generate": "drizzle-kit generate", | ||
| "db:migrate": "drizzle-kit migrate", | ||
| "lint": "eslint src/", | ||
| "lint:fix": "eslint --fix src/", | ||
| "deploy": "cross-env NODE_ENV=production SERVER_PORT=5101 pm2 start src/index.js -n ezijing-node-server", | ||
| ... | ... | @@ -18,21 +21,25 @@ |
| "node": ">=18.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "drizzle-kit": "^0.31.10", | ||
| "eslint": "^9.15.0", | ||
| "globals": "^15.12.0", | ||
| "pino-pretty": "^13.0.0" | ||
| "pino-pretty": "^13.1.3" | ||
| }, | ||
| "dependencies": { | ||
| "axios": "^1.13.0", | ||
| "axios": "^1.15.2", | ||
| "cors": "^2.8.5", | ||
| "cross-env": "^7.0.3", | ||
| "dayjs": "^1.11.19", | ||
| "dingtalk-stream": "^2.1.5", | ||
| "dotenv": "^16.4.5", | ||
| "express": "^4.21.1", | ||
| "mongoose": "^8.8.0", | ||
| "drizzle-orm": "^0.45.2", | ||
| "express": "^5.2.1", | ||
| "mongoose": "^8.23.1", | ||
| "mysql2": "^3.20.0", | ||
| "pino": "^9.5.0", | ||
| "pino-http": "^10.3.0", | ||
| "ua-parser-js": "^2.0.6" | ||
| "pino": "^10.3.1", | ||
| "pino-http": "^11.0.0", | ||
| "ua-parser-js": "^2.0.6", | ||
| "zod": "^4.4.3" | ||
| } | ||
| } |
src/db/index.js
0 → 100644
src/lib/http-error.js
0 → 100644
src/lib/validate.js
0 → 100644
src/modules/dms/cases/schema.js
0 → 100644
src/modules/dms/cases/service.js
0 → 100644
src/modules/dms/db/columns.js
0 → 100644
src/modules/dms/dms.routes.js
0 → 100644
test-watch.mjs
0 → 100644
请
注册
或者
登录
后发表评论