api-platform/internal/handler/grpc/documents/provider.go
2024-11-23 01:55:15 +08:00

19 lines
391 B
Go

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