feat: enhance router views functionality and permissions

- Added new router views schema and types for better structure and type safety.
- Implemented CRUD operations for router views including listing, updating, retrieving, and deleting views.
- Introduced permission checks to ensure users can only access and modify their own views.
- Updated prompts route to include additional permission checks for updating and retrieving prompts.
- Refactored common query tests to align with new configurations.
- Organized route imports for better maintainability.
This commit is contained in:
2025-12-31 17:55:13 +08:00
parent 8731801b52
commit c6715c2e35
9 changed files with 620 additions and 313 deletions

View File

@@ -56,6 +56,7 @@
"commander": "^14.0.2",
"drizzle-kit": "^0.31.8",
"drizzle-orm": "^0.45.1",
"drizzle-zod": "^0.8.3",
"eventemitter3": "^5.0.1",
"ioredis": "^5.8.2",
"minio": "^8.0.6",
@@ -64,7 +65,8 @@
"send": "^1.2.1",
"sequelize": "^6.37.7",
"ws": "npm:@kevisual/ws",
"xml2js": "^0.6.2"
"xml2js": "^0.6.2",
"zod-to-json-schema": "^3.25.1"
},
"devDependencies": {
"@kevisual/code-center-module": "0.0.24",