2024-11-06 10:47:56 +00:00
|
|
|
package documents
|
|
|
|
|
|
|
|
import (
|
2024-11-06 12:35:16 +00:00
|
|
|
"leafdev.top/Ecosystem/recommender/internal/dao"
|
|
|
|
"leafdev.top/Ecosystem/recommender/pkg/protos/documentService"
|
2024-11-06 10:47:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type DocumentService struct {
|
|
|
|
documentService.UnimplementedDocumentServiceServer
|
|
|
|
dao *dao.Query
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDocumentService(dao *dao.Query) *DocumentService {
|
|
|
|
return &DocumentService{
|
|
|
|
documentService.UnimplementedDocumentServiceServer{},
|
|
|
|
dao,
|
|
|
|
}
|
|
|
|
}
|