mirror of
https://github.com/FlipsideCrypto/flip-rpc-client-go.git
synced 2026-02-06 10:56:45 +00:00
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:
commit
83e824e94c
@ -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"`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user