Files
golifehk/query/objects.go
2026-03-08 15:38:28 +08:00

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
}