Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FromQueryTag tag标记
FromQueryTag = "search"
)
Variables ¶
This section is empty.
Functions ¶
func MakeCondition ¶
MakeCondition make condition
func ResolveSearchQuery ¶
func ResolveSearchQuery(q interface{}, condition Condition)
ResolveSearchQuery 解析 *
- exact / iexact 等于
- contains / icontains 包含
- gt / gte 大于 / 大于等于
- lt / lte 小于 / 小于等于
- startswith / istartswith 以…起始
- endswith / iendswith 以…结束
- in
- isnull
- order 排序 e.g. order[key]=desc order[key]=asc
Types ¶
Click to show internal directories.
Click to hide internal directories.