2024-11-21 11:25:32 +00:00
|
|
|
package documents
|
|
|
|
|
|
|
|
import (
|
2024-11-22 17:55:15 +00:00
|
|
|
"leafdev.top/Leaf/api-platform/internal/dao"
|
|
|
|
"leafdev.top/Leaf/api-platform/pkg/protos/documentService"
|
2024-11-21 11:25:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type DocumentService struct {
|
|
|
|
documentService.UnimplementedDocumentServiceServer
|
|
|
|
dao *dao.Query
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDocumentService(dao *dao.Query) *DocumentService {
|
|
|
|
return &DocumentService{
|
|
|
|
documentService.UnimplementedDocumentServiceServer{},
|
|
|
|
dao,
|
|
|
|
}
|
|
|
|
}
|