Chore move Filter to user service (#53588)
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
package models
|
||||
|
||||
type SearchUserFilter interface {
|
||||
GetFilter(filterName string, params []string) Filter
|
||||
GetFilterList() map[string]FilterHandler
|
||||
}
|
||||
|
||||
type WhereCondition struct {
|
||||
Condition string
|
||||
Params interface{}
|
||||
}
|
||||
|
||||
type InCondition struct {
|
||||
Condition string
|
||||
Params interface{}
|
||||
}
|
||||
|
||||
type JoinCondition struct {
|
||||
Operator string
|
||||
Table string
|
||||
Params string
|
||||
}
|
||||
|
||||
type FilterHandler func(params []string) (Filter, error)
|
||||
|
||||
type Filter interface {
|
||||
WhereCondition() *WhereCondition
|
||||
InCondition() *InCondition
|
||||
JoinCondition() *JoinCondition
|
||||
}
|
||||
+1
-1
@@ -85,7 +85,7 @@ type SearchUsersQuery struct {
|
||||
Page int
|
||||
Limit int
|
||||
AuthModule string
|
||||
Filters []Filter
|
||||
Filters []user.Filter
|
||||
|
||||
IsDisabled *bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user