Logo
Explore Help
Register Sign In
carrot_bbs/backend
4
0
Fork 0
You've already forked backend
Code Issues 2 Pull Requests Actions Packages Projects Releases Wiki Activity
Files
cf36b1350d3959d256d09d58f945bbec6000175f
backend/internal/wire/provider_set.go

12 lines
173 B
Go
Raw Normal View History

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
package wire
import "github.com/google/wire"
// AllSet 包含所有 Provider Set
var AllSet = wire.NewSet(
InfrastructureSet,
RepositorySet,
ServiceSet,
HandlerSet,
)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.6.2 Page: 29ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API