33 lines
472 B
Go
33 lines
472 B
Go
package query
|
|
|
|
type QTerm struct {
|
|
Org string
|
|
Value string
|
|
IsKey bool
|
|
}
|
|
|
|
type QueryMessage struct {
|
|
Lang string
|
|
Text string
|
|
Location *GeoLocation
|
|
}
|
|
|
|
type QueryObject struct {
|
|
Key string
|
|
Message *QueryMessage
|
|
SearchTerms *[]*QTerm
|
|
Results *[]ISearchable
|
|
}
|
|
|
|
type TableCell struct {
|
|
Name string
|
|
Value string
|
|
}
|
|
|
|
type IQueryResult interface {
|
|
Message() (string, error)
|
|
DataType() string
|
|
GetTableData() [][]TableCell
|
|
Consumed() bool
|
|
}
|