2025-01-24 16:12:25 +00:00
|
|
|
package document
|
|
|
|
|
|
|
|
|
|
import (
|
2025-01-31 13:43:55 +00:00
|
|
|
"queryorchestration/internal/serviceconfig"
|
2025-01-24 16:12:25 +00:00
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
|
)
|
|
|
|
|
|
2025-03-17 18:14:15 +00:00
|
|
|
type DocumentSummary struct {
|
2025-03-10 11:03:00 +00:00
|
|
|
ID uuid.UUID
|
2025-04-02 18:50:03 +00:00
|
|
|
ClientID string
|
2025-03-10 11:03:00 +00:00
|
|
|
Hash string
|
2025-01-24 16:12:25 +00:00
|
|
|
}
|
|
|
|
|
|
2025-03-17 18:14:15 +00:00
|
|
|
type DocumentExternal struct {
|
|
|
|
|
Id uuid.UUID
|
|
|
|
|
ClientID string
|
|
|
|
|
Hash string
|
|
|
|
|
Fields map[string]interface{}
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-24 16:12:25 +00:00
|
|
|
type Service struct {
|
2025-01-31 13:43:55 +00:00
|
|
|
cfg serviceconfig.ConfigProvider
|
2025-01-24 16:12:25 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-31 13:43:55 +00:00
|
|
|
func New(cfg serviceconfig.ConfigProvider) *Service {
|
2025-01-24 16:12:25 +00:00
|
|
|
return &Service{
|
2025-01-31 13:43:55 +00:00
|
|
|
cfg,
|
2025-01-24 16:12:25 +00:00
|
|
|
}
|
|
|
|
|
}
|