Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tuzhiwei committed Jun 13, 2024
1 parent b148aa4 commit 60df799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const (

//"colum:user;opr:in;split:sting;sep:,"`
queryConditionColum = "colum"
queryConditionOpr = "opr"
queryConditionOpr = "op"
queryConditionSplit = "split"
queryConditionSep = "sep"
queryConditionPattern = "pattern"
queryConditionPattern = "patten"

// pattern: 会把结构体的值替换pattern字符串中的?
// pattern:?%
Expand Down
4 changes: 2 additions & 2 deletions condition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type areaQueryBody struct {
nameIDQueryBody `cond:"embedded"`
//Name string `cond:"colum:name;opr:like;pattern:%%?%%"`
//ID []int `cond:"colum:id;opr:in"`
Type string `cond:"colum:type;opr:in;split:int;sep:,"`
Type string `cond:"colum:type;op:in;split:int;sep:,"`
Start string `cond:"colum:created_at;opr:>"`
Desc string `cond:"colum:desc;opr:in"` // split默认值string,sep默认值,
}
Expand All @@ -27,7 +27,7 @@ type locationQueryBody struct {
}

type nameIDQueryBody struct {
Name string `cond:"colum:name;opr:like;pattern:%%?%%"`
Name string `cond:"colum:name;opr:like;patten:%%?%%"`
ID []int `cond:"colum:id;opr:in"`
}

Expand Down

0 comments on commit 60df799

Please sign in to comment.