diff --git a/backend/app/events/publishers/user_register.go b/backend/app/events/publishers/user_register.go index 06664ce..8314cdf 100644 --- a/backend/app/events/publishers/user_register.go +++ b/backend/app/events/publishers/user_register.go @@ -2,6 +2,7 @@ package publishers import ( "encoding/json" + "quyun/app/events" "go.ipao.vip/atom/contracts" diff --git a/backend/app/events/subscribers/user_register.go b/backend/app/events/subscribers/user_register.go index 53de1b1..6229f5d 100644 --- a/backend/app/events/subscribers/user_register.go +++ b/backend/app/events/subscribers/user_register.go @@ -2,6 +2,7 @@ package subscribers import ( "encoding/json" + "quyun/app/events" "quyun/app/events/publishers" diff --git a/backend/app/http/admin/uploads.go b/backend/app/http/admin/uploads.go index bd9e720..5d91720 100644 --- a/backend/app/http/admin/uploads.go +++ b/backend/app/http/admin/uploads.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" "path/filepath" + "quyun/app/jobs" "quyun/app/models" "quyun/database/schemas/public/model" diff --git a/backend/app/http/auth.go b/backend/app/http/auth.go index 1f286a3..e60b3af 100644 --- a/backend/app/http/auth.go +++ b/backend/app/http/auth.go @@ -2,13 +2,14 @@ package http import ( "net/url" + "time" + "quyun/app/models" "quyun/database/fields" "quyun/database/schemas/public/model" "quyun/pkg/utils" "quyun/providers/jwt" "quyun/providers/wechat" - "time" "github.com/gofiber/fiber/v3" "github.com/pkg/errors" diff --git a/backend/app/http/pays.go b/backend/app/http/pays.go index 3eb3468..90b9e15 100644 --- a/backend/app/http/pays.go +++ b/backend/app/http/pays.go @@ -2,6 +2,7 @@ package http import ( "net/http" + "quyun/app/jobs" "quyun/providers/job" "quyun/providers/wepay" diff --git a/backend/app/http/posts.go b/backend/app/http/posts.go index 0520ac7..6a5d1be 100644 --- a/backend/app/http/posts.go +++ b/backend/app/http/posts.go @@ -2,13 +2,14 @@ package http import ( _ "embed" + "time" + "quyun/app/models" "quyun/app/requests" "quyun/database/fields" "quyun/database/schemas/public/model" "quyun/providers/ali" "quyun/providers/wepay" - "time" "github.com/go-pay/gopay/wechat/v3" "github.com/gofiber/fiber/v3" diff --git a/backend/app/http/users.go b/backend/app/http/users.go index c33f173..b801e0a 100644 --- a/backend/app/http/users.go +++ b/backend/app/http/users.go @@ -1,11 +1,12 @@ package http import ( - "quyun/app/models" - "quyun/database/schemas/public/model" "strings" "time" + "quyun/app/models" + "quyun/database/schemas/public/model" + "github.com/gofiber/fiber/v3" ) diff --git a/backend/app/http/wechats.go b/backend/app/http/wechats.go index c28e350..b1e3e43 100644 --- a/backend/app/http/wechats.go +++ b/backend/app/http/wechats.go @@ -1,10 +1,11 @@ package http import ( + "time" + "quyun/app/models" "quyun/database/schemas/public/model" "quyun/providers/wechat" - "time" "github.com/gofiber/fiber/v3" "github.com/gofiber/fiber/v3/log" diff --git a/backend/app/jobs/download_from_alioss.go b/backend/app/jobs/download_from_alioss.go index 9481ce9..0f67d23 100644 --- a/backend/app/jobs/download_from_alioss.go +++ b/backend/app/jobs/download_from_alioss.go @@ -4,11 +4,12 @@ import ( "context" "os" "path/filepath" + "time" + "quyun/app/models" "quyun/providers/ali" "quyun/providers/app" "quyun/providers/job" - "time" . "github.com/riverqueue/river" log "github.com/sirupsen/logrus" diff --git a/backend/app/jobs/download_from_alioss_test.go b/backend/app/jobs/download_from_alioss_test.go index ce7f211..2c2d2e3 100644 --- a/backend/app/jobs/download_from_alioss_test.go +++ b/backend/app/jobs/download_from_alioss_test.go @@ -2,12 +2,13 @@ package jobs import ( "context" + "testing" + "quyun/app/models" "quyun/app/service/testx" "quyun/providers/ali" "quyun/providers/app" "quyun/providers/job" - "testing" . "github.com/riverqueue/river" . "github.com/smartystreets/goconvey/convey" diff --git a/backend/app/jobs/publish_draft_posts.go b/backend/app/jobs/publish_draft_posts.go index 90dab4f..ca36a17 100644 --- a/backend/app/jobs/publish_draft_posts.go +++ b/backend/app/jobs/publish_draft_posts.go @@ -2,6 +2,8 @@ package jobs import ( "context" + "time" + "quyun/app/models" "quyun/database/fields" "quyun/database/schemas/public/model" @@ -9,7 +11,6 @@ import ( "quyun/providers/ali" "quyun/providers/app" "quyun/providers/job" - "time" . "github.com/riverqueue/river" "github.com/samber/lo" diff --git a/backend/app/jobs/video_cut.go b/backend/app/jobs/video_cut.go index ff51707..bca980b 100644 --- a/backend/app/jobs/video_cut.go +++ b/backend/app/jobs/video_cut.go @@ -3,12 +3,13 @@ package jobs import ( "context" "path/filepath" + "time" + "quyun/app/models" "quyun/database/fields" "quyun/pkg/utils" "quyun/providers/app" "quyun/providers/job" - "time" . "github.com/riverqueue/river" log "github.com/sirupsen/logrus" diff --git a/backend/app/jobs/video_extract_head_image.go b/backend/app/jobs/video_extract_head_image.go index 8b8dcdc..10785d7 100644 --- a/backend/app/jobs/video_extract_head_image.go +++ b/backend/app/jobs/video_extract_head_image.go @@ -4,6 +4,8 @@ import ( "context" "os" "path/filepath" + "time" + "quyun/app/models" "quyun/database/fields" "quyun/database/schemas/public/model" @@ -11,7 +13,6 @@ import ( "quyun/providers/ali" "quyun/providers/app" "quyun/providers/job" - "time" . "github.com/riverqueue/river" log "github.com/sirupsen/logrus" diff --git a/backend/app/jobs/video_store_short.go b/backend/app/jobs/video_store_short.go index 7efb02c..0e64f21 100644 --- a/backend/app/jobs/video_store_short.go +++ b/backend/app/jobs/video_store_short.go @@ -3,6 +3,8 @@ package jobs import ( "context" "path/filepath" + "time" + "quyun/app/models" "quyun/database/fields" "quyun/database/schemas/public/model" @@ -10,7 +12,6 @@ import ( "quyun/providers/ali" "quyun/providers/app" "quyun/providers/job" - "time" . "github.com/riverqueue/river" log "github.com/sirupsen/logrus" diff --git a/backend/app/jobs/wechat_pay_notify.go b/backend/app/jobs/wechat_pay_notify.go index 4823d11..6c9e25d 100644 --- a/backend/app/jobs/wechat_pay_notify.go +++ b/backend/app/jobs/wechat_pay_notify.go @@ -3,10 +3,11 @@ package jobs import ( "context" "fmt" + "time" + "quyun/app/models" "quyun/database/fields" "quyun/providers/wepay" - "time" "github.com/pkg/errors" . "github.com/riverqueue/river" diff --git a/backend/app/jobs/wechat_pay_notify_test.go b/backend/app/jobs/wechat_pay_notify_test.go index a9b7738..37434d3 100644 --- a/backend/app/jobs/wechat_pay_notify_test.go +++ b/backend/app/jobs/wechat_pay_notify_test.go @@ -3,13 +3,14 @@ package jobs import ( "context" "encoding/json" + "testing" + "quyun/app/models" "quyun/app/service/testx" "quyun/providers/ali" "quyun/providers/app" "quyun/providers/job" "quyun/providers/wepay" - "testing" . "github.com/riverqueue/river" . "github.com/smartystreets/goconvey/convey" diff --git a/backend/app/middlewares/mid_auth.go b/backend/app/middlewares/mid_auth.go index 109f36b..5744fac 100644 --- a/backend/app/middlewares/mid_auth.go +++ b/backend/app/middlewares/mid_auth.go @@ -2,11 +2,12 @@ package middlewares import ( "net/url" - "quyun/app/models" - "quyun/pkg/utils" "strings" "time" + "quyun/app/models" + "quyun/pkg/utils" + "github.com/gofiber/fiber/v3" log "github.com/sirupsen/logrus" ) diff --git a/backend/app/models/medias.go b/backend/app/models/medias.go index e814557..2eff3cc 100644 --- a/backend/app/models/medias.go +++ b/backend/app/models/medias.go @@ -2,11 +2,12 @@ package models import ( "context" + "time" + "quyun/app/requests" "quyun/database/fields" "quyun/database/schemas/public/model" "quyun/database/schemas/public/table" - "time" . "github.com/go-jet/jet/v2/postgres" "github.com/samber/lo" diff --git a/backend/app/models/medias_test.go b/backend/app/models/medias_test.go index 6564ee8..38432e9 100644 --- a/backend/app/models/medias_test.go +++ b/backend/app/models/medias_test.go @@ -5,13 +5,14 @@ import ( "fmt" "math" "math/rand" + "testing" + "time" + "quyun/app/requests" "quyun/app/service/testx" "quyun/database" "quyun/database/schemas/public/model" "quyun/database/schemas/public/table" - "testing" - "time" . "github.com/smartystreets/goconvey/convey" "go.ipao.vip/atom/contracts" diff --git a/backend/app/models/orders.go b/backend/app/models/orders.go index a23a203..e644ef9 100644 --- a/backend/app/models/orders.go +++ b/backend/app/models/orders.go @@ -3,11 +3,12 @@ package models import ( "context" "fmt" + "time" + "quyun/app/requests" "quyun/database/fields" "quyun/database/schemas/public/model" "quyun/database/schemas/public/table" - "time" . "github.com/go-jet/jet/v2/postgres" "github.com/pkg/errors" diff --git a/backend/app/models/orders_test.go b/backend/app/models/orders_test.go index ae82758..853d373 100644 --- a/backend/app/models/orders_test.go +++ b/backend/app/models/orders_test.go @@ -2,10 +2,11 @@ package models import ( "context" + "testing" + "quyun/app/service/testx" "quyun/database" "quyun/database/schemas/public/table" - "testing" . "github.com/smartystreets/goconvey/convey" "go.ipao.vip/atom/contracts" diff --git a/backend/app/models/posts.go b/backend/app/models/posts.go index 9371d9b..c676e91 100644 --- a/backend/app/models/posts.go +++ b/backend/app/models/posts.go @@ -3,10 +3,11 @@ package models import ( "context" "errors" + "time" + "quyun/app/requests" "quyun/database/schemas/public/model" "quyun/database/schemas/public/table" - "time" . "github.com/go-jet/jet/v2/postgres" "github.com/go-jet/jet/v2/qrm" diff --git a/backend/app/models/posts_test.go b/backend/app/models/posts_test.go index 46d49bc..c5ea30d 100644 --- a/backend/app/models/posts_test.go +++ b/backend/app/models/posts_test.go @@ -4,12 +4,13 @@ import ( "context" "fmt" "math/rand" + "testing" + "quyun/app/service/testx" "quyun/database" "quyun/database/fields" "quyun/database/schemas/public/model" "quyun/database/schemas/public/table" - "testing" . "github.com/smartystreets/goconvey/convey" "go.ipao.vip/atom/contracts" diff --git a/backend/app/models/users.go b/backend/app/models/users.go index cff9da0..c24d3ba 100644 --- a/backend/app/models/users.go +++ b/backend/app/models/users.go @@ -3,11 +3,12 @@ package models import ( "context" "database/sql" + "time" + "quyun/app/requests" "quyun/database/fields" "quyun/database/schemas/public/model" "quyun/database/schemas/public/table" - "time" . "github.com/go-jet/jet/v2/postgres" "github.com/go-jet/jet/v2/qrm" diff --git a/backend/app/models/users_test.go b/backend/app/models/users_test.go index 168d5c5..3cf4c57 100644 --- a/backend/app/models/users_test.go +++ b/backend/app/models/users_test.go @@ -2,12 +2,13 @@ package models import ( "context" + "testing" + "quyun/app/service/testx" "quyun/database" "quyun/database/fields" "quyun/database/schemas/public/model" "quyun/database/schemas/public/table" - "testing" "github.com/samber/lo" . "github.com/smartystreets/goconvey/convey" diff --git a/backend/app/service/commands/compress.go b/backend/app/service/commands/compress.go index b95d76d..ad29c65 100644 --- a/backend/app/service/commands/compress.go +++ b/backend/app/service/commands/compress.go @@ -9,11 +9,12 @@ import ( "os" "os/exec" "path/filepath" - "quyun/app/service" "strconv" "strings" "time" + "quyun/app/service" + "go.ipao.vip/atom" "go.ipao.vip/atom/container" diff --git a/backend/app/service/event/event.go b/backend/app/service/event/event.go index 57b3e08..3c8510d 100644 --- a/backend/app/service/event/event.go +++ b/backend/app/service/event/event.go @@ -2,6 +2,7 @@ package event import ( "context" + "quyun/app/events/subscribers" "quyun/app/service" "quyun/providers/app" diff --git a/backend/app/service/http/http.go b/backend/app/service/http/http.go index ba97139..f6a9332 100644 --- a/backend/app/service/http/http.go +++ b/backend/app/service/http/http.go @@ -4,6 +4,7 @@ import ( "context" "mime" "path/filepath" + "quyun/app/jobs" "quyun/app/middlewares" "quyun/app/models" diff --git a/backend/app/service/migrate/migrate.go b/backend/app/service/migrate/migrate.go index de2579c..33a9f0c 100644 --- a/backend/app/service/migrate/migrate.go +++ b/backend/app/service/migrate/migrate.go @@ -3,6 +3,7 @@ package migrate import ( "context" "database/sql" + "quyun/app/service" "quyun/database" "quyun/providers/postgres" diff --git a/backend/app/service/queue/river.go b/backend/app/service/queue/river.go index ce6e878..f5a0aea 100644 --- a/backend/app/service/queue/river.go +++ b/backend/app/service/queue/river.go @@ -2,6 +2,7 @@ package queue import ( "context" + "quyun/app/jobs" "quyun/app/service" "quyun/providers/app" diff --git a/backend/app/service/testx/testing.go b/backend/app/service/testx/testing.go index a5b98b2..199de52 100644 --- a/backend/app/service/testx/testing.go +++ b/backend/app/service/testx/testing.go @@ -2,12 +2,13 @@ package testx import ( "os" + "testing" + "quyun/providers/ali" "quyun/providers/app" "quyun/providers/job" "quyun/providers/postgres" "quyun/providers/wechat" - "testing" "go.ipao.vip/atom" "go.ipao.vip/atom/container" diff --git a/backend/providers/cmux/config.go b/backend/providers/cmux/config.go index ef172c1..74a1254 100644 --- a/backend/providers/cmux/config.go +++ b/backend/providers/cmux/config.go @@ -2,6 +2,7 @@ package cmux import ( "fmt" + "quyun/providers/grpc" "quyun/providers/http" diff --git a/backend/providers/cmux/provider.go b/backend/providers/cmux/provider.go index 79fc6b7..5a77114 100644 --- a/backend/providers/cmux/provider.go +++ b/backend/providers/cmux/provider.go @@ -2,6 +2,7 @@ package cmux import ( "net" + "quyun/providers/grpc" "quyun/providers/http" diff --git a/backend/providers/job/provider.go b/backend/providers/job/provider.go index 66a53f4..d43b02c 100644 --- a/backend/providers/job/provider.go +++ b/backend/providers/job/provider.go @@ -2,9 +2,10 @@ package job import ( "context" - "quyun/providers/postgres" "sync" + "quyun/providers/postgres" + "github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5/pgxpool" "github.com/pkg/errors" diff --git a/backend/providers/req/client.go b/backend/providers/req/client.go index 58a0265..e4c8fa0 100644 --- a/backend/providers/req/client.go +++ b/backend/providers/req/client.go @@ -5,11 +5,12 @@ import ( "net/url" "os" "path/filepath" - "quyun/providers/req/cookiejar" "strconv" "strings" "time" + "quyun/providers/req/cookiejar" + "github.com/imroc/req/v3" "go.ipao.vip/atom/container" "go.ipao.vip/atom/opt" diff --git a/backend/providers/wechat/wechat.go b/backend/providers/wechat/wechat.go index 2304e56..0fc874f 100644 --- a/backend/providers/wechat/wechat.go +++ b/backend/providers/wechat/wechat.go @@ -5,11 +5,12 @@ import ( "encoding/hex" "fmt" "net/url" - "quyun/pkg/oauth" "sort" "strings" "time" + "quyun/pkg/oauth" + "github.com/imroc/req/v3" "github.com/pkg/errors" ) diff --git a/backend/providers/wepay/pay_test.go b/backend/providers/wepay/pay_test.go index 5776cf1..1ca4e23 100644 --- a/backend/providers/wepay/pay_test.go +++ b/backend/providers/wepay/pay_test.go @@ -3,10 +3,11 @@ package wepay import ( "context" "fmt" - "quyun/app/service/testx" "testing" "time" + "quyun/app/service/testx" + "github.com/go-pay/gopay/wechat/v3" "github.com/go-pay/util/js" . "github.com/smartystreets/goconvey/convey"