## Backend Changes ### referral-service - Add accountSequence field to ReferralRelationship aggregate for cross-service user identification - Add findByAccountSequence() method to repository interface and implementation - Update CreateReferralRelationshipCommand to accept accountSequence and inviterAccountSequence - Modify ReferralService to support looking up inviter by accountSequence - Update event handler to listen to identity.UserAccountAutoCreated and identity.UserAccountCreated topics - Add initial database migration with all tables including accountSequence field - Update DTO and controller to support new parameters ### identity-service - Add inviterSequence field to MeResult interface - Update getMe() method to return inviterSequence from user account - Update MeResponseDto to include inviterSequence field ## Frontend Changes (mobile-app) ### API & Storage - Add /me endpoint constant in api_endpoints.dart - Add inviterSequence key in storage_keys.dart - Add MeResponse and WalletAddressInfo classes in account_service.dart - Add getMe() method to fetch complete user info including inviter - Add getInviterSequence() method to retrieve from local storage ### Profile Page - Update profile_page.dart to load referrer info from API - Add _loadMeData() method to call getMe() API - Display inviterSequence (referrer serial number) dynamically ## Flow Summary 1. User creates account with optional inviterReferralCode 2. identity-service validates and saves inviterSequence 3. identity-service publishes UserAccountAutoCreated/UserAccountCreated event 4. referral-service listens and creates referral relationship using inviterAccountSequence 5. Mobile app calls GET /me to display inviter info in profile page 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| backend | ||
| docs | ||
| frontend | ||
| kubernetes | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| README.md | ||
| docker-compose.yml | ||