recommender/internal/service/user/provider.go
2024-11-10 00:11:00 +08:00

26 lines
490 B
Go

package user
import (
"leafdev.top/Ecosystem/recommender/internal/base/logger"
"leafdev.top/Ecosystem/recommender/internal/dao"
"leafdev.top/Ecosystem/recommender/internal/service/post"
)
type Service struct {
dao *dao.Query
postService *post.Service
logger *logger.Logger
}
func NewService(
dao *dao.Query,
postService *post.Service,
logger *logger.Logger,
) *Service {
return &Service{
dao: dao,
postService: postService,
logger: logger,
}
}