A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
refactor(goimports): add goimports to golangci-lint configuration #1432
LinkinStars62e765f70a04
diff --git a/.golangci.yaml b/.golangci.yamlindex af00efc3..263f63f7 100644--- a/.golangci.yaml+++ b/.golangci.yaml@@ -22,6 +22,7 @@ linters:formatters:enable:- gofmt+ - goimportssettings:gofmt:simplify: truediff --git a/internal/base/handler/handler.go b/internal/base/handler/handler.goindex 5a4961a3..b545b5e0 100644--- a/internal/base/handler/handler.go+++ b/internal/base/handler/handler.go@@ -21,13 +21,14 @@ package handlerimport ("errors"+ "net/http"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/reason""github.com/apache/answer/internal/base/validator""github.com/gin-gonic/gin"myErrors "github.com/segmentfault/pacman/errors""github.com/segmentfault/pacman/log"- "net/http")// HandleResponse Handle response bodydiff --git a/internal/base/middleware/accept_language.go b/internal/base/middleware/accept_language.goindex 7a8ee391..ca8a1f90 100644--- a/internal/base/middleware/accept_language.go+++ b/internal/base/middleware/accept_language.go@@ -20,13 +20,14 @@package middlewareimport (+ "strings"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/handler""github.com/apache/answer/internal/base/translator""github.com/gin-gonic/gin""github.com/segmentfault/pacman/i18n""golang.org/x/text/language"- "strings")// ExtractAndSetAcceptLanguage extract accept language from header and set to contextdiff --git a/internal/base/middleware/rate_limit.go b/internal/base/middleware/rate_limit.goindex 29b96175..d376a6d5 100644--- a/internal/base/middleware/rate_limit.go+++ b/internal/base/middleware/rate_limit.go@@ -22,6 +22,7 @@ package middlewareimport ("encoding/json""fmt"+"github.com/apache/answer/internal/base/handler""github.com/apache/answer/internal/base/reason""github.com/apache/answer/internal/repo/limit"diff --git a/internal/cli/config.go b/internal/cli/config.goindex 93cb8eab..ecb62a13 100644--- a/internal/cli/config.go+++ b/internal/cli/config.go@@ -23,6 +23,7 @@ import ("context""encoding/json""fmt"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/entity"diff --git a/internal/cli/i18n.go b/internal/cli/i18n.goindex faef0f28..819ebd75 100644--- a/internal/cli/i18n.go+++ b/internal/cli/i18n.go@@ -21,13 +21,14 @@ package cliimport ("fmt"+ "os"+ "path/filepath"+ "strings"+"github.com/apache/answer/i18n""github.com/apache/answer/pkg/dir""github.com/apache/answer/pkg/writer""gopkg.in/yaml.v3"- "os"- "path/filepath"- "strings")type YamlPluginContent struct {diff --git a/internal/controller/template_render/comment.go b/internal/controller/template_render/comment.goindex 67efd212..2862ad8d 100644--- a/internal/controller/template_render/comment.go+++ b/internal/controller/template_render/comment.go@@ -21,6 +21,7 @@ package templaterenderimport ("context"+"github.com/apache/answer/internal/base/pager""github.com/apache/answer/internal/schema")diff --git a/internal/controller/user_plugin_controller.go b/internal/controller/user_plugin_controller.goindex 31021525..1c4c041c 100644--- a/internal/controller/user_plugin_controller.go+++ b/internal/controller/user_plugin_controller.go@@ -21,10 +21,11 @@ package controllerimport ("encoding/json"+ "net/http"+"github.com/apache/answer/internal/base/middleware""github.com/apache/answer/internal/base/reason""github.com/segmentfault/pacman/errors"- "net/http""github.com/apache/answer/internal/base/handler""github.com/apache/answer/internal/schema"diff --git a/internal/entity/badge_entity.go b/internal/entity/badge_entity.goindex a370e275..367bb745 100644--- a/internal/entity/badge_entity.go+++ b/internal/entity/badge_entity.go@@ -20,8 +20,9 @@package entityimport (- "github.com/tidwall/gjson""time"++ "github.com/tidwall/gjson")type BadgeLevel intdiff --git a/internal/entity/config_entity.go b/internal/entity/config_entity.goindex 95a02be4..d39af7b2 100644--- a/internal/entity/config_entity.go+++ b/internal/entity/config_entity.go@@ -21,6 +21,7 @@ package entityimport ("encoding/json"+"github.com/segmentfault/pacman/log""github.com/apache/answer/pkg/converter"diff --git a/internal/migrations/v1.go b/internal/migrations/v1.goindex c5e731a0..688732fa 100644--- a/internal/migrations/v1.go+++ b/internal/migrations/v1.go@@ -21,6 +21,7 @@ package migrationsimport ("context"+"xorm.io/xorm")diff --git a/internal/migrations/v13.go b/internal/migrations/v13.goindex 30bfbb54..57d24848 100644--- a/internal/migrations/v13.go+++ b/internal/migrations/v13.go@@ -24,6 +24,7 @@ import ("encoding/json""fmt""time"+"xorm.io/builder""github.com/apache/answer/internal/base/constant"diff --git a/internal/migrations/v14.go b/internal/migrations/v14.goindex ee3a3d0d..5e125c98 100644--- a/internal/migrations/v14.go+++ b/internal/migrations/v14.go@@ -22,6 +22,7 @@ package migrationsimport ("context""time"+"xorm.io/xorm/schemas""xorm.io/xorm"diff --git a/internal/migrations/v15.go b/internal/migrations/v15.goindex 5195c105..5858d009 100644--- a/internal/migrations/v15.go+++ b/internal/migrations/v15.go@@ -21,6 +21,7 @@ package migrationsimport ("context"+"github.com/apache/answer/internal/entity""xorm.io/xorm")diff --git a/internal/migrations/v16.go b/internal/migrations/v16.goindex 11643600..11ae3684 100644--- a/internal/migrations/v16.go+++ b/internal/migrations/v16.go@@ -21,6 +21,7 @@ package migrationsimport ("context"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/entity""github.com/segmentfault/pacman/log"diff --git a/internal/migrations/v17.go b/internal/migrations/v17.goindex 655e547a..3fa2c7b3 100644--- a/internal/migrations/v17.go+++ b/internal/migrations/v17.go@@ -22,6 +22,7 @@ package migrationsimport ("context""fmt"+"github.com/apache/answer/internal/entity""github.com/apache/answer/internal/service/permission""github.com/segmentfault/pacman/log"diff --git a/internal/migrations/v18.go b/internal/migrations/v18.goindex 89db524f..7178c704 100644--- a/internal/migrations/v18.go+++ b/internal/migrations/v18.go@@ -23,6 +23,7 @@ import ("context""encoding/json""fmt"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/entity""github.com/apache/answer/internal/schema"diff --git a/internal/migrations/v19.go b/internal/migrations/v19.goindex b45d374b..b50c89f1 100644--- a/internal/migrations/v19.go+++ b/internal/migrations/v19.go@@ -21,6 +21,7 @@ package migrationsimport ("context"+"github.com/apache/answer/internal/entity""xorm.io/xorm")diff --git a/internal/migrations/v2.go b/internal/migrations/v2.goindex 4e17597d..601ff98b 100644--- a/internal/migrations/v2.go+++ b/internal/migrations/v2.go@@ -21,6 +21,7 @@ package migrationsimport ("context"+"xorm.io/xorm")diff --git a/internal/migrations/v21.go b/internal/migrations/v21.goindex 880852f8..de38bffb 100644--- a/internal/migrations/v21.go+++ b/internal/migrations/v21.go@@ -21,6 +21,7 @@ package migrationsimport ("context"+"xorm.io/xorm")diff --git a/internal/migrations/v22.go b/internal/migrations/v22.goindex 14292a1e..e7177dea 100644--- a/internal/migrations/v22.go+++ b/internal/migrations/v22.go@@ -22,6 +22,7 @@ package migrationsimport ("context""fmt"+"github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/entity""github.com/apache/answer/internal/repo/unique"diff --git a/internal/migrations/v24.go b/internal/migrations/v24.goindex 19358af4..a488679f 100644--- a/internal/migrations/v24.go+++ b/internal/migrations/v24.go@@ -23,6 +23,7 @@ import ("context""encoding/json""fmt"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/entity""github.com/apache/answer/internal/schema"diff --git a/internal/repo/activity/answer_repo.go b/internal/repo/activity/answer_repo.goindex db6e3bde..4aca874a 100644--- a/internal/repo/activity/answer_repo.go+++ b/internal/repo/activity/answer_repo.go@@ -22,8 +22,9 @@ package activityimport ("context""fmt"- "github.com/segmentfault/pacman/log""time"++ "github.com/segmentfault/pacman/log""xorm.io/builder""github.com/apache/answer/internal/base/constant"diff --git a/internal/repo/activity/user_active_repo.go b/internal/repo/activity/user_active_repo.goindex 2452bcf8..68dfec7d 100644--- a/internal/repo/activity/user_active_repo.go+++ b/internal/repo/activity/user_active_repo.go@@ -22,6 +22,7 @@ package activityimport ("context""fmt"+"xorm.io/builder""github.com/apache/answer/internal/base/data"diff --git a/internal/repo/activity_common/vote.go b/internal/repo/activity_common/vote.goindex cb7d23d0..50657842 100644--- a/internal/repo/activity_common/vote.go+++ b/internal/repo/activity_common/vote.go@@ -21,6 +21,7 @@ package activity_commonimport ("context"+"github.com/apache/answer/pkg/uid""github.com/apache/answer/internal/base/data"diff --git a/internal/repo/auth/auth.go b/internal/repo/auth/auth.goindex a1e358f9..597352b2 100644--- a/internal/repo/auth/auth.go+++ b/internal/repo/auth/auth.go@@ -22,6 +22,7 @@ package authimport ("context""encoding/json"+"github.com/apache/answer/internal/service/auth""github.com/apache/answer/internal/base/constant"diff --git a/internal/repo/badge/badge_event_rule.go b/internal/repo/badge/badge_event_rule.goindex 8c4656db..786d988a 100644--- a/internal/repo/badge/badge_event_rule.go+++ b/internal/repo/badge/badge_event_rule.go@@ -21,6 +21,8 @@ package badgeimport ("context"+ "strconv"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/reason"@@ -29,7 +31,6 @@ import ("github.com/apache/answer/internal/service/badge""github.com/segmentfault/pacman/errors""github.com/segmentfault/pacman/log"- "strconv")// eventRuleRepo event rule repodiff --git a/internal/repo/badge/badge_repo.go b/internal/repo/badge/badge_repo.goindex 257caef8..baff45d8 100644--- a/internal/repo/badge/badge_repo.go+++ b/internal/repo/badge/badge_repo.go@@ -21,6 +21,7 @@ package badgeimport ("context"+"github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/pager""github.com/apache/answer/internal/base/reason"diff --git a/internal/repo/badge_award/badge_award_repo.go b/internal/repo/badge_award/badge_award_repo.goindex eda5d80c..11429e57 100644--- a/internal/repo/badge_award/badge_award_repo.go+++ b/internal/repo/badge_award/badge_award_repo.go@@ -22,6 +22,7 @@ package badge_awardimport ("context""fmt"+"github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/pager""github.com/apache/answer/internal/base/reason"diff --git a/internal/repo/badge_group/badge_group_repo.go b/internal/repo/badge_group/badge_group_repo.goindex 839ba469..8f1111a4 100644--- a/internal/repo/badge_group/badge_group_repo.go+++ b/internal/repo/badge_group/badge_group_repo.go@@ -21,6 +21,7 @@ package badge_groupimport ("context"+"github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/entity""github.com/apache/answer/internal/service/badge"diff --git a/internal/repo/collection/collection_repo.go b/internal/repo/collection/collection_repo.goindex a3faacdb..f30692c9 100644--- a/internal/repo/collection/collection_repo.go+++ b/internal/repo/collection/collection_repo.go@@ -21,6 +21,7 @@ package collectionimport ("context"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/handler"diff --git a/internal/repo/export/email_repo.go b/internal/repo/export/email_repo.goindex 1f8e1ce8..a3e61971 100644--- a/internal/repo/export/email_repo.go+++ b/internal/repo/export/email_repo.go@@ -21,9 +21,10 @@ package exportimport ("context"+ "time"+"github.com/apache/answer/internal/base/constant""github.com/tidwall/gjson"- "time""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/reason"diff --git a/internal/repo/limit/limit.go b/internal/repo/limit/limit.goindex 4868accd..524ad12b 100644--- a/internal/repo/limit/limit.go+++ b/internal/repo/limit/limit.go@@ -22,11 +22,12 @@ package limitimport ("context""fmt"+ "time"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/reason""github.com/segmentfault/pacman/errors"- "time")// LimitRepo auth repositorydiff --git a/internal/repo/meta/meta_repo.go b/internal/repo/meta/meta_repo.goindex 9680fb41..fecd7bd5 100644--- a/internal/repo/meta/meta_repo.go+++ b/internal/repo/meta/meta_repo.go@@ -25,7 +25,7 @@ import ("github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/reason""github.com/apache/answer/internal/entity"- "github.com/apache/answer/internal/service/meta_common"+ metacommon "github.com/apache/answer/internal/service/meta_common""github.com/segmentfault/pacman/errors""xorm.io/builder""xorm.io/xorm"diff --git a/internal/repo/plugin_config/plugin_user_config_repo.go b/internal/repo/plugin_config/plugin_user_config_repo.goindex 83da8e75..d14442a5 100644--- a/internal/repo/plugin_config/plugin_user_config_repo.go+++ b/internal/repo/plugin_config/plugin_user_config_repo.go@@ -21,6 +21,7 @@ package plugin_configimport ("context"+"github.com/apache/answer/internal/base/pager""xorm.io/xorm"diff --git a/internal/repo/search_sync/search_sync.go b/internal/repo/search_sync/search_sync.goindex 5c0adc0f..889ffe5b 100644--- a/internal/repo/search_sync/search_sync.go+++ b/internal/repo/search_sync/search_sync.go@@ -21,6 +21,7 @@ package search_syncimport ("context"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/entity"diff --git a/internal/repo/user_notification_config/user_notification_config_repo.go b/internal/repo/user_notification_config/user_notification_config_repo.goindex 8ea2b065..0e761514 100644--- a/internal/repo/user_notification_config/user_notification_config_repo.go+++ b/internal/repo/user_notification_config/user_notification_config_repo.go@@ -21,6 +21,7 @@ package user_notification_configimport ("context"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/reason"diff --git a/internal/schema/email_template.go b/internal/schema/email_template.goindex 1fcdfbce..d7e4b929 100644--- a/internal/schema/email_template.go+++ b/internal/schema/email_template.go@@ -21,6 +21,7 @@ package schemaimport ("encoding/json"+"github.com/apache/answer/internal/base/constant")diff --git a/internal/schema/notification_schema.go b/internal/schema/notification_schema.goindex a68328ac..e5d60615 100644--- a/internal/schema/notification_schema.go+++ b/internal/schema/notification_schema.go@@ -21,8 +21,9 @@ package schemaimport ("encoding/json"- "github.com/apache/answer/internal/entity""sort"++ "github.com/apache/answer/internal/entity")const (diff --git a/internal/schema/user_notification_schema.go b/internal/schema/user_notification_schema.goindex eca97e81..60cc4a27 100644--- a/internal/schema/user_notification_schema.go+++ b/internal/schema/user_notification_schema.go@@ -21,6 +21,7 @@ package schemaimport ("encoding/json"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/entity")diff --git a/internal/service/activity/activity.go b/internal/service/activity/activity.goindex 2d384f34..061d8449 100644--- a/internal/service/activity/activity.go+++ b/internal/service/activity/activity.go@@ -26,7 +26,7 @@ import ("strings""github.com/apache/answer/internal/service/activity_common"- "github.com/apache/answer/internal/service/meta_common"+ metacommon "github.com/apache/answer/internal/service/meta_common""github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/handler"diff --git a/internal/service/activity/answer_activity_service.go b/internal/service/activity/answer_activity_service.goindex 169e7eb3..48b5f3ef 100644--- a/internal/service/activity/answer_activity_service.go+++ b/internal/service/activity/answer_activity_service.go@@ -21,6 +21,7 @@ package activityimport ("context"+"github.com/apache/answer/internal/schema""github.com/apache/answer/internal/service/activity_type""github.com/apache/answer/internal/service/config"diff --git a/internal/service/badge/badge_award_service.go b/internal/service/badge/badge_award_service.goindex 397a7471..982c1d1a 100644--- a/internal/service/badge/badge_award_service.go+++ b/internal/service/badge/badge_award_service.go@@ -21,6 +21,7 @@ package badgeimport ("context"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/handler""github.com/apache/answer/internal/base/reason"diff --git a/internal/service/badge/badge_event_handler.go b/internal/service/badge/badge_event_handler.goindex 21982294..cc161f6a 100644--- a/internal/service/badge/badge_event_handler.go+++ b/internal/service/badge/badge_event_handler.go@@ -21,6 +21,7 @@ package badgeimport ("context"+"github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/entity""github.com/apache/answer/internal/schema"diff --git a/internal/service/badge/badge_group_service.go b/internal/service/badge/badge_group_service.goindex e0dab6e8..7c220a0b 100644--- a/internal/service/badge/badge_group_service.go+++ b/internal/service/badge/badge_group_service.go@@ -21,6 +21,7 @@ package badgeimport ("context"+"github.com/apache/answer/internal/entity")diff --git a/internal/service/badge/badge_service.go b/internal/service/badge/badge_service.goindex 7bc9ffe2..03b8a877 100644--- a/internal/service/badge/badge_service.go+++ b/internal/service/badge/badge_service.go@@ -21,6 +21,8 @@ package badgeimport ("context"+ "strings"+"github.com/apache/answer/internal/base/handler""github.com/apache/answer/internal/base/reason""github.com/apache/answer/internal/base/translator"@@ -32,7 +34,6 @@ import ("github.com/gin-gonic/gin""github.com/segmentfault/pacman/errors""github.com/segmentfault/pacman/log"- "strings")type BadgeRepo interface {diff --git a/internal/service/content/question_hottest_service.go b/internal/service/content/question_hottest_service.goindex a33b155f..085b3670 100644--- a/internal/service/content/question_hottest_service.go+++ b/internal/service/content/question_hottest_service.go@@ -21,11 +21,12 @@ package contentimport ("context"+ "math"+ "time"+"github.com/apache/answer/internal/entity""github.com/apache/answer/internal/schema""github.com/segmentfault/pacman/log"- "math"- "time")func (q *QuestionService) RefreshHottestCron(ctx context.Context) {diff --git a/internal/service/content/vote_service.go b/internal/service/content/vote_service.goindex ff3ee597..92f0c996 100644--- a/internal/service/content/vote_service.go+++ b/internal/service/content/vote_service.go@@ -22,9 +22,10 @@ package contentimport ("context""fmt"- "github.com/apache/answer/internal/service/event_queue""strings"+ "github.com/apache/answer/internal/service/event_queue"+"github.com/apache/answer/internal/service/activity_common""github.com/apache/answer/internal/base/constant"diff --git a/internal/service/export/email_service.go b/internal/service/export/email_service.goindex b00ee093..ddf31b34 100644--- a/internal/service/export/email_service.go+++ b/internal/service/export/email_service.go@@ -23,12 +23,13 @@ import ("crypto/tls""encoding/json""fmt"- "github.com/apache/answer/pkg/display""mime""os""strings""time"+ "github.com/apache/answer/pkg/display"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/handler""github.com/apache/answer/internal/base/reason"diff --git a/internal/service/meta/meta_service.go b/internal/service/meta/meta_service.goindex 9e4f0741..4b310419 100644--- a/internal/service/meta/meta_service.go+++ b/internal/service/meta/meta_service.go@@ -23,10 +23,11 @@ import ("context""encoding/json""errors"- "github.com/apache/answer/internal/service/event_queue""strconv""strings"+ "github.com/apache/answer/internal/service/event_queue"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/handler""github.com/apache/answer/internal/base/reason"diff --git a/internal/service/notification/notification_service.go b/internal/service/notification/notification_service.goindex 598212aa..09d87135 100644--- a/internal/service/notification/notification_service.go+++ b/internal/service/notification/notification_service.go@@ -23,6 +23,7 @@ import ("context""encoding/json""fmt"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/handler"diff --git a/internal/service/permission/answer_permission.go b/internal/service/permission/answer_permission.goindex 4eb563a5..340fca8d 100644--- a/internal/service/permission/answer_permission.go+++ b/internal/service/permission/answer_permission.go@@ -21,6 +21,7 @@ package permissionimport ("context"+"github.com/apache/answer/internal/entity""github.com/apache/answer/internal/base/handler"diff --git a/internal/service/permission/question_permission.go b/internal/service/permission/question_permission.goindex b6750bea..eca0a58f 100644--- a/internal/service/permission/question_permission.go+++ b/internal/service/permission/question_permission.go@@ -21,6 +21,7 @@ package permissionimport ("context"+"github.com/apache/answer/internal/entity""github.com/apache/answer/internal/base/handler"diff --git a/internal/service/provider.go b/internal/service/provider.goindex 4b1b6427..65535f41 100644--- a/internal/service/provider.go+++ b/internal/service/provider.go@@ -40,7 +40,7 @@ import ("github.com/apache/answer/internal/service/follow""github.com/apache/answer/internal/service/importer""github.com/apache/answer/internal/service/meta"- "github.com/apache/answer/internal/service/meta_common"+ metacommon "github.com/apache/answer/internal/service/meta_common""github.com/apache/answer/internal/service/notice_queue""github.com/apache/answer/internal/service/notification"notficationcommon "github.com/apache/answer/internal/service/notification_common"diff --git a/internal/service/report/report_service.go b/internal/service/report/report_service.goindex 7dcc1d68..d32ccdab 100644--- a/internal/service/report/report_service.go+++ b/internal/service/report/report_service.go@@ -21,6 +21,7 @@ package reportimport ("encoding/json"+"github.com/apache/answer/internal/service/event_queue""github.com/apache/answer/internal/base/constant"diff --git a/internal/service/search_parser/search_parser.go b/internal/service/search_parser/search_parser.goindex e87efaf6..3e6182e1 100644--- a/internal/service/search_parser/search_parser.go+++ b/internal/service/search_parser/search_parser.go@@ -22,10 +22,11 @@ package search_parserimport ("context""fmt"- "github.com/apache/answer/internal/base/constant""regexp""strings"+ "github.com/apache/answer/internal/base/constant"+"github.com/apache/answer/internal/schema""github.com/apache/answer/internal/service/tag_common"usercommon "github.com/apache/answer/internal/service/user_common"diff --git a/internal/service/user_notification_config/user_notification_config_service.go b/internal/service/user_notification_config/user_notification_config_service.goindex 7c54df0a..01da3ee2 100644--- a/internal/service/user_notification_config/user_notification_config_service.go+++ b/internal/service/user_notification_config/user_notification_config_service.go@@ -21,6 +21,7 @@ package user_notification_configimport ("context"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/entity""github.com/apache/answer/internal/schema"diff --git a/pkg/converter/str.go b/pkg/converter/str.goindex 5164609c..8553975b 100644--- a/pkg/converter/str.go+++ b/pkg/converter/str.go@@ -21,8 +21,9 @@ package converterimport ("fmt"- "github.com/segmentfault/pacman/log""strconv"++ "github.com/segmentfault/pacman/log")func StringToInt64(str string) int64 {diff --git a/pkg/day/day_test.go b/pkg/day/day_test.goindex 73e49aca..4f945d88 100644--- a/pkg/day/day_test.go+++ b/pkg/day/day_test.go@@ -20,9 +20,10 @@package dayimport (- "github.com/stretchr/testify/assert""testing""time"++ "github.com/stretchr/testify/assert")func TestFormat(t *testing.T) {diff --git a/pkg/gravatar/gravatar_test.go b/pkg/gravatar/gravatar_test.goindex bf504e68..b88a6964 100644--- a/pkg/gravatar/gravatar_test.go+++ b/pkg/gravatar/gravatar_test.go@@ -20,9 +20,10 @@package gravatarimport (- "github.com/apache/answer/internal/base/constant""testing"+ "github.com/apache/answer/internal/base/constant"+"github.com/stretchr/testify/assert")