-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathffsQuery.go
29 lines (25 loc) · 824 Bytes
/
ffsQuery.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package ffs
//Structs for FFS Queries
type Query struct {
Groups []Group `json:"groups"`
GroupClause string `json:"groupClause,omitempty"`
PgNum int `json:"pgNum,omitempty"`
PgSize int `json:"pgSize,omitempty"`
PgToken string `json:"pgToken"`
SrtDir string `json:"srtDir,omitempty"`
SrtKey string `json:"srtKey,omitempty"`
}
type Group struct {
Filters []SearchFilter `json:"filters"`
FilterClause string `json:"filterClause,omitempty"`
}
type SearchFilter struct {
Operator string `json:"operator"`
Term string `json:"term"`
Value string `json:"value"`
}
type QueryProblem struct {
BadFilter SearchFilter `json:"badFilter,omitempty"`
Description string `json:"description,omitempty"`
Type string `json:"type,omitempty"`
}