marion 5 years ago
parent
commit
2e31842072
2 changed files with 8 additions and 2 deletions
  1. 7 1
      go.mod
  2. 1 1
      utils/db_utils.go

+ 7 - 1
go.mod

@@ -6,15 +6,20 @@ require (
 	github.com/Shopify/sarama v1.19.0
 	github.com/bsm/sarama-cluster v2.1.15+incompatible
 	github.com/dgrijalva/jwt-go v3.2.0+incompatible
+	github.com/eapache/go-resiliency v1.2.0 // indirect
 	github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect
+	github.com/frankban/quicktest v1.9.0 // indirect
 	github.com/gin-gonic/gin v1.6.2
-	github.com/go-xorm/xorm v0.7.9
 	github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect
 	github.com/json-iterator/go v1.1.9
 	github.com/lestrrat-go/file-rotatelogs v2.3.0+incompatible
 	github.com/lestrrat-go/strftime v1.0.1 // indirect
 	github.com/nats-io/nats-server/v2 v2.1.6 // indirect
 	github.com/nats-io/nats.go v1.9.2
+	github.com/onsi/ginkgo v1.12.0 // indirect
+	github.com/onsi/gomega v1.9.0 // indirect
+	github.com/pierrec/lz4 v2.5.1+incompatible // indirect
+	github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
 	github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
 	github.com/sirupsen/logrus v1.5.0
 	github.com/spf13/viper v1.6.3
@@ -23,4 +28,5 @@ require (
 	golang.org/x/text v0.3.2
 	gopkg.in/gemnasium/logrus-graylog-hook.v2 v2.0.7
 	xorm.io/core v0.7.3
+	xorm.io/xorm v1.0.1
 )

+ 1 - 1
utils/db_utils.go

@@ -2,9 +2,9 @@ package utils
 
 import (
 	"errors"
-	"github.com/go-xorm/xorm"
 	"reflect"
 	"strings"
+	"xorm.io/xorm"
 )
 
 // 分页插入数据库