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
+6 -5
View File
@@ -6,9 +6,9 @@ import (
controllers "queryorchestration/api/queryRunner"
"queryorchestration/internal/database"
"queryorchestration/internal/database/repository"
documentsync "queryorchestration/internal/document/sync"
"queryorchestration/internal/job/collector"
"queryorchestration/internal/query"
"queryorchestration/internal/query/document"
"testing"
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
@@ -32,19 +32,20 @@ func TestQueryRunner(t *testing.T) {
Pool: pool,
}
svc := document.New(db, &document.Services{
svc := documentsync.New(db, &documentsync.Services{
Collector: collector.New(db, &collector.Services{
Query: query.New(db),
}),
})
runner := controllers.NewQueryRunner(svc, validator.New())
runner := controllers.NewQueryRunner(validator.New(), &controllers.Services{
DocumentSync: svc,
})
assert.NotNil(t, runner)
doc := document.Document{
doc := documentsync.Document{
ID: uuid.New(),
JobID: uuid.New(),
Name: "document_name",
CleanVersion: 1,
TextVersion: 1,
}