doc: 添加废弃记录
This commit is contained in:
parent
60cb7b8d50
commit
fd58eec9f1
@ -118,7 +118,7 @@ func (q *PaginationQuery) Or(field string, arg interface{}) {
|
|||||||
q.Conditions = append(q.Conditions, Condition{Field: field, Operator: "or", Arg: arg})
|
q.Conditions = append(q.Conditions, Condition{Field: field, Operator: "or", Arg: arg})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ors Deprecated: replaced by And 自定义条件, 如: (length(field) = 4 OR length(field) = 6)
|
// Deprecated: 有SQL注入风险,用 And() 代替
|
||||||
func (q *PaginationQuery) Ors(condition string) {
|
func (q *PaginationQuery) Ors(condition string) {
|
||||||
q.And("(" + condition + ")")
|
q.And("(" + condition + ")")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user