优化结构
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
// Package integration contains adapters for external systems and runtime
|
||||
// clients. These constructors are kept out of the persistence provider set so
|
||||
// the data package does not also act as the integration composition root.
|
||||
package integration
|
||||
|
||||
import (
|
||||
"kra/internal/biz"
|
||||
"kra/internal/integration/cache"
|
||||
"kra/internal/integration/email"
|
||||
"kra/internal/integration/storage"
|
||||
|
||||
"github.com/google/wire"
|
||||
)
|
||||
|
||||
var ProviderSet = wire.NewSet(
|
||||
cache.New,
|
||||
email.NewEmailRepo,
|
||||
storage.NewFileStorage,
|
||||
wire.Bind(new(biz.FileStorage), new(*storage.Reloadable)),
|
||||
)
|
||||
Reference in New Issue
Block a user