Files
query-orchestration/internal/result/service.go
T
Michael McGuinness 339ce185ad jsonextractionv0
2024-12-23 12:26:05 +00:00

23 lines
416 B
Go

package result
import (
"gotemplate/internal/database"
"gotemplate/internal/database/repository"
"github.com/google/uuid"
)
type Value struct {
ID uuid.UUID
QueryID uuid.UUID
Value string
}
func ParseResultValue(result repository.ListResultValuesByIDRow) Value {
return Value{
ID: database.MustToUUID(result.ID),
QueryID: database.MustToUUID(result.Queryid),
Value: result.Value,
}
}