rwadurian/backend/services/authorization-service/src/domain
hailin 50f960ecea fix(authorization): allow admin tokens without accountSequence field
Admin JWT tokens from identity-service don't include the accountSequence
field (only userId, email, role, type). This caused a 400 error with
message "管理员账户序列号不能为空" when admins tried to grant authorizations.

Changes:
- Update AdminUserId value object to make accountSequence optional
- Use 'ADMIN' as default value when accountSequence is not provided
- Update all controller methods to handle optional accountSequence

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 22:57:56 -08:00
..
aggregates feat(authorization): 实现省区域/市区域自动升级机制 2025-12-22 17:24:44 -08:00
entities feat(authorization-service): 正式省公司(PROVINCE_COMPANY)阶梯考核及月度考核 2025-12-13 23:43:41 -08:00
enums feat(withdrawal): implement withdrawal order and fund allocation system 2025-12-09 02:35:27 -08:00
events feat(authorization): 实现省区域/市区域自动升级机制 2025-12-22 17:24:44 -08:00
repositories feat(authorization): 实现市/省团队自动升级为市/省区域机制 2025-12-23 03:56:38 -08:00
services fix: 修复火柴人排名显示问题 2025-12-23 01:48:16 -08:00
value-objects fix(authorization): allow admin tokens without accountSequence field 2026-01-03 22:57:56 -08:00