api-platform/internal/handler/grpc/documents/provider.go

19 lines
355 B
Go
Raw Normal View History

2024-11-21 11:25:32 +00:00
package documents
import (
"go-template/internal/dao"
"go-template/pkg/protos/documentService"
)
type DocumentService struct {
documentService.UnimplementedDocumentServiceServer
dao *dao.Query
}
func NewDocumentService(dao *dao.Query) *DocumentService {
return &DocumentService{
documentService.UnimplementedDocumentServiceServer{},
dao,
}
}