recommender/internal/handler/grpc/documents/provider.go
2024-11-06 20:35:16 +08:00

19 lines
399 B
Go

package documents
import (
"leafdev.top/Ecosystem/recommender/internal/dao"
"leafdev.top/Ecosystem/recommender/pkg/protos/documentService"
)
type DocumentService struct {
documentService.UnimplementedDocumentServiceServer
dao *dao.Query
}
func NewDocumentService(dao *dao.Query) *DocumentService {
return &DocumentService{
documentService.UnimplementedDocumentServiceServer{},
dao,
}
}