rwadurian/backend/services/reward-service/src
hailin c162ccced9 fix(reward): correct response parsing for authorization-service API
The authorization-service uses TransformInterceptor which wraps all API
responses in a standard format: { success, data, timestamp }

Before this fix, the AuthorizationServiceClient was reading:
  data.accountSequence (undefined - wrong level)

After this fix, it correctly reads:
  result.data.accountSequence

This ensures that COMMUNITY_RIGHT is allocated to the correct authorized
community user (e.g., accountSequence=6) instead of falling back to
HEADQUARTERS (accountSequence=1).

Changes in reward-service:
- Added AuthorizationServiceResponse<T> interface
- Added NearestAuthorizationResult interface
- Updated findNearestAuthorizedProvince() to parse wrapped response
- Updated findNearestAuthorizedCity() to parse wrapped response
- Updated findNearestCommunity() to parse wrapped response
- Added debug logging for findNearestCommunity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 03:33:10 -08:00
..
api refactor: use accountSequence as unified user identifier across all services 2025-12-10 13:55:03 -08:00
application refactor(reward): 前端直接从 reward-service 查询奖励数据 2025-12-11 00:36:53 -08:00
config refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
domain fix: add accountSequence to all services and fix compilation errors 2025-12-10 14:14:06 -08:00
infrastructure fix(reward): correct response parsing for authorization-service API 2025-12-11 03:33:10 -08:00
shared refactor: use accountSequence as unified user identifier across all services 2025-12-10 13:55:03 -08:00
app.module.ts refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
main.ts fix(services): add Kafka microservice for @MessagePattern to work 2025-12-10 09:57:07 -08:00