You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
623 B
24 lines
623 B
6 months ago
|
//go:build wireinject
|
||
|
// +build wireinject
|
||
|
|
||
|
// The build tag makes sure the stub is not built in the final build.
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"bkb-payment/internal/biz"
|
||
|
"bkb-payment/internal/conf"
|
||
|
"bkb-payment/internal/data"
|
||
|
"bkb-payment/internal/server"
|
||
|
"bkb-payment/internal/service"
|
||
|
|
||
|
"github.com/go-kratos/kratos/v2"
|
||
|
"github.com/go-kratos/kratos/v2/log"
|
||
|
"github.com/google/wire"
|
||
|
)
|
||
|
|
||
|
// wireApp init kratos application.
|
||
|
func wireApp(*conf.Server, *conf.Data, *conf.App, log.Logger) (*kratos.App, func(), error) {
|
||
|
panic(wire.Build(server.ProviderSet, data.ProviderSet, biz.ProviderSet, service.ProviderSet, newApp))
|
||
|
}
|