b16ff55afa
Document CRUD * doccreate * dochashlocandget * depsandtodo
25 lines
323 B
Go
25 lines
323 B
Go
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,
|
|
}
|
|
}
|