Files
backend/internal/dto/converter.go
lan cf36b1350d refactor: introduce Wire dependency injection and interface-based architecture
- Add Google Wire for compile-time dependency injection
- Replace concrete service types with interfaces across handlers
- Remove global state (DB, cache) in favor of constructor injection
- Split monolithic files into focused modules:
  - config: separate files for each config domain
  - dto: converters split by domain (user, post, message, group)
  - cache: separate metrics.go and redis_cache.go
- Introduce unified apperrors package with string-based error codes
- Add transaction support with context-aware repository methods
- Upgrade golang.org/x/crypto from 0.17.0 to 0.26.0
2026-03-13 09:38:18 +08:00

14 lines
549 B
Go

package dto
// converter.go - 公共转换函数
//
// 转换函数已按领域拆分到以下文件:
// - user_converter.go: 用户相关转换
// - post_converter.go: 帖子和评论相关转换
// - message_converter.go: 消息、会话、推送和设备令牌相关转换
// - group_converter.go: 群组相关转换
// - notification_converter.go: 通知和系统消息相关转换
// - schedule_converter.go: 日程相关转换(已存在)
//
// 所有转换函数都在 dto 包中,可以直接通过 dto.ConvertXxxToResponse 调用。