refactor all service dependency injection

This commit is contained in:
2026-08-10 11:35:48 +08:00
parent 007a7ba38a
commit c883cc52a2
152 changed files with 1030 additions and 223 deletions

View File

@@ -1,12 +1,19 @@
package service
import (
"bsm/full/all/internal/impl"
"bsm/full/all/internal/server"
moduleService "bsm/full/module/base/ads/service"
)
func exposeAds(srv *server.Server) error {
return moduleService.Expose(moduleService.ExposeOptions{
Dependencies: moduleService.Dependencies{
Redis: impl.RedisService,
Etcd: impl.EtcdService,
DB: impl.DBService,
Cache: impl.MemoryService,
},
GRPC: srv.GRPC,
Gateway: srv.Gateway,
})