Merged in feature/document (pull request #36)

Document CRUD

* doccreate

* dochashlocandget

* depsandtodo
This commit is contained in:
Michael McGuinness
2025-01-24 16:12:25 +00:00
parent 4ec1d51a12
commit b16ff55afa
31 changed files with 381 additions and 82 deletions
+24
View File
@@ -0,0 +1,24 @@
package document
import (
"queryorchestration/internal/database"
"github.com/google/uuid"
)
type Document struct {
ID uuid.UUID
JobID uuid.UUID
Hash string
Location Location
}
type Service struct {
db *database.Connection
}
func New(db *database.Connection) *Service {
return &Service{
db,
}
}