房间热播计算任务
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.

39 lines
1.0 KiB

2 years ago
// Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire
//go:build !wireinject
// +build !wireinject
package main
import (
"git.gz.internal.jumaiyx.cn/jm/jmproto/conf"
"git.gz.internal.jumaiyx.cn/job/room-hot-compute/internal/biz"
"git.gz.internal.jumaiyx.cn/job/room-hot-compute/internal/data"
2 years ago
"git.gz.internal.jumaiyx.cn/job/room-hot-compute/pkg/gift"
2 years ago
"git.gz.internal.jumaiyx.cn/job/room-hot-compute/pkg/room"
"git.gz.internal.jumaiyx.cn/pkg/log"
)
// Injectors from wire.go:
// wireApp init kratos application.
func wireApp(server *conf.Server, confData *conf.Data, logger log.Logger) (*biz.Biz, func(), error) {
roomClient, err := room.NewRoomService(logger)
if err != nil {
return nil, nil, err
}
2 years ago
giftClient, err := gift.NewGiftService(logger)
if err != nil {
return nil, nil, err
}
2 years ago
dataData, cleanup, err := data.NewData(confData, logger)
if err != nil {
return nil, nil, err
}
2 years ago
bizBiz := biz.NewBiz(logger, roomClient, giftClient, dataData)
2 years ago
return bizBiz, func() {
cleanup()
}, nil
}