ai-engineering-init 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/code-reviewer.md +139 -0
- package/.claude/agents/project-manager.md +159 -0
- package/.claude/audio/completed.wav +0 -0
- package/.claude/commands/add-todo.md +255 -0
- package/.claude/commands/check.md +210 -0
- package/.claude/commands/crud.md +454 -0
- package/.claude/commands/dev.md +503 -0
- package/.claude/commands/init-docs.md +681 -0
- package/.claude/commands/next.md +251 -0
- package/.claude/commands/progress.md +242 -0
- package/.claude/commands/start.md +199 -0
- package/.claude/commands/sync.md +307 -0
- package/.claude/commands/update-status.md +428 -0
- package/.claude/docs/Mixin/344/275/277/347/224/250/346/214/207/345/215/227.md +299 -0
- package/.claude/docs/README.md +167 -0
- package/.claude/docs//345/211/215/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +599 -0
- package/.claude/docs//345/220/216/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +726 -0
- package/.claude/docs//345/267/245/344/275/234/346/265/201/345/274/200/345/217/221/346/214/207/345/215/227.md +714 -0
- package/.claude/docs//345/267/245/345/205/267/347/261/273/344/275/277/347/224/250/346/214/207/345/215/227.md +463 -0
- package/.claude/docs//346/225/260/346/215/256/345/272/223/350/256/276/350/256/241/350/247/204/350/214/203.md +390 -0
- package/.claude/docs//346/226/260/345/212/237/350/203/275/345/274/200/345/217/221/346/265/201/347/250/213/350/247/204/350/214/203.md +688 -0
- package/.claude/docs//346/226/260/351/241/271/347/233/256/345/274/200/345/217/221/346/265/201/347/250/213.md +365 -0
- package/.claude/docs//346/241/206/346/236/266/350/257/264/346/230/216.md +393 -0
- package/.claude/docs//350/267/257/347/224/261/351/205/215/347/275/256/346/214/207/345/215/227.md +246 -0
- package/.claude/framework-config.json +73 -0
- package/.claude/hooks/pre-tool-use.js +117 -0
- package/.claude/hooks/skill-forced-eval.js +167 -0
- package/.claude/hooks/stop.js +58 -0
- package/.claude/settings.json +41 -0
- package/.claude/skills/add-skill/SKILL.md +352 -0
- package/.claude/skills/api-development/SKILL.md +560 -0
- package/.claude/skills/architecture-design/SKILL.md +756 -0
- package/.claude/skills/backend-annotations/SKILL.md +674 -0
- package/.claude/skills/banana-image/CHANGELOG.md +37 -0
- package/.claude/skills/banana-image/README.md +146 -0
- package/.claude/skills/banana-image/SKILL.md +164 -0
- package/.claude/skills/banana-image/assets/logo.png +0 -0
- package/.claude/skills/banana-image/references/advanced-usage.md +189 -0
- package/.claude/skills/banana-image/scripts/apply_template.py +125 -0
- package/.claude/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.claude/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.claude/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.claude/skills/banana-image/scripts/package.json +18 -0
- package/.claude/skills/banana-image/scripts/requirements.txt +10 -0
- package/.claude/skills/banana-image/templates/poster.json +22 -0
- package/.claude/skills/banana-image/templates/product.json +17 -0
- package/.claude/skills/banana-image/templates/social.json +22 -0
- package/.claude/skills/banana-image/templates/thumbnail.json +17 -0
- package/.claude/skills/brainstorm/SKILL.md +648 -0
- package/.claude/skills/bug-detective/SKILL.md +1206 -0
- package/.claude/skills/code-patterns/SKILL.md +590 -0
- package/.claude/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.claude/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.claude/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.claude/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.claude/skills/crud-development/SKILL.md +649 -0
- package/.claude/skills/data-permission/SKILL.md +599 -0
- package/.claude/skills/database-ops/SKILL.md +407 -0
- package/.claude/skills/error-handler/SKILL.md +371 -0
- package/.claude/skills/file-oss-management/SKILL.md +863 -0
- package/.claude/skills/git-workflow/SKILL.md +375 -0
- package/.claude/skills/json-serialization/SKILL.md +357 -0
- package/.claude/skills/leniu-api-development/SKILL.md +803 -0
- package/.claude/skills/leniu-architecture-design/SKILL.md +598 -0
- package/.claude/skills/leniu-backend-annotations/SKILL.md +664 -0
- package/.claude/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.claude/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.claude/skills/leniu-data-permission/SKILL.md +256 -0
- package/.claude/skills/leniu-database-ops/SKILL.md +426 -0
- package/.claude/skills/leniu-error-handler/SKILL.md +462 -0
- package/.claude/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.claude/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.claude/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.claude/skills/leniu-java-entity/SKILL.md +751 -0
- package/.claude/skills/leniu-java-export/SKILL.md +560 -0
- package/.claude/skills/leniu-java-logging/SKILL.md +832 -0
- package/.claude/skills/leniu-java-mq/SKILL.md +338 -0
- package/.claude/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.claude/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.claude/skills/leniu-java-task/SKILL.md +367 -0
- package/.claude/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.claude/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.claude/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.claude/skills/leniu-mealtime/SKILL.md +215 -0
- package/.claude/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.claude/skills/leniu-security-guard/SKILL.md +520 -0
- package/.claude/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.claude/skills/openspec-apply-change/SKILL.md +156 -0
- package/.claude/skills/openspec-archive-change/SKILL.md +114 -0
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.claude/skills/openspec-continue-change/SKILL.md +118 -0
- package/.claude/skills/openspec-explore/SKILL.md +290 -0
- package/.claude/skills/openspec-ff-change/SKILL.md +101 -0
- package/.claude/skills/openspec-new-change/SKILL.md +74 -0
- package/.claude/skills/openspec-onboard/SKILL.md +529 -0
- package/.claude/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.claude/skills/openspec-verify-change/SKILL.md +168 -0
- package/.claude/skills/performance-doctor/SKILL.md +627 -0
- package/.claude/skills/project-navigator/SKILL.md +305 -0
- package/.claude/skills/redis-cache/SKILL.md +839 -0
- package/.claude/skills/scheduled-jobs/SKILL.md +633 -0
- package/.claude/skills/security-guard/SKILL.md +748 -0
- package/.claude/skills/sms-mail/SKILL.md +766 -0
- package/.claude/skills/social-login/SKILL.md +668 -0
- package/.claude/skills/store-pc/SKILL.md +366 -0
- package/.claude/skills/task-tracker/SKILL.md +307 -0
- package/.claude/skills/tech-decision/SKILL.md +393 -0
- package/.claude/skills/tenant-management/SKILL.md +603 -0
- package/.claude/skills/test-development/SKILL.md +755 -0
- package/.claude/skills/ui-pc/SKILL.md +438 -0
- package/.claude/skills/utils-toolkit/SKILL.md +615 -0
- package/.claude/skills/websocket-sse/SKILL.md +716 -0
- package/.claude/skills/workflow-engine/SKILL.md +676 -0
- package/.claude/templates//345/276/205/345/212/236/346/270/205/345/215/225/346/250/241/346/235/277.md +56 -0
- package/.claude/templates//351/234/200/346/261/202/346/226/207/346/241/243/346/250/241/346/235/277.md +85 -0
- package/.claude/templates//351/241/271/347/233/256/347/212/266/346/200/201/346/250/241/346/235/277.md +43 -0
- package/.codex/skills/add-skill/SKILL.md +352 -0
- package/.codex/skills/add-todo/SKILL.md +269 -0
- package/.codex/skills/api-development/SKILL.md +693 -0
- package/.codex/skills/architecture-design/SKILL.md +628 -0
- package/.codex/skills/backend-annotations/SKILL.md +664 -0
- package/.codex/skills/banana-image/CHANGELOG.md +37 -0
- package/.codex/skills/banana-image/README.md +146 -0
- package/.codex/skills/banana-image/SKILL.md +164 -0
- package/.codex/skills/banana-image/assets/logo.png +0 -0
- package/.codex/skills/banana-image/references/advanced-usage.md +189 -0
- package/.codex/skills/banana-image/scripts/apply_template.py +125 -0
- package/.codex/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.codex/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.codex/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.codex/skills/banana-image/scripts/package.json +18 -0
- package/.codex/skills/banana-image/scripts/requirements.txt +10 -0
- package/.codex/skills/banana-image/templates/poster.json +22 -0
- package/.codex/skills/banana-image/templates/product.json +17 -0
- package/.codex/skills/banana-image/templates/social.json +22 -0
- package/.codex/skills/banana-image/templates/thumbnail.json +17 -0
- package/.codex/skills/brainstorm/SKILL.md +648 -0
- package/.codex/skills/bug-detective/SKILL.md +1206 -0
- package/.codex/skills/check/SKILL.md +367 -0
- package/.codex/skills/code-patterns/SKILL.md +442 -0
- package/.codex/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.codex/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.codex/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.codex/skills/crud/SKILL.md +265 -0
- package/.codex/skills/crud-development/SKILL.md +637 -0
- package/.codex/skills/data-permission/SKILL.md +591 -0
- package/.codex/skills/database-ops/SKILL.md +553 -0
- package/.codex/skills/dev/SKILL.md +187 -0
- package/.codex/skills/error-handler/SKILL.md +361 -0
- package/.codex/skills/file-oss-management/SKILL.md +863 -0
- package/.codex/skills/git-workflow/SKILL.md +375 -0
- package/.codex/skills/init-docs/SKILL.md +194 -0
- package/.codex/skills/json-serialization/SKILL.md +357 -0
- package/.codex/skills/leniu-api-development/SKILL.md +803 -0
- package/.codex/skills/leniu-architecture-design/SKILL.md +594 -0
- package/.codex/skills/leniu-backend-annotations/SKILL.md +662 -0
- package/.codex/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.codex/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.codex/skills/leniu-data-permission/SKILL.md +256 -0
- package/.codex/skills/leniu-database-ops/SKILL.md +426 -0
- package/.codex/skills/leniu-error-handler/SKILL.md +462 -0
- package/.codex/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.codex/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.codex/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.codex/skills/leniu-java-entity/SKILL.md +751 -0
- package/.codex/skills/leniu-java-export/SKILL.md +560 -0
- package/.codex/skills/leniu-java-logging/SKILL.md +832 -0
- package/.codex/skills/leniu-java-mq/SKILL.md +338 -0
- package/.codex/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.codex/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.codex/skills/leniu-java-task/SKILL.md +367 -0
- package/.codex/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.codex/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.codex/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.codex/skills/leniu-mealtime/SKILL.md +215 -0
- package/.codex/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.codex/skills/leniu-security-guard/SKILL.md +520 -0
- package/.codex/skills/leniu-utils-toolkit/SKILL.md +378 -0
- package/.codex/skills/next/SKILL.md +137 -0
- package/.codex/skills/openspec-apply-change/SKILL.md +156 -0
- package/.codex/skills/openspec-archive-change/SKILL.md +114 -0
- package/.codex/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.codex/skills/openspec-continue-change/SKILL.md +118 -0
- package/.codex/skills/openspec-explore/SKILL.md +290 -0
- package/.codex/skills/openspec-ff-change/SKILL.md +101 -0
- package/.codex/skills/openspec-new-change/SKILL.md +74 -0
- package/.codex/skills/openspec-onboard/SKILL.md +529 -0
- package/.codex/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.codex/skills/openspec-verify-change/SKILL.md +168 -0
- package/.codex/skills/performance-doctor/SKILL.md +627 -0
- package/.codex/skills/progress/SKILL.md +193 -0
- package/.codex/skills/project-navigator/SKILL.md +286 -0
- package/.codex/skills/redis-cache/SKILL.md +829 -0
- package/.codex/skills/scheduled-jobs/SKILL.md +633 -0
- package/.codex/skills/security-guard/SKILL.md +739 -0
- package/.codex/skills/sms-mail/SKILL.md +766 -0
- package/.codex/skills/social-login/SKILL.md +668 -0
- package/.codex/skills/start/SKILL.md +154 -0
- package/.codex/skills/store-pc/SKILL.md +491 -0
- package/.codex/skills/sync/SKILL.md +149 -0
- package/.codex/skills/task-tracker/SKILL.md +307 -0
- package/.codex/skills/tech-decision/SKILL.md +393 -0
- package/.codex/skills/tenant-management/SKILL.md +603 -0
- package/.codex/skills/test-development/SKILL.md +755 -0
- package/.codex/skills/ui-pc/SKILL.md +475 -0
- package/.codex/skills/update-status/SKILL.md +159 -0
- package/.codex/skills/utils-toolkit/SKILL.md +593 -0
- package/.codex/skills/websocket-sse/SKILL.md +716 -0
- package/.codex/skills/workflow-engine/SKILL.md +676 -0
- package/.cursor/agents/code-reviewer.md +139 -0
- package/.cursor/agents/project-manager.md +159 -0
- package/.cursor/commands/opsx-apply.md +152 -0
- package/.cursor/commands/opsx-archive.md +157 -0
- package/.cursor/commands/opsx-bulk-archive.md +242 -0
- package/.cursor/commands/opsx-continue.md +114 -0
- package/.cursor/commands/opsx-explore.md +174 -0
- package/.cursor/commands/opsx-ff.md +94 -0
- package/.cursor/commands/opsx-new.md +69 -0
- package/.cursor/commands/opsx-onboard.md +525 -0
- package/.cursor/commands/opsx-sync.md +134 -0
- package/.cursor/commands/opsx-verify.md +164 -0
- package/.cursor/mcp.json +22 -0
- package/.cursor/skills/add-skill/SKILL.md +352 -0
- package/.cursor/skills/api-development/SKILL.md +560 -0
- package/.cursor/skills/architecture-design/SKILL.md +756 -0
- package/.cursor/skills/backend-annotations/SKILL.md +674 -0
- package/.cursor/skills/banana-image/CHANGELOG.md +37 -0
- package/.cursor/skills/banana-image/README.md +146 -0
- package/.cursor/skills/banana-image/SKILL.md +164 -0
- package/.cursor/skills/banana-image/assets/logo.png +0 -0
- package/.cursor/skills/banana-image/references/advanced-usage.md +189 -0
- package/.cursor/skills/banana-image/scripts/apply_template.py +125 -0
- package/.cursor/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.cursor/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.cursor/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.cursor/skills/banana-image/scripts/package.json +18 -0
- package/.cursor/skills/banana-image/scripts/requirements.txt +10 -0
- package/.cursor/skills/banana-image/templates/poster.json +22 -0
- package/.cursor/skills/banana-image/templates/product.json +17 -0
- package/.cursor/skills/banana-image/templates/social.json +22 -0
- package/.cursor/skills/banana-image/templates/thumbnail.json +17 -0
- package/.cursor/skills/brainstorm/SKILL.md +648 -0
- package/.cursor/skills/bug-detective/SKILL.md +1206 -0
- package/.cursor/skills/code-patterns/SKILL.md +590 -0
- package/.cursor/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.cursor/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.cursor/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.cursor/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.cursor/skills/crud-development/SKILL.md +649 -0
- package/.cursor/skills/data-permission/SKILL.md +599 -0
- package/.cursor/skills/database-ops/SKILL.md +407 -0
- package/.cursor/skills/error-handler/SKILL.md +371 -0
- package/.cursor/skills/file-oss-management/SKILL.md +863 -0
- package/.cursor/skills/git-workflow/SKILL.md +375 -0
- package/.cursor/skills/json-serialization/SKILL.md +357 -0
- package/.cursor/skills/leniu-api-development/SKILL.md +803 -0
- package/.cursor/skills/leniu-architecture-design/SKILL.md +598 -0
- package/.cursor/skills/leniu-backend-annotations/SKILL.md +664 -0
- package/.cursor/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.cursor/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.cursor/skills/leniu-data-permission/SKILL.md +256 -0
- package/.cursor/skills/leniu-database-ops/SKILL.md +426 -0
- package/.cursor/skills/leniu-error-handler/SKILL.md +462 -0
- package/.cursor/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.cursor/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.cursor/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.cursor/skills/leniu-java-entity/SKILL.md +751 -0
- package/.cursor/skills/leniu-java-export/SKILL.md +560 -0
- package/.cursor/skills/leniu-java-logging/SKILL.md +832 -0
- package/.cursor/skills/leniu-java-mq/SKILL.md +338 -0
- package/.cursor/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.cursor/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.cursor/skills/leniu-java-task/SKILL.md +367 -0
- package/.cursor/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.cursor/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.cursor/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.cursor/skills/leniu-mealtime/SKILL.md +215 -0
- package/.cursor/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.cursor/skills/leniu-security-guard/SKILL.md +520 -0
- package/.cursor/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.cursor/skills/openspec-apply-change/SKILL.md +156 -0
- package/.cursor/skills/openspec-archive-change/SKILL.md +114 -0
- package/.cursor/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.cursor/skills/openspec-continue-change/SKILL.md +118 -0
- package/.cursor/skills/openspec-explore/SKILL.md +290 -0
- package/.cursor/skills/openspec-ff-change/SKILL.md +101 -0
- package/.cursor/skills/openspec-new-change/SKILL.md +74 -0
- package/.cursor/skills/openspec-onboard/SKILL.md +529 -0
- package/.cursor/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.cursor/skills/openspec-verify-change/SKILL.md +168 -0
- package/.cursor/skills/performance-doctor/SKILL.md +627 -0
- package/.cursor/skills/project-navigator/SKILL.md +305 -0
- package/.cursor/skills/redis-cache/SKILL.md +839 -0
- package/.cursor/skills/scheduled-jobs/SKILL.md +633 -0
- package/.cursor/skills/security-guard/SKILL.md +748 -0
- package/.cursor/skills/sms-mail/SKILL.md +766 -0
- package/.cursor/skills/social-login/SKILL.md +668 -0
- package/.cursor/skills/store-pc/SKILL.md +366 -0
- package/.cursor/skills/task-tracker/SKILL.md +307 -0
- package/.cursor/skills/tech-decision/SKILL.md +393 -0
- package/.cursor/skills/tenant-management/SKILL.md +603 -0
- package/.cursor/skills/test-development/SKILL.md +755 -0
- package/.cursor/skills/ui-pc/SKILL.md +438 -0
- package/.cursor/skills/utils-toolkit/SKILL.md +615 -0
- package/.cursor/skills/websocket-sse/SKILL.md +716 -0
- package/.cursor/skills/workflow-engine/SKILL.md +676 -0
- package/AGENTS.md +669 -0
- package/CLAUDE.md +205 -0
- package/README.md +205 -0
- package/bin/index.js +179 -0
- package/init.sh +178 -0
- package/package.json +27 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: project-navigator
|
|
3
|
+
description: |
|
|
4
|
+
当需要了解项目结构、查找文件、定位代码时自动使用此 Skill。提供项目结构导航和资源索引。
|
|
5
|
+
|
|
6
|
+
触发场景:
|
|
7
|
+
- 不知道文件在哪里
|
|
8
|
+
- 想了解项目结构
|
|
9
|
+
- 查找某个功能的代码位置
|
|
10
|
+
- 了解模块职责
|
|
11
|
+
- 查看已有的工具类、组件、API、Store
|
|
12
|
+
- 寻找参考代码
|
|
13
|
+
|
|
14
|
+
触发词:项目结构、文件在哪、目录、模块、代码位置、找、定位、结构、在哪里、哪个文件、参考、已有
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# 项目导航指南
|
|
18
|
+
|
|
19
|
+
> **说明**:后端项目(RuoYi-Vue-Plus)在当前目录,前端项目在 `/Users/xujiajun/Developer/frontProj/web`(独立维护)。
|
|
20
|
+
|
|
21
|
+
## 项目整体结构
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
RuoYi-Vue-Plus/
|
|
25
|
+
├── ruoyi-admin/ # 后端启动入口
|
|
26
|
+
│ └── src/main/resources/
|
|
27
|
+
│ ├── application.yml # 主配置
|
|
28
|
+
│ └── application-dev.yml # 开发环境配置(数据库连接)
|
|
29
|
+
│
|
|
30
|
+
├── ruoyi-common/ # 通用工具模块(24个子模块)
|
|
31
|
+
│ ├── ruoyi-common-bom/ # BOM 依赖管理
|
|
32
|
+
│ ├── ruoyi-common-core/ # 核心工具(StringUtils, MapstructUtils)
|
|
33
|
+
│ ├── ruoyi-common-mybatis/ # MyBatis 扩展(BaseMapperPlus, TableDataInfo)
|
|
34
|
+
│ ├── ruoyi-common-tenant/ # 多租户(TenantEntity)
|
|
35
|
+
│ ├── ruoyi-common-redis/ # Redis 缓存
|
|
36
|
+
│ ├── ruoyi-common-satoken/ # 权限认证
|
|
37
|
+
│ ├── ruoyi-common-excel/ # Excel 导入导出
|
|
38
|
+
│ ├── ruoyi-common-oss/ # 对象存储
|
|
39
|
+
│ ├── ruoyi-common-doc/ # 接口文档
|
|
40
|
+
│ ├── ruoyi-common-encrypt/ # 数据加密
|
|
41
|
+
│ ├── ruoyi-common-idempotent/ # 幂等性
|
|
42
|
+
│ ├── ruoyi-common-job/ # 定时任务
|
|
43
|
+
│ ├── ruoyi-common-json/ # JSON 处理
|
|
44
|
+
│ ├── ruoyi-common-log/ # 日志记录
|
|
45
|
+
│ ├── ruoyi-common-mail/ # 邮件发送
|
|
46
|
+
│ ├── ruoyi-common-ratelimiter/ # 限流
|
|
47
|
+
│ ├── ruoyi-common-security/ # 安全
|
|
48
|
+
│ ├── ruoyi-common-sensitive/ # 敏感数据
|
|
49
|
+
│ ├── ruoyi-common-sms/ # 短信
|
|
50
|
+
│ ├── ruoyi-common-social/ # 社交登录
|
|
51
|
+
│ ├── ruoyi-common-sse/ # SSE 推送
|
|
52
|
+
│ ├── ruoyi-common-translation/ # 翻译
|
|
53
|
+
│ ├── ruoyi-common-web/ # Web 通用
|
|
54
|
+
│ └── ruoyi-common-websocket/ # WebSocket
|
|
55
|
+
│
|
|
56
|
+
├── ruoyi-extend/ # 扩展功能模块
|
|
57
|
+
│
|
|
58
|
+
├── ruoyi-modules/ # 业务功能模块
|
|
59
|
+
│ ├── ruoyi-system/ # 系统管理模块(用户、角色、菜单等)
|
|
60
|
+
│ ├── ruoyi-demo/ # 演示功能模块
|
|
61
|
+
│ ├── ruoyi-job/ # 定时任务模块
|
|
62
|
+
│ ├── ruoyi-generator/ # 代码生成器
|
|
63
|
+
│ └── ruoyi-workflow/ # 工作流模块
|
|
64
|
+
│
|
|
65
|
+
├── script/sql/ # 数据库脚本
|
|
66
|
+
│ ├── ry_vue_5.X.sql # 系统表(用户、角色、菜单等)
|
|
67
|
+
│ ├── ry_job.sql # 定时任务表
|
|
68
|
+
│ └── ry_workflow.sql # 工作流表
|
|
69
|
+
│
|
|
70
|
+
├── docs/ # 项目文档
|
|
71
|
+
├── .claude/ # Claude AI 配置目录
|
|
72
|
+
│ └── skills/ # 技能库
|
|
73
|
+
│
|
|
74
|
+
└── pom.xml # Maven 项目配置
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 后端模块位置
|
|
80
|
+
|
|
81
|
+
### 已有主要模块
|
|
82
|
+
|
|
83
|
+
| 模块 | 位置 | 说明 |
|
|
84
|
+
|------|------|------|
|
|
85
|
+
| **系统管理** (System) | `ruoyi-modules/ruoyi-system/` | ⭐ 系统核心功能(用户、菜单、权限等) |
|
|
86
|
+
| **演示模块** (Demo) | `ruoyi-modules/ruoyi-demo/` | 功能演示示例 |
|
|
87
|
+
| **定时任务** (Job) | `ruoyi-modules/ruoyi-job/` | 任务调度功能 |
|
|
88
|
+
| **代码生成** (Generator) | `ruoyi-modules/ruoyi-generator/` | 代码生成器 |
|
|
89
|
+
| **工作流** (Workflow) | `ruoyi-modules/ruoyi-workflow/` | 工作流引擎 |
|
|
90
|
+
|
|
91
|
+
### 🔴 标准模块代码结构(三层架构)
|
|
92
|
+
|
|
93
|
+
> **重要**:本项目是三层架构(Controller → Service → Mapper),**没有 DAO 层**。
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/
|
|
97
|
+
├── controller/ # 控制器
|
|
98
|
+
│ └── system/
|
|
99
|
+
│ └── SysXxxController.java # @RestController
|
|
100
|
+
├── service/ # 服务层
|
|
101
|
+
│ ├── ISysXxxService.java # 服务接口
|
|
102
|
+
│ └── impl/
|
|
103
|
+
│ └── SysXxxServiceImpl.java # 服务实现(包含 buildQueryWrapper)
|
|
104
|
+
├── mapper/ # Mapper 接口(extends BaseMapperPlus)
|
|
105
|
+
│ └── SysXxxMapper.java
|
|
106
|
+
├── domain/ # 实体类和业务对象
|
|
107
|
+
│ ├── SysXxx.java # 实体类(extends TenantEntity)
|
|
108
|
+
│ ├── bo/ # 业务对象
|
|
109
|
+
│ │ └── SysXxxBo.java # 业务对象(@AutoMapper)
|
|
110
|
+
│ └── vo/ # 视图对象
|
|
111
|
+
│ └── SysXxxVo.java # 视图对象
|
|
112
|
+
├── listener/ # 事件监听器
|
|
113
|
+
└── runner/ # 启动运行器
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**关键点**:
|
|
117
|
+
- Service 实现类**不继承任何基类**,直接注入 Mapper
|
|
118
|
+
- `buildQueryWrapper()` 方法在 **Service 实现类**中
|
|
119
|
+
- BO 使用 `@AutoMapper`(单数)注解;多目标映射时可用 `@AutoMappers`(复数)
|
|
120
|
+
|
|
121
|
+
### 核心工具类位置
|
|
122
|
+
|
|
123
|
+
| 工具类 | 位置 | 说明 |
|
|
124
|
+
|--------|------|------|
|
|
125
|
+
| `MapstructUtils` | `ruoyi-common-core` | 对象转换(必须使用) |
|
|
126
|
+
| `StringUtils` | `ruoyi-common-core` | 字符串工具 |
|
|
127
|
+
| `DateUtils` | `ruoyi-common-core` | 日期工具 |
|
|
128
|
+
| `ServiceException` | `ruoyi-common-core` | 业务异常 |
|
|
129
|
+
| `TenantEntity` | `ruoyi-common-tenant` | 租户实体基类 |
|
|
130
|
+
| `BaseMapperPlus` | `ruoyi-common-mybatis` | Mapper 基类接口 |
|
|
131
|
+
| `PageQuery` | `ruoyi-common-mybatis` | 分页查询参数 |
|
|
132
|
+
| `TableDataInfo` | `ruoyi-common-mybatis` | 分页结果 |
|
|
133
|
+
| `RedisUtils` | `ruoyi-common-redis` | Redis 缓存工具 |
|
|
134
|
+
| `LoginHelper` | `ruoyi-common-satoken` | 登录用户信息 |
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 配置文件位置
|
|
139
|
+
|
|
140
|
+
| 配置 | 位置 | 说明 |
|
|
141
|
+
|------|------|------|
|
|
142
|
+
| 后端主配置 | `ruoyi-admin/src/main/resources/application.yml` | 主配置文件 |
|
|
143
|
+
| 后端开发配置 | `ruoyi-admin/src/main/resources/application-dev.yml` | 开发环境配置(数据库连接) |
|
|
144
|
+
| 后端生产配置 | `ruoyi-admin/src/main/resources/application-prod.yml` | 生产环境配置 |
|
|
145
|
+
| 日志配置 | `ruoyi-admin/src/main/resources/logback-plus.xml` | 日志配置 |
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 数据库脚本位置
|
|
150
|
+
|
|
151
|
+
| 脚本 | 位置 | 说明 |
|
|
152
|
+
|------|------|------|
|
|
153
|
+
| 系统表初始化 | `script/sql/ry_vue_5.X.sql` | 用户、角色、菜单、系统表等 |
|
|
154
|
+
| 任务表初始化 | `script/sql/ry_job.sql` | 定时任务相关表 |
|
|
155
|
+
| 工作流表初始化 | `script/sql/ry_workflow.sql` | 工作流相关表 |
|
|
156
|
+
| Oracle 脚本 | `script/sql/oracle/` | Oracle 数据库脚本 |
|
|
157
|
+
| PostgreSQL 脚本 | `script/sql/postgres/` | PostgreSQL 数据库脚本 |
|
|
158
|
+
| SQL Server 脚本 | `script/sql/sqlserver/` | SQL Server 数据库脚本 |
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## 快速查找
|
|
163
|
+
|
|
164
|
+
### 我想找...
|
|
165
|
+
|
|
166
|
+
| 需求 | 位置 |
|
|
167
|
+
|------|------|
|
|
168
|
+
| 参考后端代码 | `ruoyi-modules/ruoyi-system/` 的系统模块 |
|
|
169
|
+
| 看 Entity 怎么写 | `ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/SysUser.java` |
|
|
170
|
+
| 看 Service 怎么写 | `ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java` |
|
|
171
|
+
| 看 Controller 怎么写 | `ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/controller/system/SysUserController.java` |
|
|
172
|
+
| 看 Mapper 怎么写 | `ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/mapper/SysUserMapper.java` |
|
|
173
|
+
| 看 BO/VO 怎么写 | `ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/bo/` |
|
|
174
|
+
| 数据库表结构 | `script/sql/ry_vue_5.X.sql` |
|
|
175
|
+
| 工具类 | `ruoyi-common/ruoyi-common-core/` |
|
|
176
|
+
| MyBatis 扩展 | `ruoyi-common/ruoyi-common-mybatis/` |
|
|
177
|
+
| Redis 工具 | `ruoyi-common/ruoyi-common-redis/` |
|
|
178
|
+
| 权限认证 | `ruoyi-common/ruoyi-common-satoken/` |
|
|
179
|
+
| **前端项目根目录** | `/Users/xujiajun/Developer/frontProj/web/` |
|
|
180
|
+
| **前端 src 目录** | `/Users/xujiajun/Developer/frontProj/web/src/` |
|
|
181
|
+
| 前端主入口 | `/Users/xujiajun/Developer/frontProj/web/src/main.js` |
|
|
182
|
+
| 前端路由守卫 | `/Users/xujiajun/Developer/frontProj/web/src/permission.js` |
|
|
183
|
+
| 前端路由配置 | `/Users/xujiajun/Developer/frontProj/web/src/router/` |
|
|
184
|
+
| 前端 API 接口定义 | `/Users/xujiajun/Developer/frontProj/web/src/api/`(65个文件) |
|
|
185
|
+
| 前端视图页面 | `/Users/xujiajun/Developer/frontProj/web/src/leniuview/`(34个业务模块) |
|
|
186
|
+
| 前端业务组件 | `/Users/xujiajun/Developer/frontProj/web/src/leniu-components/` |
|
|
187
|
+
| 前端公共组件 | `/Users/xujiajun/Developer/frontProj/web/src/components/`(~87个) |
|
|
188
|
+
| 前端 Vuex Store | `/Users/xujiajun/Developer/frontProj/web/src/store/`(28个模块) |
|
|
189
|
+
| 前端请求封装 | `/Users/xujiajun/Developer/frontProj/web/src/utils/request.js` |
|
|
190
|
+
| 前端 Token/租户工具 | `/Users/xujiajun/Developer/frontProj/web/src/utils/auth.js` |
|
|
191
|
+
| 前端全局工具函数 | `/Users/xujiajun/Developer/frontProj/web/src/utils/index.js` |
|
|
192
|
+
| 前端 Mixin 文件 | `/Users/xujiajun/Developer/frontProj/web/src/mixins/` |
|
|
193
|
+
| 前端国际化配置 | `/Users/xujiajun/Developer/frontProj/web/src/lang/` |
|
|
194
|
+
| 前端自定义指令 | `/Users/xujiajun/Developer/frontProj/web/src/directive/` |
|
|
195
|
+
| 前端全局样式 | `/Users/xujiajun/Developer/frontProj/web/src/styles/` |
|
|
196
|
+
| 前端构建配置 | `/Users/xujiajun/Developer/frontProj/web/vue.config.js` |
|
|
197
|
+
| 前端依赖配置 | `/Users/xujiajun/Developer/frontProj/web/package.json` |
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## 模块与表前缀对应
|
|
202
|
+
|
|
203
|
+
| 模块 | 表前缀 | 包路径 |
|
|
204
|
+
|------|--------|--------|
|
|
205
|
+
| system | `sys_` | `org.dromara.system` |
|
|
206
|
+
| demo | `test_` | `org.dromara.demo` |
|
|
207
|
+
| workflow | `flow_` | `org.dromara.workflow` |
|
|
208
|
+
| 自定义业务 | 自定义 | `org.dromara.xxx` |
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## 常用查找命令
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
# 查找 Java 类
|
|
216
|
+
Glob ruoyi-modules/**/*[类名]*.java
|
|
217
|
+
|
|
218
|
+
# 查找包含特定内容的文件
|
|
219
|
+
Grep "[关键词]" ruoyi-modules/ --type java
|
|
220
|
+
|
|
221
|
+
# 查找配置文件
|
|
222
|
+
Glob ruoyi-admin/src/main/resources/application*.yml
|
|
223
|
+
|
|
224
|
+
# 查找 Service 实现类
|
|
225
|
+
Glob ruoyi-modules/**/impl/*ServiceImpl.java
|
|
226
|
+
|
|
227
|
+
# 查找 Mapper 接口
|
|
228
|
+
Glob ruoyi-modules/**/*Mapper.java
|
|
229
|
+
|
|
230
|
+
# 查找 Entity 类
|
|
231
|
+
Glob ruoyi-modules/**/domain/*.java
|
|
232
|
+
|
|
233
|
+
# 查找工具类
|
|
234
|
+
Glob ruoyi-common/**/*Utils.java
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## 三层架构代码示例
|
|
240
|
+
|
|
241
|
+
### Service 实现类结构(重点参考)
|
|
242
|
+
|
|
243
|
+
```java
|
|
244
|
+
@Service
|
|
245
|
+
public class TestDemoServiceImpl implements ITestDemoService {
|
|
246
|
+
|
|
247
|
+
private final TestDemoMapper baseMapper; // 直接注入 Mapper,无 DAO 层
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* 构建查询条件(在 Service 层)
|
|
251
|
+
*/
|
|
252
|
+
private LambdaQueryWrapper<TestDemo> buildQueryWrapper(TestDemoBo bo) {
|
|
253
|
+
Map<String, Object> params = bo.getParams();
|
|
254
|
+
LambdaQueryWrapper<TestDemo> lqw = Wrappers.lambdaQuery();
|
|
255
|
+
lqw.eq(bo.getDeptId() != null, TestDemo::getDeptId, bo.getDeptId());
|
|
256
|
+
lqw.like(StringUtils.isNotBlank(bo.getTestKey()), TestDemo::getTestKey, bo.getTestKey());
|
|
257
|
+
return lqw;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@Override
|
|
261
|
+
public TableDataInfo<TestDemoVo> queryPageList(TestDemoBo bo, PageQuery pageQuery) {
|
|
262
|
+
LambdaQueryWrapper<TestDemo> lqw = buildQueryWrapper(bo);
|
|
263
|
+
Page<TestDemoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
|
264
|
+
return TableDataInfo.build(result);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### BO 类结构
|
|
270
|
+
|
|
271
|
+
```java
|
|
272
|
+
@Data
|
|
273
|
+
@AutoMapper(target = TestDemo.class, reverseConvertGenerate = false) // ✅ 单数
|
|
274
|
+
public class TestDemoBo extends BaseEntity {
|
|
275
|
+
private Long id;
|
|
276
|
+
private String testKey;
|
|
277
|
+
// ...
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Controller 结构
|
|
282
|
+
|
|
283
|
+
```java
|
|
284
|
+
@RestController
|
|
285
|
+
@RequestMapping("/demo/demo")
|
|
286
|
+
public class TestDemoController extends BaseController {
|
|
287
|
+
|
|
288
|
+
private final ITestDemoService testDemoService;
|
|
289
|
+
|
|
290
|
+
@GetMapping("/list") // 分页查询
|
|
291
|
+
public TableDataInfo<TestDemoVo> list(TestDemoBo bo, PageQuery pageQuery) { }
|
|
292
|
+
|
|
293
|
+
@GetMapping("/{id}") // 获取详情
|
|
294
|
+
public R<TestDemoVo> getInfo(@PathVariable Long id) { }
|
|
295
|
+
|
|
296
|
+
@PostMapping // 新增
|
|
297
|
+
public R<Void> add(@RequestBody TestDemoBo bo) { }
|
|
298
|
+
|
|
299
|
+
@PutMapping // 修改
|
|
300
|
+
public R<Void> edit(@RequestBody TestDemoBo bo) { }
|
|
301
|
+
|
|
302
|
+
@DeleteMapping("/{ids}") // 删除
|
|
303
|
+
public R<Void> remove(@PathVariable Long[] ids) { }
|
|
304
|
+
}
|
|
305
|
+
```
|