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.
35 lines
1.1 KiB
35 lines
1.1 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-mike-hot-timer/internal/biz"
|
||
|
"git.gz.internal.jumaiyx.cn/job/room-mike-hot-timer/internal/data"
|
||
|
"git.gz.internal.jumaiyx.cn/job/room-mike-hot-timer/pkg/server/gift"
|
||
|
"git.gz.internal.jumaiyx.cn/job/room-mike-hot-timer/pkg/server/message"
|
||
|
"git.gz.internal.jumaiyx.cn/pkg/id-encode"
|
||
|
"git.gz.internal.jumaiyx.cn/pkg/log"
|
||
|
)
|
||
|
|
||
|
// Injectors from wire.go:
|
||
|
|
||
|
// wireApp init kratos application.
|
||
|
func wireApp(confData *conf.Data, idEncoding idencoding.IDEncoding, logger log.Logger) (*biz.MikeHotTimer, func(), error) {
|
||
|
dataData, cleanup, err := data.NewData(confData, logger)
|
||
|
if err != nil {
|
||
|
return nil, nil, err
|
||
|
}
|
||
|
roomMikeRepo := data.NewRoomMikeRepo(dataData, logger)
|
||
|
giftClient := gift.NewGiftClient(logger)
|
||
|
messageClient := message.NewMessageClient(logger)
|
||
|
mikeHotTimer := biz.NewMikeHotTimer(logger, roomMikeRepo, giftClient, messageClient, idEncoding)
|
||
|
return mikeHotTimer, func() {
|
||
|
cleanup()
|
||
|
}, nil
|
||
|
}
|