From 405936890cc57bb5147cf9858647165466347033 Mon Sep 17 00:00:00 2001 From: Sam <315859133@qq.com> Date: Mon, 23 Feb 2026 00:55:03 +0800 Subject: [PATCH] docs: add hierarchical AGENTS.md for subdirectories --- AGENTS.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..a92538a --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,43 @@ +# AGENTS.md - Fengling.Platform + +**Parent:** `/AGENTS.md` + +## Overview + +Cross-service platform infrastructure — multi-tenant, Identity, authentication. + +## Structure + +``` +src/Fengling.Platform/ +├── Fengling.Platform.Domain/ +│ └── AggregatesModel/ +│ ├── UserAggregate/ # ApplicationUser +│ ├── RoleAggregate/ # ApplicationRole +│ └── TenantAggregate/ # Tenant, TenantInfo +└── Fengling.Platform.Infrastructure/ + ├── PlatformDbContext.cs # IdentityDbContext + ├── ITenantStore.cs + ├── ITenantManager.cs + └── Configurations/ # EF Core configs +``` + +## Where to Look + +| Task | Location | +|------|----------| +| Tenant mgmt | `Platform.Domain/AggregatesModel/TenantAggregate/` | +| User/Role | `Platform.Domain/AggregatesModel/*Aggregate/` | +| DB Context | `Platform.Infrastructure/PlatformDbContext.cs` | +| Auth config | `Platform.Infrastructure/` | + +## Conventions + +- **Pattern**: Manager + Store (ASP.NET Core Identity style) +- **Entities**: 贫血模型 for Tenant, 充血模型 for aggregates +- **ID type**: `long` for all identities + +## Anti-Patterns + +- **Migration in progress** — Console not yet migrated to Platform +- Don't add new entities to Console — use Platform instead