rwadurian/backend/services/admin-service/src/api/dto/request
hailin fe593714ae fix(admin-service): 修复上传版本时isForceUpdate始终为true的问题
问题原因:
- ValidationPipe配置了enableImplicitConversion: true
- FormData发送字符串"false"时,Boolean("false")被隐式转换为true
- @Transform装饰器在隐式转换之后执行,收到的value已经是true

解决方案:
- 在@Transform中使用obj参数获取原始未转换的值
- 手动判断字符串"true"/"false"并正确转换为布尔值

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 19:31:47 -08:00
..
audience-segment.dto.ts feat(user-profile): 实现用户画像系统和通知定向功能 2025-12-24 16:19:05 -08:00
check-update.dto.ts refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
classification-rule.dto.ts feat(user-profile): 实现用户画像系统和通知定向功能 2025-12-24 16:19:05 -08:00
create-version.dto.ts refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
mobile-check-update.dto.ts refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
notification.dto.ts feat(user-profile): 实现用户画像系统和通知定向功能 2025-12-24 16:19:05 -08:00
toggle-version.dto.ts refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
update-version.dto.ts refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
upload-version.dto.ts fix(admin-service): 修复上传版本时isForceUpdate始终为true的问题 2025-12-27 19:31:47 -08:00
user-query.dto.ts feat(admin): 实现用户管理功能完整前后端架构 2025-12-18 02:29:11 -08:00
user-tag.dto.ts feat(user-profile): 实现用户画像系统和通知定向功能 2025-12-24 16:19:05 -08:00