22 lines
554 B
Go
22 lines
554 B
Go
//go:build wireinject
|
|
// +build wireinject
|
|
|
|
// The build tag makes sure the stub is not built in the final build.
|
|
package main
|
|
|
|
import (
|
|
ecpm_httpserver "gitea.youtukeji.com.cn/xiabin/youtu_ecpm/api/gin"
|
|
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/dao/query"
|
|
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/server"
|
|
"github.com/google/wire"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
// wireApp init kratos application.
|
|
func wireApp(log *zap.Logger, q *query.Query) (*server.EcpmApp, func(), error) {
|
|
panic(wire.Build(
|
|
server.NewEcpmApp,
|
|
ecpm_httpserver.NewHttpServer,
|
|
))
|
|
}
|