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,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: progress
|
|
3
|
+
description: |
|
|
4
|
+
当需要分析项目开发进度、查看模块完成情况时自动使用此 Skill。
|
|
5
|
+
|
|
6
|
+
触发场景:
|
|
7
|
+
- 需要查看项目整体开发进度
|
|
8
|
+
- 需要分析各模块的完成度
|
|
9
|
+
- 需要统计代码中的 TODO/FIXME
|
|
10
|
+
- 需要生成项目进度报告
|
|
11
|
+
|
|
12
|
+
触发词:项目进度、progress、进度报告、完成度、开发进度、模块进度、进度分析、进度梳理
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# /progress - 项目进度梳理
|
|
16
|
+
|
|
17
|
+
作为项目进度分析助手,帮您快速分析后端开发进度、识别完成度和待办事项。
|
|
18
|
+
|
|
19
|
+
## 🎯 执行流程
|
|
20
|
+
|
|
21
|
+
### 第一步:扫描后端模块(强制执行)
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# 查找所有业务模块
|
|
25
|
+
Glob pattern: "ruoyi-modules/ruoyi-*/src/main/java/**/controller/*Controller.java"
|
|
26
|
+
|
|
27
|
+
# 排除系统模块(不统计进度)
|
|
28
|
+
# - ruoyi-system (系统管理框架)
|
|
29
|
+
# - ruoyi-generator (代码生成器)
|
|
30
|
+
# - ruoyi-common (公共库)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
自动检测到的模块示例:
|
|
34
|
+
- `ruoyi-demo`
|
|
35
|
+
- `ruoyi-business`
|
|
36
|
+
- 其他自定义业务模块
|
|
37
|
+
|
|
38
|
+
### 第二步:分析代码完整性
|
|
39
|
+
|
|
40
|
+
对每个功能检查 **7 个必需的文件**:
|
|
41
|
+
|
|
42
|
+
| 类型 | 文件 | 完整文件路径 | 必须 | 说明 |
|
|
43
|
+
|------|------|------------|------|------|
|
|
44
|
+
| Entity | `Xxx.java` | `domain/Xxx.java` | ✅ | 数据模型 |
|
|
45
|
+
| BO | `XxxBo.java` | `domain/bo/XxxBo.java` | ✅ | 业务对象 |
|
|
46
|
+
| VO | `XxxVo.java` | `domain/vo/XxxVo.java` | ✅ | 视图对象 |
|
|
47
|
+
| Service 接口 | `IXxxService.java` | `service/IXxxService.java` | ✅ | 服务定义 |
|
|
48
|
+
| Service 实现 | `XxxServiceImpl.java` | `service/impl/XxxServiceImpl.java` | ✅ | 服务实现 |
|
|
49
|
+
| Mapper | `XxxMapper.java` | `mapper/XxxMapper.java` | ✅ | 数据访问 |
|
|
50
|
+
| Controller | `XxxController.java` | `controller/XxxController.java` | ✅ | 接口层 |
|
|
51
|
+
|
|
52
|
+
### 第三步:扫描代码待办(TODO/FIXME)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# 扫描需要处理的代码注释
|
|
56
|
+
Grep pattern: "TODO:|FIXME:" path: ruoyi-modules/ glob: "*.java" output_mode: content -B 1
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 第四步:代码质量分析
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# 检查代码规范性
|
|
63
|
+
Grep pattern: "package com\.ruoyi\." path: ruoyi-modules/ glob: "*.java" output_mode: files_with_matches
|
|
64
|
+
Grep pattern: "BeanUtil\.copy|BeanUtils\.copy" path: ruoyi-modules/ glob: "*.java" output_mode: files_with_matches
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 📊 输出格式
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# 📊 项目进度报告
|
|
73
|
+
|
|
74
|
+
**生成时间**:YYYY-MM-DD HH:mm
|
|
75
|
+
**检查范围**:全量后端代码
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 🎯 项目概况
|
|
80
|
+
|
|
81
|
+
- **项目名称**:RuoYi-Vue-Plus 纯后端版
|
|
82
|
+
- **技术栈**:Spring Boot 3 + MyBatis Plus + Sa-Token
|
|
83
|
+
- **数据库**:MySQL/MariaDB
|
|
84
|
+
- **当前阶段**:[开发中/测试中/已上线]
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 📈 后端模块进度汇总
|
|
89
|
+
|
|
90
|
+
| 模块 | 功能数 | 完成数 | 完成率 | 状态 |
|
|
91
|
+
|------|--------|--------|--------|------|
|
|
92
|
+
| demo | 3 | 3 | 100% | ✅ 已完成 |
|
|
93
|
+
| business | 5 | 3 | 60% | 🔄 进行中 |
|
|
94
|
+
| **合计** | **8** | **6** | **75%** | 🔄 进行中 |
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 📋 功能详情分析
|
|
99
|
+
|
|
100
|
+
### demo 模块 (100% 完成)
|
|
101
|
+
|
|
102
|
+
| 功能 | Entity | BO | VO | Service | Mapper | Controller | 完成度 |
|
|
103
|
+
|------|--------|----|----|---------|--------|------------|--------|
|
|
104
|
+
| Notice | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 100% |
|
|
105
|
+
| Config | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 100% |
|
|
106
|
+
| Test | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 100% |
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 🔍 代码质量分析
|
|
111
|
+
|
|
112
|
+
| 指标 | 评分 | 说明 |
|
|
113
|
+
|------|------|------|
|
|
114
|
+
| 代码规范性 | 良好 ✅ | 包名规范、类名规范 |
|
|
115
|
+
| 注释完整度 | 待补充 ⚠️ | 部分功能缺少业务注释 |
|
|
116
|
+
| 权限注解完整度 | 需改进 ⚠️ | 部分接口缺少 @SaCheckPermission |
|
|
117
|
+
| 对象转换规范 | 良好 ✅ | 正确使用 MapstructUtils |
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## 📝 代码待办事项
|
|
122
|
+
|
|
123
|
+
### TODO 项 (X 个)
|
|
124
|
+
|
|
125
|
+
| 文件 | 行号 | 类型 | 内容 | 优先级 |
|
|
126
|
+
|------|------|------|------|--------|
|
|
127
|
+
| `UserServiceImpl.java` | 87 | TODO | 优化用户查询性能 | 中 |
|
|
128
|
+
|
|
129
|
+
### FIXME 项 (X 个)
|
|
130
|
+
|
|
131
|
+
| 文件 | 行号 | 类型 | 内容 | 优先级 |
|
|
132
|
+
|------|------|------|------|--------|
|
|
133
|
+
| `PaymentService.java` | 156 | FIXME | 修复退款金额计算错误 | 高 |
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## 💡 改进建议
|
|
138
|
+
|
|
139
|
+
### 高优先级(需立即处理)
|
|
140
|
+
|
|
141
|
+
1. **补充缺失的 BO/VO**
|
|
142
|
+
2. **完善权限注解**
|
|
143
|
+
3. **修复 FIXME 问题**
|
|
144
|
+
|
|
145
|
+
### 中优先级(逐步完善)
|
|
146
|
+
|
|
147
|
+
1. **补充接口注释**
|
|
148
|
+
2. **优化查询性能**
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 📊 完成度判定标准
|
|
153
|
+
|
|
154
|
+
| 完成率 | 状态 | 说明 | 推荐行动 |
|
|
155
|
+
|--------|------|------|---------|
|
|
156
|
+
| 100% | ✅ 已完成 | 全部 7 个文件均已完成 | 可进行代码审查 |
|
|
157
|
+
| 71-99% | 🟢 基本完成 | 缺少 1-2 个文件 | 补充缺失文件 |
|
|
158
|
+
| 50-70% | 🟡 进行中 | 缺少 2-3 个文件 | 加快开发进度 |
|
|
159
|
+
| 1-49% | 🔴 早期阶段 | 仅有少量文件 | 继续开发 |
|
|
160
|
+
| 0% | ⚫ 待开发 | 无相关文件 | 使用 `/dev` 开始开发 |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## 🚀 快速操作
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
# 1. 快速生成缺失功能
|
|
168
|
+
/crud Payment
|
|
169
|
+
|
|
170
|
+
# 2. 检查并修复代码规范
|
|
171
|
+
/check business
|
|
172
|
+
|
|
173
|
+
# 3. 继续开发新功能
|
|
174
|
+
/dev 新功能名称
|
|
175
|
+
```
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 使用示例
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
用户:/progress
|
|
184
|
+
用户:/progress business (仅检查 business 模块)
|
|
185
|
+
用户:/progress demo (仅检查 demo 模块)
|
|
186
|
+
|
|
187
|
+
Claude:
|
|
188
|
+
🔍 正在扫描项目结构...
|
|
189
|
+
📊 分析代码完整性...
|
|
190
|
+
🔍 扫描代码待办事项...
|
|
191
|
+
|
|
192
|
+
[输出完整的进度报告]
|
|
193
|
+
```
|
|
@@ -0,0 +1,286 @@
|
|
|
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),前端项目独立维护。
|
|
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
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## 模块与表前缀对应
|
|
183
|
+
|
|
184
|
+
| 模块 | 表前缀 | 包路径 |
|
|
185
|
+
|------|--------|--------|
|
|
186
|
+
| system | `sys_` | `org.dromara.system` |
|
|
187
|
+
| demo | `test_` | `org.dromara.demo` |
|
|
188
|
+
| workflow | `flow_` | `org.dromara.workflow` |
|
|
189
|
+
| 自定义业务 | 自定义 | `org.dromara.xxx` |
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## 常用查找命令
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# 查找 Java 类
|
|
197
|
+
Glob ruoyi-modules/**/*[类名]*.java
|
|
198
|
+
|
|
199
|
+
# 查找包含特定内容的文件
|
|
200
|
+
Grep "[关键词]" ruoyi-modules/ --type java
|
|
201
|
+
|
|
202
|
+
# 查找配置文件
|
|
203
|
+
Glob ruoyi-admin/src/main/resources/application*.yml
|
|
204
|
+
|
|
205
|
+
# 查找 Service 实现类
|
|
206
|
+
Glob ruoyi-modules/**/impl/*ServiceImpl.java
|
|
207
|
+
|
|
208
|
+
# 查找 Mapper 接口
|
|
209
|
+
Glob ruoyi-modules/**/*Mapper.java
|
|
210
|
+
|
|
211
|
+
# 查找 Entity 类
|
|
212
|
+
Glob ruoyi-modules/**/domain/*.java
|
|
213
|
+
|
|
214
|
+
# 查找工具类
|
|
215
|
+
Glob ruoyi-common/**/*Utils.java
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## 三层架构代码示例
|
|
221
|
+
|
|
222
|
+
### Service 实现类结构(重点参考)
|
|
223
|
+
|
|
224
|
+
```java
|
|
225
|
+
@Service
|
|
226
|
+
public class TestDemoServiceImpl implements ITestDemoService {
|
|
227
|
+
|
|
228
|
+
private final TestDemoMapper baseMapper; // 直接注入 Mapper,无 DAO 层
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* 构建查询条件(在 Service 层)
|
|
232
|
+
*/
|
|
233
|
+
private LambdaQueryWrapper<TestDemo> buildQueryWrapper(TestDemoBo bo) {
|
|
234
|
+
Map<String, Object> params = bo.getParams();
|
|
235
|
+
LambdaQueryWrapper<TestDemo> lqw = Wrappers.lambdaQuery();
|
|
236
|
+
lqw.eq(bo.getDeptId() != null, TestDemo::getDeptId, bo.getDeptId());
|
|
237
|
+
lqw.like(StringUtils.isNotBlank(bo.getTestKey()), TestDemo::getTestKey, bo.getTestKey());
|
|
238
|
+
return lqw;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@Override
|
|
242
|
+
public TableDataInfo<TestDemoVo> queryPageList(TestDemoBo bo, PageQuery pageQuery) {
|
|
243
|
+
LambdaQueryWrapper<TestDemo> lqw = buildQueryWrapper(bo);
|
|
244
|
+
Page<TestDemoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
|
245
|
+
return TableDataInfo.build(result);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### BO 类结构
|
|
251
|
+
|
|
252
|
+
```java
|
|
253
|
+
@Data
|
|
254
|
+
@AutoMapper(target = TestDemo.class, reverseConvertGenerate = false) // ✅ 单数
|
|
255
|
+
public class TestDemoBo extends BaseEntity {
|
|
256
|
+
private Long id;
|
|
257
|
+
private String testKey;
|
|
258
|
+
// ...
|
|
259
|
+
}
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Controller 结构
|
|
263
|
+
|
|
264
|
+
```java
|
|
265
|
+
@RestController
|
|
266
|
+
@RequestMapping("/demo/demo")
|
|
267
|
+
public class TestDemoController extends BaseController {
|
|
268
|
+
|
|
269
|
+
private final ITestDemoService testDemoService;
|
|
270
|
+
|
|
271
|
+
@GetMapping("/list") // 分页查询
|
|
272
|
+
public TableDataInfo<TestDemoVo> list(TestDemoBo bo, PageQuery pageQuery) { }
|
|
273
|
+
|
|
274
|
+
@GetMapping("/{id}") // 获取详情
|
|
275
|
+
public R<TestDemoVo> getInfo(@PathVariable Long id) { }
|
|
276
|
+
|
|
277
|
+
@PostMapping // 新增
|
|
278
|
+
public R<Void> add(@RequestBody TestDemoBo bo) { }
|
|
279
|
+
|
|
280
|
+
@PutMapping // 修改
|
|
281
|
+
public R<Void> edit(@RequestBody TestDemoBo bo) { }
|
|
282
|
+
|
|
283
|
+
@DeleteMapping("/{ids}") // 删除
|
|
284
|
+
public R<Void> remove(@PathVariable Long[] ids) { }
|
|
285
|
+
}
|
|
286
|
+
```
|