dal/pkg/filters/And.go

20 lines
250 B
Go
Raw Normal View History

package filters
import (
"fmt"
)
type And struct {
And []interface{} `json:"$and"`
}
func (a And) ToSQLPart(ctx Context) string {
fmt.Println(ctx, a)
return ""
}
func (a And) FromJSON(data interface{}) Filter {
return FromJson[And](data)
}