Merge pull request #3 from FlipsideCrypto/add_eq_and_not_eq_to_filter

add eq and not_eq to filter
This commit is contained in:
Don Cote 2020-06-19 15:19:31 -04:00 committed by GitHub
commit 83e824e94c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,11 +9,25 @@ type Filter struct {
Gte Gte `json:"gte"`
Lte Lte `json:"lte"`
Gt Gt `json:"gt"`
Eq Eq `json:"eq"`
NotEq NotEq `json:"not_eq"`
Lt Lt `json:"lt"`
And []*Filter `json:"and"`
Or []*Filter `json:"or"`
}
// Eq equal to filter
type Eq struct {
Field string `json:"field"`
Value interface{} `json:"value"`
}
// NotEq not equal to filter
type NotEq struct {
Field string `json:"field"`
Value interface{} `json:"value"`
}
// Gte greater than or equal to filter
type Gte struct {
Field string `json:"field"`