60812aba91
Standardised rich name for Files * tests
31 lines
453 B
Go
31 lines
453 B
Go
package document
|
|
|
|
import (
|
|
"queryorchestration/internal/serviceconfig"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type DocumentSummary struct {
|
|
ID uuid.UUID
|
|
ClientID string
|
|
Hash string
|
|
}
|
|
|
|
type DocumentExternal struct {
|
|
Id uuid.UUID
|
|
ClientID string
|
|
Hash string
|
|
Fields map[string]interface{}
|
|
}
|
|
|
|
type Service struct {
|
|
cfg serviceconfig.ConfigProvider
|
|
}
|
|
|
|
func New(cfg serviceconfig.ConfigProvider) *Service {
|
|
return &Service{
|
|
cfg,
|
|
}
|
|
}
|