P2-1 权限注册表单一真相源: - 新增 permissions.yaml: 131 个权限码 × 8 模块,含冻结标记 - 新增 scripts/gen-permissions.js: 生成器脚本 --sql 输出 seed SQL, --frontend 输出 routeConfig 片段, --validate 验证一致性(131/131 = 0 mismatches) P2-2 AI 模块 utoipa 注解: - 为 30 个 handler 函数添加 #[utoipa::path] 注解 (mod.rs 18 + insight 3 + risk 1 + rule 4 + suggestion 4) - 为 6 个 DTO struct 添加 ToSchema/IntoParams derive (AnalyzeBody, CreatePromptBody, CreateRuleBody, UpdateRuleBody, ApproveBody, ExecuteBody, DialysisLabInput, ListAnalysisQuery, ListPromptsQuery) - AI handler utoipa 覆盖率: 0/5 → 5/5 (100%)
20 lines
590 B
JSON
20 lines
590 B
JSON
{
|
|
"name": "erp",
|
|
"private": true,
|
|
"scripts": {
|
|
"start:dev": "powershell -ExecutionPolicy Bypass -File ./dev.ps1",
|
|
"start:stop": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -Stop",
|
|
"start:restart": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -Restart",
|
|
"start:status": "powershell -ExecutionPolicy Bypass -File ./dev.ps1 -Status",
|
|
"prepare": "simple-git-hooks"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "npx lint-staged"
|
|
},
|
|
"devDependencies": {
|
|
"js-yaml": "^4.1.1",
|
|
"lint-staged": "^15.0.0",
|
|
"simple-git-hooks": "^2.12.0"
|
|
}
|
|
}
|