diff --git a/go.mod b/go.mod index 96e461b..86c5600 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/go-playground/universal-translator v0.18.1 github.com/go-playground/validator/v10 v10.20.0 github.com/go-redis/redis v6.15.9+incompatible - github.com/gomodule/redigo v1.9.2 + github.com/gomodule/redigo v2.0.0+incompatible github.com/jinzhu/copier v0.4.0 github.com/makiuchi-d/gozxing v0.0.0-20210324052758-57132e828831 github.com/qiniu/api.v7/v7 v7.8.2 @@ -38,6 +38,7 @@ require ( code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible + github.com/gin-contrib/sessions v1.0.1 github.com/go-pay/crypto v0.0.1 github.com/go-pay/gopay v1.5.101 github.com/go-pay/xlog v0.0.2 diff --git a/main.go b/main.go index 02732e3..6479141 100644 --- a/main.go +++ b/main.go @@ -52,8 +52,8 @@ func init() { // @BasePath /api/v1 func main() { var users []model.UserRelate - //db.Db.Where("level=1 and id>= 79725").Asc("id").Find(&users) - db.Db.Where("level=1").Asc("id").Find(&users) + db.Db.Where("level=1 and id>= 44106").Asc("id").Find(&users) + //db.Db.Where("level=1").Asc("id").Find(&users) for _, v := range users { fmt.Println("ID<<<<<<<", v.Id) fmt.Println("user>>>>>", v.Uid)