diff --git a/pkg/config/rate_limit.go b/pkg/config/rate_limit.go index 2d4a866..64b4d8a 100644 --- a/pkg/config/rate_limit.go +++ b/pkg/config/rate_limit.go @@ -2,6 +2,7 @@ package config import ( "context" + "golang.org/x/time/rate" ) diff --git a/pkg/response/antd/model.go b/pkg/response/antd/model.go index 951d6e1..0e924f0 100644 --- a/pkg/response/antd/model.go +++ b/pkg/response/antd/model.go @@ -148,4 +148,4 @@ func (e *response) PageOK(c *gin.Context, result interface{}, count, pageIndex, c.Set("result", res) c.Set("status", http.StatusOK) c.AbortWithStatusJSON(http.StatusOK, res) -} \ No newline at end of file +} diff --git a/pkg/response/controller/simple.go b/pkg/response/controller/simple.go index 649c8e4..a093d7b 100644 --- a/pkg/response/controller/simple.go +++ b/pkg/response/controller/simple.go @@ -8,9 +8,10 @@ package controller */ import ( - "github.com/mss-boot-io/mss-boot/pkg/response/actions" "strings" + "github.com/mss-boot-io/mss-boot/pkg/response/actions" + "github.com/gin-gonic/gin" mgm "github.com/kamva/mgm/v3" diff --git a/virtual/api/type.go b/virtual/api/type.go index a57cc3f..778f64e 100644 --- a/virtual/api/type.go +++ b/virtual/api/type.go @@ -1 +1 @@ -package api \ No newline at end of file +package api diff --git a/virtual/model/field.go b/virtual/model/field.go index 4d24d4d..0a49d65 100644 --- a/virtual/model/field.go +++ b/virtual/model/field.go @@ -2,12 +2,13 @@ package model import ( "fmt" - "github.com/aws/smithy-go/ptr" - "github.com/go-openapi/spec" "reflect" "strings" "time" + "github.com/aws/smithy-go/ptr" + "github.com/go-openapi/spec" + "github.com/google/uuid" "github.com/spf13/cast" "gorm.io/gorm/schema" diff --git a/virtual/model/model.go b/virtual/model/model.go index dcfdb0a..719305f 100644 --- a/virtual/model/model.go +++ b/virtual/model/model.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/go-openapi/spec" "github.com/gin-gonic/gin" + "github.com/go-openapi/spec" "gorm.io/gorm" )