docs(auth): record domain foundation checkpoint

This commit is contained in:
2026-08-30 14:46:47 +03:30
parent bc5c8c4950
commit 10affbc629
2 changed files with 11 additions and 1 deletions
+8
View File
@@ -261,6 +261,14 @@ Global config removal remains the separate follow-up `C002`.
The current composition root is `cmd/serve.go`; `repository.System` aggregates PostgreSQL, Redis, and upstream service ports, while `usecase.useCase` currently implements both generated gRPC server interfaces. External provider selection is configuration-driven (`ShahkarProvider`), and the Wallet/Notification clients are gRPC dependencies. This map is the baseline for A002A008 package extraction.
### `A002` — Auth domain entities and repository ports
- Added `auth/domain/model` with transport/persistence-independent User, Identity, Session, Permission, Role, RolePermission, and BankInfo entities.
- Added validated `NationalID`, `MobileNumber`, and `BirthDate` value objects plus domain-level user status values.
- Added `auth/domain/ports` repository and cache interfaces using only standard library types and domain models.
- Focused value-object tests and the full Auth test suite pass; commit `32f182b`.
- Existing `domain/db` remains the legacy persistence mapping until A003 introduces explicit infrastructure mappings.
### `I001` — publisher-backed ICO purchase map
- Compatibility entrypoints remain `WalletService.CalcBuyAsset` and `WalletService.BuyAsset`; API routes and existing request fields do not move.