Skip to content

Commit

Permalink
更新包引用
Browse files Browse the repository at this point in the history
  • Loading branch information
feizhiwu committed Apr 21, 2022
1 parent bb02d9c commit 024e46a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 148 deletions.
2 changes: 1 addition & 1 deletion app/dao/UserDao.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (d *UserDao) Delete() {

func (d *UserDao) GetAll(data map[string]interface{}) {
db := d.mainDB.Model(model.User{})
query := kokomi.NewQuery(&db, data)
query := kokomi.Active(&db, data)
query.Like("name") //如果传参data["name"],则进行like匹配查询
query.List(&d.UserList.List).Pages(&d.UserList.Pages)
}
27 changes: 0 additions & 27 deletions data/runtime/log/202203/20.log

This file was deleted.

5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ module stage
go 1.13

require (
github.com/feizhiwu/gs v1.1.1
github.com/feizhiwu/gs v1.2.2
github.com/gin-gonic/gin v1.7.7
github.com/jinzhu/gorm v1.9.11
github.com/jinzhu/gorm v1.9.16
github.com/kr/pretty v0.1.0 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.8
)
Loading

0 comments on commit 024e46a

Please sign in to comment.