feat: 优化web
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//go:build wireinject
|
||||
// +build wireinject
|
||||
|
||||
// The build tag makes sure the stub is not built in the final build.
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"giter.top/smart/internal/auth"
|
||||
"giter.top/smart/internal/data"
|
||||
"giter.top/smart/internal/iam"
|
||||
"giter.top/smart/internal/server"
|
||||
"giter.top/smart/internal/system"
|
||||
"giter.top/smart/pkg/config"
|
||||
"github.com/google/wire"
|
||||
)
|
||||
|
||||
func InitializeServer(config *config.Config) ([]server.Server, error) {
|
||||
panic(wire.Build(
|
||||
server.ProviderSet,
|
||||
data.ProviderSet,
|
||||
auth.ProviderSet,
|
||||
system.ProviderSet,
|
||||
iam.ProviderSet,
|
||||
),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user