---
id: respect-module-boundaries
trigger: "when placing backend services or external integration code in foodie_server"
confidence: 0.9
domain: "architecture"
source: "claude-code-memory-import"
---

# Respect the Maven module dependency direction

## Action

- Keep the dependency direction `ruoyi-admin -> ruoyi-system`; never import `com.ruoyi.app.*` from `ruoyi-system`.
- Place integrations that need external HTTP plus application services in `ruoyi-admin`.
- Keep reusable entities, mappers, and database services in `ruoyi-system` when they do not require an admin-layer dependency.

## Evidence

- Imported from Claude Code project memory `project-build-env.md` on 2026-08-10.
