From 0618947350917ecd58a5797365058da17bf8169a Mon Sep 17 00:00:00 2001 From: LinkinStars Date: Tue, 7 Jan 2025 10:37:14 +0800 Subject: [PATCH] refactor(name): rename incubator-answer --- .goreleaser.yaml | 10 +- .vaunt/config.yaml | 4 +- DISCLAIMER | 2 +- Dockerfile | 2 +- Makefile | 2 +- NOTICE | 4 +- README.md | 6 +- cmd/answer/main.go | 2 +- cmd/command.go | 10 +- cmd/main.go | 12 +- cmd/wire.go | 26 +-- cmd/wire_gen.go | 170 +++++++++--------- docs/release/NOTICE | 4 +- go.mod | 2 +- internal/base/conf/conf.go | 14 +- internal/base/constant/privilege.go | 2 +- internal/base/cron/cron.go | 4 +- internal/base/data/data.go | 4 +- internal/base/handler/handler.go | 6 +- internal/base/handler/lang.go | 2 +- internal/base/handler/response.go | 2 +- internal/base/handler/short_id.go | 2 +- internal/base/middleware/accept_language.go | 4 +- internal/base/middleware/auth.go | 18 +- internal/base/middleware/avatar.go | 6 +- internal/base/middleware/rate_limit.go | 8 +- internal/base/middleware/short_id.go | 4 +- .../middleware/user_center_plugin_auth.go | 6 +- internal/base/middleware/visit_img_auth.go | 2 +- internal/base/server/http.go | 8 +- internal/base/server/http_funcmap.go | 12 +- internal/base/validator/validator.go | 4 +- internal/cli/build.go | 30 ++-- internal/cli/config.go | 6 +- internal/cli/dump.go | 2 +- internal/cli/i18n.go | 6 +- internal/cli/install.go | 8 +- internal/cli/install_check.go | 6 +- internal/controller/activity_controller.go | 12 +- internal/controller/answer_controller.go | 26 +-- internal/controller/badge_controller.go | 12 +- internal/controller/collection_controller.go | 10 +- internal/controller/comment_controller.go | 24 +-- internal/controller/connector_controller.go | 14 +- internal/controller/dashboard_controller.go | 4 +- internal/controller/embed_controller.go | 4 +- internal/controller/follow_controller.go | 10 +- internal/controller/lang_controller.go | 6 +- internal/controller/meta_controller.go | 10 +- .../controller/notification_controller.go | 12 +- internal/controller/permission_controller.go | 8 +- .../controller/plugin_captcha_controller.go | 4 +- .../plugin_user_center_controller.go | 12 +- internal/controller/question_controller.go | 28 +-- internal/controller/rank_controller.go | 8 +- internal/controller/reason_controller.go | 6 +- internal/controller/render_controller.go | 4 +- internal/controller/report_controller.go | 24 +-- internal/controller/review_controller.go | 16 +- internal/controller/revision_controller.go | 22 +-- internal/controller/search_controller.go | 20 +-- internal/controller/siteinfo_controller.go | 8 +- internal/controller/tag_controller.go | 18 +- internal/controller/template_controller.go | 36 ++-- internal/controller/template_render/answer.go | 2 +- .../controller/template_render/comment.go | 4 +- .../controller/template_render/controller.go | 12 +- .../controller/template_render/question.go | 4 +- internal/controller/template_render/tags.go | 4 +- .../controller/template_render/userinfo.go | 2 +- internal/controller/upload_controller.go | 12 +- internal/controller/user_controller.go | 30 ++-- internal/controller/user_plugin_controller.go | 12 +- internal/controller/vote_controller.go | 22 +-- internal/controller_admin/badge_controller.go | 8 +- .../controller_admin/plugin_controller.go | 8 +- internal/controller_admin/role_controller.go | 6 +- .../controller_admin/siteinfo_controller.go | 8 +- internal/controller_admin/theme_controller.go | 4 +- .../user_backyard_controller.go | 14 +- internal/entity/comment_entity.go | 2 +- internal/entity/config_entity.go | 2 +- internal/install/install_controller.go | 18 +- internal/install/install_main.go | 4 +- internal/install/install_req.go | 6 +- internal/install/install_server.go | 6 +- internal/migrations/init.go | 10 +- internal/migrations/init_data.go | 4 +- internal/migrations/migrations.go | 4 +- internal/migrations/v10.go | 6 +- internal/migrations/v11.go | 2 +- internal/migrations/v12.go | 2 +- internal/migrations/v13.go | 8 +- internal/migrations/v15.go | 2 +- internal/migrations/v16.go | 4 +- internal/migrations/v17.go | 4 +- internal/migrations/v18.go | 6 +- internal/migrations/v19.go | 2 +- internal/migrations/v20.go | 2 +- internal/migrations/v22.go | 6 +- internal/migrations/v23.go | 2 +- internal/migrations/v24.go | 6 +- internal/migrations/v3.go | 2 +- internal/migrations/v4.go | 4 +- internal/migrations/v5.go | 2 +- internal/migrations/v6.go | 2 +- internal/migrations/v7.go | 2 +- internal/migrations/v8.go | 4 +- internal/migrations/v9.go | 2 +- internal/repo/activity/activity_repo.go | 12 +- internal/repo/activity/answer_repo.go | 20 +-- internal/repo/activity/follow_repo.go | 14 +- internal/repo/activity/review_repo.go | 18 +- internal/repo/activity/user_active_repo.go | 14 +- internal/repo/activity/vote_repo.go | 24 +-- .../repo/activity_common/activity_repo.go | 16 +- internal/repo/activity_common/follow.go | 12 +- internal/repo/activity_common/vote.go | 10 +- internal/repo/answer/answer_repo.go | 26 +-- internal/repo/auth/auth.go | 10 +- internal/repo/badge/badge_event_rule.go | 12 +- internal/repo/badge/badge_repo.go | 12 +- internal/repo/badge_award/badge_award_repo.go | 12 +- internal/repo/badge_group/badge_group_repo.go | 8 +- internal/repo/captcha/captcha.go | 8 +- .../repo/collection/collection_group_repo.go | 12 +- internal/repo/collection/collection_repo.go | 18 +- internal/repo/comment/comment_repo.go | 14 +- internal/repo/config/config_repo.go | 10 +- internal/repo/export/email_repo.go | 8 +- internal/repo/limit/limit.go | 6 +- internal/repo/meta/meta_repo.go | 8 +- .../repo/notification/notification_repo.go | 14 +- .../repo/plugin_config/plugin_config_repo.go | 8 +- .../plugin_config/plugin_user_config_repo.go | 10 +- internal/repo/provider.go | 64 +++---- internal/repo/question/question_repo.go | 24 +-- internal/repo/rank/user_rank_repo.go | 14 +- internal/repo/reason/reason_repo.go | 8 +- internal/repo/repo_test/auth_test.go | 4 +- internal/repo/repo_test/captcha_test.go | 2 +- internal/repo/repo_test/comment_repo_test.go | 10 +- internal/repo/repo_test/email_repo_test.go | 2 +- internal/repo/repo_test/meta_repo_test.go | 4 +- .../repo/repo_test/notification_repo_test.go | 6 +- internal/repo/repo_test/reason_repo_test.go | 6 +- internal/repo/repo_test/recommend_test.go | 20 +-- internal/repo/repo_test/repo_main_test.go | 4 +- internal/repo/repo_test/revision_repo_test.go | 8 +- internal/repo/repo_test/siteinfo_repo_test.go | 4 +- internal/repo/repo_test/tag_rel_repo_test.go | 6 +- internal/repo/repo_test/tag_repo_test.go | 10 +- .../repo/repo_test/user_backyard_repo_test.go | 6 +- internal/repo/repo_test/user_repo_test.go | 4 +- internal/repo/report/report_repo.go | 14 +- internal/repo/review/review_repo.go | 10 +- internal/repo/revision/revision_repo.go | 18 +- internal/repo/role/power_repo.go | 8 +- internal/repo/role/role_power_rel_repo.go | 6 +- internal/repo/role/role_repo.go | 8 +- internal/repo/role/user_role_rel_repo.go | 8 +- internal/repo/search_common/search_repo.go | 32 ++-- internal/repo/search_sync/search_sync.go | 12 +- internal/repo/site_info/siteinfo_repo.go | 10 +- internal/repo/tag/tag_rel_repo.go | 14 +- internal/repo/tag/tag_repo.go | 12 +- internal/repo/tag_common/tag_common_repo.go | 12 +- internal/repo/unique/uniqid_repo.go | 10 +- internal/repo/user/user_backyard_repo.go | 12 +- internal/repo/user/user_repo.go | 14 +- .../user_external_login_repo.go | 12 +- .../user_notification_config_repo.go | 10 +- internal/router/answer_api_router.go | 6 +- internal/router/plugin_api_router.go | 2 +- internal/router/static_router.go | 4 +- internal/router/swagger_router.go | 2 +- internal/router/template_router.go | 8 +- internal/router/ui.go | 10 +- internal/schema/activity.go | 2 +- internal/schema/answer_schema.go | 4 +- internal/schema/backyard_user_schema.go | 10 +- internal/schema/badge_schema.go | 2 +- internal/schema/comment_schema.go | 6 +- internal/schema/email_template.go | 2 +- internal/schema/event_schema.go | 4 +- internal/schema/new_question_queue_schema.go | 4 +- internal/schema/notification_schema.go | 2 +- internal/schema/permission.go | 6 +- internal/schema/plugin_admin_schema.go | 2 +- internal/schema/plugin_user_schema.go | 2 +- internal/schema/question_schema.go | 8 +- internal/schema/reason_schema.go | 2 +- internal/schema/review_schema.go | 4 +- internal/schema/revision_schema.go | 2 +- internal/schema/search_schema.go | 6 +- internal/schema/simple_obj_info_schema.go | 4 +- internal/schema/siteinfo_schema.go | 10 +- internal/schema/tag_schema.go | 4 +- internal/schema/user_notification_schema.go | 4 +- internal/schema/user_schema.go | 14 +- internal/service/action/captcha_service.go | 8 +- internal/service/action/captcha_strategy.go | 4 +- internal/service/activity/activity.go | 30 ++-- .../activity/answer_activity_service.go | 6 +- internal/service/activity/review_active.go | 2 +- internal/service/activity_common/activity.go | 10 +- .../service/activity_queue/activity_queue.go | 2 +- internal/service/answer_common/answer.go | 10 +- internal/service/auth/auth.go | 6 +- internal/service/badge/badge_award_service.go | 20 +-- internal/service/badge/badge_event_handler.go | 8 +- internal/service/badge/badge_group_service.go | 2 +- internal/service/badge/badge_service.go | 16 +- .../collection/collection_group_service.go | 6 +- .../service/collection/collection_service.go | 8 +- .../service/collection_common/collection.go | 2 +- internal/service/comment/comment_service.go | 34 ++-- .../service/comment_common/comment_service.go | 6 +- internal/service/config/config_service.go | 2 +- internal/service/content/answer_service.go | 46 ++--- .../content/question_hottest_service.go | 4 +- internal/service/content/question_service.go | 68 +++---- internal/service/content/revision_service.go | 46 ++--- internal/service/content/search_service.go | 8 +- internal/service/content/user_service.go | 44 ++--- internal/service/content/vote_service.go | 32 ++-- .../service/dashboard/dashboard_service.go | 34 ++-- internal/service/event_queue/event_queue.go | 2 +- internal/service/export/email_service.go | 16 +- internal/service/follow/follow_service.go | 8 +- internal/service/importer/importer_service.go | 20 +-- internal/service/meta/meta_service.go | 24 +-- .../meta_common/meta_common_service.go | 4 +- internal/service/mock/siteinfo_repo_mock.go | 4 +- .../external_notification_queue.go | 2 +- internal/service/notice_queue/notice_queue.go | 2 +- .../notification/external_notification.go | 20 +-- .../invite_answer_notification.go | 4 +- .../notification/new_answer_notification.go | 4 +- .../notification/new_comment_notification.go | 4 +- .../notification/new_question_notification.go | 12 +- .../notification/notification_service.go | 30 ++-- .../notification_common/notification.go | 30 ++-- internal/service/object_info/object_info.go | 18 +- .../service/permission/answer_permission.go | 8 +- .../service/permission/comment_permission.go | 8 +- .../service/permission/question_permission.go | 8 +- internal/service/permission/tag_permission.go | 8 +- .../plugin_common/plugin_common_service.go | 18 +- internal/service/provider.go | 86 ++++----- internal/service/question_common/question.go | 38 ++-- internal/service/rank/rank_service.go | 32 ++-- internal/service/reason/reason_service.go | 4 +- internal/service/reason_common/reason.go | 2 +- internal/service/report/report_service.go | 38 ++-- .../service/report_common/report_common.go | 4 +- .../service/report_handle/report_handle.go | 14 +- internal/service/review/review_service.go | 34 ++-- internal/service/revision/revision.go | 2 +- .../revision_common/revision_service.go | 12 +- internal/service/role/power_service.go | 2 +- internal/service/role/role_service.go | 8 +- .../service/role/user_role_rel_service.go | 2 +- internal/service/search_common/search.go | 4 +- .../service/search_parser/search_parser.go | 10 +- internal/service/siteinfo/siteinfo_service.go | 24 +-- .../siteinfo_common/siteinfo_service.go | 8 +- .../siteinfo_common/siteinfo_service_test.go | 6 +- internal/service/tag/tag_service.go | 26 +-- internal/service/tag_common/tag_common.go | 18 +- internal/service/uploader/upload.go | 16 +- internal/service/user_admin/user_backyard.go | 40 ++--- internal/service/user_common/user.go | 22 +-- .../user_center_login_service.go | 26 +-- .../user_external_login_service.go | 30 ++-- .../user_notification_config_service.go | 8 +- pkg/checker/path_ignore.go | 2 +- pkg/checker/question_link.go | 6 +- pkg/checker/question_link_test.go | 2 +- pkg/checker/reserved_username.go | 6 +- pkg/display/url.go | 6 +- pkg/gravatar/gravatar_test.go | 2 +- pkg/htmltext/htmltext.go | 4 +- pkg/obj/obj.go | 6 +- plugin/plugin.go | 4 +- script/plugin_list | 6 +- ui/public/index.html | 2 +- ui/src/components/PageTags/index.tsx | 2 +- .../components/AnswerLinks/index.tsx | 2 +- .../components/HealthStatus/index.tsx | 6 +- .../pages/Admin/Plugins/Installed/index.tsx | 2 +- .../builtin/ThirdPartyConnector/info.yaml | 2 +- ui/template/header.html | 2 +- 293 files changed, 1627 insertions(+), 1627 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d2869147d..b517defba 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -34,7 +34,7 @@ builds: - id: build main: ./cmd/answer/. binary: answer - ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.RawVersion}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser + ldflags: -s -w -X github.com/apache/answer/cmd.Version={{.RawVersion}} -X github.com/apache/answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/answer/cmd.Time={{.Date}} -X github.com/apache/answer/cmd.BuildUser=goreleaser flags: -v goos: - linux @@ -45,7 +45,7 @@ builds: - id: build-windows main: ./cmd/answer/. binary: answer - ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.RawVersion}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser + ldflags: -s -w -X github.com/apache/answer/cmd.Version={{.RawVersion}} -X github.com/apache/answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/answer/cmd.Time={{.Date}} -X github.com/apache/answer/cmd.BuildUser=goreleaser flags: -v goos: - windows @@ -57,7 +57,7 @@ builds: archives: - name_template: >- - apache-answer-{{ .RawVersion }}-incubating-bin-{{ .Os }}-{{ .Arch }} + apache-answer-{{ .RawVersion }}-bin-{{ .Os }}-{{ .Arch }} files: - src: "docs/release/LICENSE" dst: LICENSE @@ -81,8 +81,8 @@ changelog: source: enabled: true - name_template: apache-answer-{{ .RawVersion }}-incubating-src - prefix_template: "apache-answer-{{ .RawVersion }}-incubating-src/" + name_template: apache-answer-{{ .RawVersion }}-src + prefix_template: "apache-answer-{{ .RawVersion }}-src/" # goreleaser release --skip-validate --skip-publish --clean diff --git a/.vaunt/config.yaml b/.vaunt/config.yaml index 87dfb18db..ec419ee8e 100644 --- a/.vaunt/config.yaml +++ b/.vaunt/config.yaml @@ -19,7 +19,7 @@ version: 0.0.1 achievements: - achievement: name: Visionary Architect - icon: https://raw.githubusercontent.com/apache/incubator-answer/main/.vaunt/enhancement.png + icon: https://raw.githubusercontent.com/apache/answer/main/.vaunt/enhancement.png description: Awarded for bringing up enhancement, dream big! triggers: - trigger: @@ -28,7 +28,7 @@ achievements: condition: labels in ['enhancement'] & labels in ['LGTM'] - achievement: name: Bug Hunter - icon: https://raw.githubusercontent.com/apache/incubator-answer/main/.vaunt/bug.png + icon: https://raw.githubusercontent.com/apache/answer/main/.vaunt/bug.png description: Awarded for identifying real bugs, well spotted! triggers: - trigger: diff --git a/DISCLAIMER b/DISCLAIMER index 7ae8e4d8c..009fd82bb 100644 --- a/DISCLAIMER +++ b/DISCLAIMER @@ -1,4 +1,4 @@ -Apache Answer (incubating) is an effort undergoing incubation at the Apache +Apache Answer is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review diff --git a/Dockerfile b/Dockerfile index 6f57aa078..313a91df5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ ARG GOPROXY ENV GOPATH /go ENV GOROOT /usr/local/go -ENV PACKAGE github.com/apache/incubator-answer +ENV PACKAGE github.com/apache/answer ENV BUILD_DIR ${GOPATH}/src/${PACKAGE} ENV ANSWER_MODULE ${BUILD_DIR} diff --git a/Makefile b/Makefile index 8b054aab2..f653d6e44 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ DOCKER_CMD=docker GO_ENV=CGO_ENABLED=0 GO111MODULE=on Revision=$(shell git rev-parse --short HEAD 2>/dev/null || echo "") -GO_FLAGS=-ldflags="-X github.com/apache/incubator-answer/cmd.Version=$(VERSION) -X 'github.com/apache/incubator-answer/cmd.Revision=$(Revision)' -X 'github.com/apache/incubator-answer/cmd.Time=`date +%s`' -extldflags -static" +GO_FLAGS=-ldflags="-X github.com/apache/answer/cmd.Version=$(VERSION) -X 'github.com/apache/answer/cmd.Revision=$(Revision)' -X 'github.com/apache/answer/cmd.Time=`date +%s`' -extldflags -static" GO=$(GO_ENV) "$(shell which go)" build: generate diff --git a/NOTICE b/NOTICE index d81f6d9fd..741148fcc 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ -Apache Answer (incubating) -Copyright 2023-2024 The Apache Software Foundation +Apache Answer +Copyright 2023-2025 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (https://www.apache.org/). diff --git a/README.md b/README.md index bdf036c7a..6bfde7623 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ A Q&A platform software for teams at any scales. Whether it’s a community foru To learn more about the project, visit [answer.apache.org](https://answer.apache.org). -[![LICENSE](https://img.shields.io/github/license/apache/incubator-answer)](https://github.com/apache/incubator-answer/blob/main/LICENSE) +[![LICENSE](https://img.shields.io/github/license/apache/answer)](https://github.com/apache/answer/blob/main/LICENSE) [![Language](https://img.shields.io/badge/language-go-blue.svg)](https://golang.org/) [![Language](https://img.shields.io/badge/language-react-blue.svg)](https://reactjs.org/) -[![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-answer)](https://goreportcard.com/report/github.com/apache/incubator-answer) +[![Go Report Card](https://goreportcard.com/badge/github.com/apache/answer)](https://goreportcard.com/report/github.com/apache/answer) [![Discord](https://img.shields.io/badge/discord-chat-5865f2?logo=discord&logoColor=f5f5f5)](https://discord.gg/Jm7Y4cbUej) ## Screenshots @@ -65,4 +65,4 @@ See [CONTRIBUTING](https://answer.apache.org/community/contributing) for ways to ## License -[Apache License 2.0](https://github.com/apache/incubator-answer/blob/main/LICENSE) +[Apache License 2.0](https://github.com/apache/answer/blob/main/LICENSE) diff --git a/cmd/answer/main.go b/cmd/answer/main.go index 9ba33b6f4..c11da2ade 100644 --- a/cmd/answer/main.go +++ b/cmd/answer/main.go @@ -22,7 +22,7 @@ package main import ( - answercmd "github.com/apache/incubator-answer/cmd" + answercmd "github.com/apache/answer/cmd" ) // main godoc diff --git a/cmd/command.go b/cmd/command.go index 65710e6b4..5619fc040 100644 --- a/cmd/command.go +++ b/cmd/command.go @@ -24,11 +24,11 @@ import ( "os" "strings" - "github.com/apache/incubator-answer/internal/base/conf" - "github.com/apache/incubator-answer/internal/cli" - "github.com/apache/incubator-answer/internal/install" - "github.com/apache/incubator-answer/internal/migrations" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/conf" + "github.com/apache/answer/internal/cli" + "github.com/apache/answer/internal/install" + "github.com/apache/answer/internal/migrations" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/log" "github.com/spf13/cobra" ) diff --git a/cmd/main.go b/cmd/main.go index 100c62619..5bc26572b 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -25,11 +25,11 @@ import ( "os" "time" - "github.com/apache/incubator-answer/internal/base/conf" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/cron" - "github.com/apache/incubator-answer/internal/cli" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/conf" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/cron" + "github.com/apache/answer/internal/cli" + "github.com/apache/answer/internal/schema" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman" "github.com/segmentfault/pacman/contrib/log/zap" @@ -37,7 +37,7 @@ import ( "github.com/segmentfault/pacman/log" ) -// go build -ldflags "-X github.com/apache/incubator-answer/cmd.Version=x.y.z" +// go build -ldflags "-X github.com/apache/answer/cmd.Version=x.y.z" var ( // Name is the name of the project Name = "answer" diff --git a/cmd/wire.go b/cmd/wire.go index 8d12f5d2a..b25026e5b 100644 --- a/cmd/wire.go +++ b/cmd/wire.go @@ -25,19 +25,19 @@ package answercmd import ( - "github.com/apache/incubator-answer/internal/base/conf" - "github.com/apache/incubator-answer/internal/base/cron" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/server" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/controller" - "github.com/apache/incubator-answer/internal/controller/template_render" - "github.com/apache/incubator-answer/internal/controller_admin" - "github.com/apache/incubator-answer/internal/repo" - "github.com/apache/incubator-answer/internal/router" - "github.com/apache/incubator-answer/internal/service" - "github.com/apache/incubator-answer/internal/service/service_config" + "github.com/apache/answer/internal/base/conf" + "github.com/apache/answer/internal/base/cron" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/server" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/controller" + "github.com/apache/answer/internal/controller/template_render" + "github.com/apache/answer/internal/controller_admin" + "github.com/apache/answer/internal/repo" + "github.com/apache/answer/internal/router" + "github.com/apache/answer/internal/service" + "github.com/apache/answer/internal/service/service_config" "github.com/google/wire" "github.com/segmentfault/pacman" "github.com/segmentfault/pacman/log" diff --git a/cmd/wire_gen.go b/cmd/wire_gen.go index 3f2679847..6878f3371 100644 --- a/cmd/wire_gen.go +++ b/cmd/wire_gen.go @@ -27,91 +27,91 @@ package answercmd import ( - "github.com/apache/incubator-answer/internal/base/conf" - "github.com/apache/incubator-answer/internal/base/cron" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/server" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/controller" - "github.com/apache/incubator-answer/internal/controller/template_render" - "github.com/apache/incubator-answer/internal/controller_admin" - "github.com/apache/incubator-answer/internal/repo/activity" - "github.com/apache/incubator-answer/internal/repo/activity_common" - "github.com/apache/incubator-answer/internal/repo/answer" - "github.com/apache/incubator-answer/internal/repo/auth" - "github.com/apache/incubator-answer/internal/repo/badge" - "github.com/apache/incubator-answer/internal/repo/badge_award" - "github.com/apache/incubator-answer/internal/repo/badge_group" - "github.com/apache/incubator-answer/internal/repo/captcha" - "github.com/apache/incubator-answer/internal/repo/collection" - "github.com/apache/incubator-answer/internal/repo/comment" - "github.com/apache/incubator-answer/internal/repo/config" - "github.com/apache/incubator-answer/internal/repo/export" - "github.com/apache/incubator-answer/internal/repo/limit" - "github.com/apache/incubator-answer/internal/repo/meta" - notification2 "github.com/apache/incubator-answer/internal/repo/notification" - "github.com/apache/incubator-answer/internal/repo/plugin_config" - "github.com/apache/incubator-answer/internal/repo/question" - "github.com/apache/incubator-answer/internal/repo/rank" - "github.com/apache/incubator-answer/internal/repo/reason" - "github.com/apache/incubator-answer/internal/repo/report" - "github.com/apache/incubator-answer/internal/repo/review" - "github.com/apache/incubator-answer/internal/repo/revision" - "github.com/apache/incubator-answer/internal/repo/role" - "github.com/apache/incubator-answer/internal/repo/search_common" - "github.com/apache/incubator-answer/internal/repo/site_info" - "github.com/apache/incubator-answer/internal/repo/tag" - "github.com/apache/incubator-answer/internal/repo/tag_common" - "github.com/apache/incubator-answer/internal/repo/unique" - "github.com/apache/incubator-answer/internal/repo/user" - "github.com/apache/incubator-answer/internal/repo/user_external_login" - "github.com/apache/incubator-answer/internal/repo/user_notification_config" - "github.com/apache/incubator-answer/internal/router" - "github.com/apache/incubator-answer/internal/service/action" - activity2 "github.com/apache/incubator-answer/internal/service/activity" - activity_common2 "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/activity_queue" - "github.com/apache/incubator-answer/internal/service/answer_common" - auth2 "github.com/apache/incubator-answer/internal/service/auth" - badge2 "github.com/apache/incubator-answer/internal/service/badge" - collection2 "github.com/apache/incubator-answer/internal/service/collection" - "github.com/apache/incubator-answer/internal/service/collection_common" - comment2 "github.com/apache/incubator-answer/internal/service/comment" - "github.com/apache/incubator-answer/internal/service/comment_common" - config2 "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/dashboard" - "github.com/apache/incubator-answer/internal/service/event_queue" - export2 "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/follow" - "github.com/apache/incubator-answer/internal/service/importer" - meta2 "github.com/apache/incubator-answer/internal/service/meta" - "github.com/apache/incubator-answer/internal/service/meta_common" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/notification" - "github.com/apache/incubator-answer/internal/service/notification_common" - "github.com/apache/incubator-answer/internal/service/object_info" - "github.com/apache/incubator-answer/internal/service/plugin_common" - "github.com/apache/incubator-answer/internal/service/question_common" - rank2 "github.com/apache/incubator-answer/internal/service/rank" - reason2 "github.com/apache/incubator-answer/internal/service/reason" - report2 "github.com/apache/incubator-answer/internal/service/report" - "github.com/apache/incubator-answer/internal/service/report_handle" - review2 "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/internal/service/revision_common" - role2 "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/search_parser" - "github.com/apache/incubator-answer/internal/service/service_config" - "github.com/apache/incubator-answer/internal/service/siteinfo" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - tag2 "github.com/apache/incubator-answer/internal/service/tag" - tag_common2 "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/internal/service/uploader" - "github.com/apache/incubator-answer/internal/service/user_admin" - "github.com/apache/incubator-answer/internal/service/user_common" - user_external_login2 "github.com/apache/incubator-answer/internal/service/user_external_login" - user_notification_config2 "github.com/apache/incubator-answer/internal/service/user_notification_config" + "github.com/apache/answer/internal/base/conf" + "github.com/apache/answer/internal/base/cron" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/server" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/controller" + "github.com/apache/answer/internal/controller/template_render" + "github.com/apache/answer/internal/controller_admin" + "github.com/apache/answer/internal/repo/activity" + "github.com/apache/answer/internal/repo/activity_common" + "github.com/apache/answer/internal/repo/answer" + "github.com/apache/answer/internal/repo/auth" + "github.com/apache/answer/internal/repo/badge" + "github.com/apache/answer/internal/repo/badge_award" + "github.com/apache/answer/internal/repo/badge_group" + "github.com/apache/answer/internal/repo/captcha" + "github.com/apache/answer/internal/repo/collection" + "github.com/apache/answer/internal/repo/comment" + "github.com/apache/answer/internal/repo/config" + "github.com/apache/answer/internal/repo/export" + "github.com/apache/answer/internal/repo/limit" + "github.com/apache/answer/internal/repo/meta" + notification2 "github.com/apache/answer/internal/repo/notification" + "github.com/apache/answer/internal/repo/plugin_config" + "github.com/apache/answer/internal/repo/question" + "github.com/apache/answer/internal/repo/rank" + "github.com/apache/answer/internal/repo/reason" + "github.com/apache/answer/internal/repo/report" + "github.com/apache/answer/internal/repo/review" + "github.com/apache/answer/internal/repo/revision" + "github.com/apache/answer/internal/repo/role" + "github.com/apache/answer/internal/repo/search_common" + "github.com/apache/answer/internal/repo/site_info" + "github.com/apache/answer/internal/repo/tag" + "github.com/apache/answer/internal/repo/tag_common" + "github.com/apache/answer/internal/repo/unique" + "github.com/apache/answer/internal/repo/user" + "github.com/apache/answer/internal/repo/user_external_login" + "github.com/apache/answer/internal/repo/user_notification_config" + "github.com/apache/answer/internal/router" + "github.com/apache/answer/internal/service/action" + activity2 "github.com/apache/answer/internal/service/activity" + activity_common2 "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_queue" + "github.com/apache/answer/internal/service/answer_common" + auth2 "github.com/apache/answer/internal/service/auth" + badge2 "github.com/apache/answer/internal/service/badge" + collection2 "github.com/apache/answer/internal/service/collection" + "github.com/apache/answer/internal/service/collection_common" + comment2 "github.com/apache/answer/internal/service/comment" + "github.com/apache/answer/internal/service/comment_common" + config2 "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/dashboard" + "github.com/apache/answer/internal/service/event_queue" + export2 "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/follow" + "github.com/apache/answer/internal/service/importer" + meta2 "github.com/apache/answer/internal/service/meta" + "github.com/apache/answer/internal/service/meta_common" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/notification" + "github.com/apache/answer/internal/service/notification_common" + "github.com/apache/answer/internal/service/object_info" + "github.com/apache/answer/internal/service/plugin_common" + "github.com/apache/answer/internal/service/question_common" + rank2 "github.com/apache/answer/internal/service/rank" + reason2 "github.com/apache/answer/internal/service/reason" + report2 "github.com/apache/answer/internal/service/report" + "github.com/apache/answer/internal/service/report_handle" + review2 "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/internal/service/revision_common" + role2 "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/search_parser" + "github.com/apache/answer/internal/service/service_config" + "github.com/apache/answer/internal/service/siteinfo" + "github.com/apache/answer/internal/service/siteinfo_common" + tag2 "github.com/apache/answer/internal/service/tag" + tag_common2 "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/internal/service/uploader" + "github.com/apache/answer/internal/service/user_admin" + "github.com/apache/answer/internal/service/user_common" + user_external_login2 "github.com/apache/answer/internal/service/user_external_login" + user_notification_config2 "github.com/apache/answer/internal/service/user_notification_config" "github.com/segmentfault/pacman" "github.com/segmentfault/pacman/log" ) diff --git a/docs/release/NOTICE b/docs/release/NOTICE index 4eaee7753..1978cd387 100644 --- a/docs/release/NOTICE +++ b/docs/release/NOTICE @@ -1,5 +1,5 @@ -Apache Answer (incubating) -Copyright 2024 The Apache Software Foundation +Apache Answer +Copyright 2025 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (https://www.apache.org/). diff --git a/go.mod b/go.mod index 6d8e88911..7e207e6b6 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -module github.com/apache/incubator-answer +module github.com/apache/answer go 1.22.0 diff --git a/internal/base/conf/conf.go b/internal/base/conf/conf.go index 4926c16d3..4b71b206f 100644 --- a/internal/base/conf/conf.go +++ b/internal/base/conf/conf.go @@ -24,13 +24,13 @@ import ( "os" "path/filepath" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/server" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/cli" - "github.com/apache/incubator-answer/internal/router" - "github.com/apache/incubator-answer/internal/service/service_config" - "github.com/apache/incubator-answer/pkg/writer" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/server" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/cli" + "github.com/apache/answer/internal/router" + "github.com/apache/answer/internal/service/service_config" + "github.com/apache/answer/pkg/writer" "github.com/segmentfault/pacman/contrib/conf/viper" "gopkg.in/yaml.v3" ) diff --git a/internal/base/constant/privilege.go b/internal/base/constant/privilege.go index a0fcc6748..46fe52d14 100644 --- a/internal/base/constant/privilege.go +++ b/internal/base/constant/privilege.go @@ -19,7 +19,7 @@ package constant -import "github.com/apache/incubator-answer/internal/base/reason" +import "github.com/apache/answer/internal/base/reason" type Privilege struct { Key string `json:"key"` diff --git a/internal/base/cron/cron.go b/internal/base/cron/cron.go index 0d08e50fd..2e7a92ab9 100644 --- a/internal/base/cron/cron.go +++ b/internal/base/cron/cron.go @@ -23,8 +23,8 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/siteinfo_common" "github.com/robfig/cron/v3" "github.com/segmentfault/pacman/log" ) diff --git a/internal/base/data/data.go b/internal/base/data/data.go index 54e1fbb8d..1d24d7184 100644 --- a/internal/base/data/data.go +++ b/internal/base/data/data.go @@ -23,8 +23,8 @@ import ( "path/filepath" "time" - "github.com/apache/incubator-answer/pkg/dir" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/pkg/dir" + "github.com/apache/answer/plugin" _ "github.com/go-sql-driver/mysql" _ "github.com/lib/pq" "github.com/segmentfault/pacman/cache" diff --git a/internal/base/handler/handler.go b/internal/base/handler/handler.go index 2729a8324..7670feea7 100644 --- a/internal/base/handler/handler.go +++ b/internal/base/handler/handler.go @@ -21,9 +21,9 @@ package handler import ( "errors" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/validator" + "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" diff --git a/internal/base/handler/lang.go b/internal/base/handler/lang.go index 69a1d1b84..a676e5bc2 100644 --- a/internal/base/handler/lang.go +++ b/internal/base/handler/lang.go @@ -22,7 +22,7 @@ package handler import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/i18n" ) diff --git a/internal/base/handler/response.go b/internal/base/handler/response.go index c02ba7ecf..827e0b362 100644 --- a/internal/base/handler/response.go +++ b/internal/base/handler/response.go @@ -20,7 +20,7 @@ package handler import ( - "github.com/apache/incubator-answer/internal/base/translator" + "github.com/apache/answer/internal/base/translator" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/i18n" ) diff --git a/internal/base/handler/short_id.go b/internal/base/handler/short_id.go index 70a9328c9..c763bf944 100644 --- a/internal/base/handler/short_id.go +++ b/internal/base/handler/short_id.go @@ -22,7 +22,7 @@ package handler import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" ) // GetEnableShortID get language from header diff --git a/internal/base/middleware/accept_language.go b/internal/base/middleware/accept_language.go index 6cb7d95d4..3f1abd5a6 100644 --- a/internal/base/middleware/accept_language.go +++ b/internal/base/middleware/accept_language.go @@ -20,8 +20,8 @@ package middleware import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/i18n" ) diff --git a/internal/base/middleware/auth.go b/internal/base/middleware/auth.go index 44fd20a2c..f21837b60 100644 --- a/internal/base/middleware/auth.go +++ b/internal/base/middleware/auth.go @@ -23,17 +23,17 @@ import ( "net/http" "strings" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/ui" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/ui" "github.com/gin-gonic/gin" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/auth" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/auth" + "github.com/apache/answer/pkg/converter" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/base/middleware/avatar.go b/internal/base/middleware/avatar.go index 7bf363a7c..1d2464173 100644 --- a/internal/base/middleware/avatar.go +++ b/internal/base/middleware/avatar.go @@ -27,9 +27,9 @@ import ( "path/filepath" "strings" - "github.com/apache/incubator-answer/internal/service/service_config" - "github.com/apache/incubator-answer/internal/service/uploader" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/service/service_config" + "github.com/apache/answer/internal/service/uploader" + "github.com/apache/answer/pkg/converter" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/base/middleware/rate_limit.go b/internal/base/middleware/rate_limit.go index 569dc8b07..29b961757 100644 --- a/internal/base/middleware/rate_limit.go +++ b/internal/base/middleware/rate_limit.go @@ -22,10 +22,10 @@ package middleware import ( "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/repo/limit" - "github.com/apache/incubator-answer/pkg/encryption" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/repo/limit" + "github.com/apache/answer/pkg/encryption" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/base/middleware/short_id.go b/internal/base/middleware/short_id.go index 891ebaba6..977eddfed 100644 --- a/internal/base/middleware/short_id.go +++ b/internal/base/middleware/short_id.go @@ -20,8 +20,8 @@ package middleware import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/service/siteinfo_common" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/base/middleware/user_center_plugin_auth.go b/internal/base/middleware/user_center_plugin_auth.go index 44589e153..ac9ee78ad 100644 --- a/internal/base/middleware/user_center_plugin_auth.go +++ b/internal/base/middleware/user_center_plugin_auth.go @@ -20,9 +20,9 @@ package middleware import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/base/middleware/visit_img_auth.go b/internal/base/middleware/visit_img_auth.go index 25b635fc9..eec7edabd 100644 --- a/internal/base/middleware/visit_img_auth.go +++ b/internal/base/middleware/visit_img_auth.go @@ -20,7 +20,7 @@ package middleware import ( - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" "github.com/gin-gonic/gin" "net/http" "strings" diff --git a/internal/base/server/http.go b/internal/base/server/http.go index b45991a1e..2b455a1fa 100644 --- a/internal/base/server/http.go +++ b/internal/base/server/http.go @@ -24,10 +24,10 @@ import ( "io/fs" brotli "github.com/anargu/gin-brotli" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/router" - "github.com/apache/incubator-answer/plugin" - "github.com/apache/incubator-answer/ui" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/router" + "github.com/apache/answer/plugin" + "github.com/apache/answer/ui" "github.com/gin-gonic/gin" ) diff --git a/internal/base/server/http_funcmap.go b/internal/base/server/http_funcmap.go index 0f99dca01..9d8e98f96 100644 --- a/internal/base/server/http_funcmap.go +++ b/internal/base/server/http_funcmap.go @@ -27,12 +27,12 @@ import ( "strings" "time" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/controller" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/day" - "github.com/apache/incubator-answer/pkg/htmltext" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/controller" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/day" + "github.com/apache/answer/pkg/htmltext" "github.com/segmentfault/pacman/i18n" ) diff --git a/internal/base/validator/validator.go b/internal/base/validator/validator.go index bd5da31df..70c7be2e9 100644 --- a/internal/base/validator/validator.go +++ b/internal/base/validator/validator.go @@ -26,8 +26,8 @@ import ( "strings" "unicode" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" "github.com/go-playground/locales" german "github.com/go-playground/locales/de" english "github.com/go-playground/locales/en" diff --git a/internal/cli/build.go b/internal/cli/build.go index bba075a97..46df87410 100644 --- a/internal/cli/build.go +++ b/internal/cli/build.go @@ -32,9 +32,9 @@ import ( "text/template" "github.com/Masterminds/semver/v3" - "github.com/apache/incubator-answer/pkg/dir" - "github.com/apache/incubator-answer/pkg/writer" - "github.com/apache/incubator-answer/ui" + "github.com/apache/answer/pkg/dir" + "github.com/apache/answer/pkg/writer" + "github.com/apache/answer/ui" "github.com/segmentfault/pacman/log" "gopkg.in/yaml.v3" ) @@ -43,7 +43,7 @@ const ( mainGoTpl = `package main import ( - answercmd "github.com/apache/incubator-answer/cmd" + answercmd "github.com/apache/answer/cmd" // remote plugins {{- range .remote_plugins}} @@ -86,7 +86,7 @@ type OriginalAnswerInfo struct { } type pluginInfo struct { - // Name of the plugin e.g. github.com/apache/incubator-answer-plugins/github-connector + // Name of the plugin e.g. github.com/apache/answer-plugins/github-connector Name string // Path to the plugin. If path exist, read plugin from local filesystem Path string @@ -136,7 +136,7 @@ func BuildNewAnswer(buildDir, outputPath string, plugins []string, originalAnswe func formatPlugins(plugins []string) (formatted []*pluginInfo) { for _, plugin := range plugins { plugin = strings.TrimSpace(plugin) - // plugin description like this 'github.com/apache/incubator-answer-plugins/github-connector@latest=/local/path' + // plugin description like this 'github.com/apache/answer-plugins/github-connector@latest=/local/path' info := &pluginInfo{} plugin, info.Path, _ = strings.Cut(plugin, "=") info.Name, info.Version, _ = strings.Cut(plugin, "@") @@ -202,7 +202,7 @@ func createMainGoFile(b *buildingMaterial) (err error) { func downloadGoModFile(b *buildingMaterial) (err error) { // If user specify a module replacement, use it. Otherwise, use the latest version. if len(b.answerModuleReplacement) > 0 { - replacement := fmt.Sprintf("%s=%s", "github.com/apache/incubator-answer", b.answerModuleReplacement) + replacement := fmt.Sprintf("%s=%s", "github.com/apache/answer", b.answerModuleReplacement) err = b.newExecCmd("go", "mod", "edit", "-replace", replacement).Run() if err != nil { return err @@ -223,7 +223,7 @@ func downloadGoModFile(b *buildingMaterial) (err error) { // copyUIFiles copy ui files from answer module to tmp dir func copyUIFiles(b *buildingMaterial) (err error) { - goListCmd := b.newExecCmd("go", "list", "-mod=mod", "-m", "-f", "{{.Dir}}", "github.com/apache/incubator-answer") + goListCmd := b.newExecCmd("go", "list", "-mod=mod", "-m", "-f", "{{.Dir}}", "github.com/apache/answer") buf := new(bytes.Buffer) goListCmd.Stdout = buf if err = goListCmd.Run(); err != nil { @@ -232,13 +232,13 @@ func copyUIFiles(b *buildingMaterial) (err error) { answerDir := strings.TrimSpace(buf.String()) goModUIDir := filepath.Join(answerDir, "ui") - localUIBuildDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/incubator-answer/ui/") + localUIBuildDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/answer/ui/") // The node_modules folder generated during development will interfere packaging, so it needs to be ignored. if err = copyDirEntries(os.DirFS(goModUIDir), ".", localUIBuildDir, "node_modules"); err != nil { return fmt.Errorf("failed to copy ui files: %w", err) } - pluginsDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/incubator-answer-plugins/") + pluginsDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/answer-plugins/") localUIPluginDir := filepath.Join(localUIBuildDir, "src/plugins/") // copy plugins dir @@ -283,7 +283,7 @@ func copyUIFiles(b *buildingMaterial) (err error) { // overwriteIndexTs overwrites index.ts file in ui/src/plugins/ dir func overwriteIndexTs(b *buildingMaterial) (err error) { - localUIPluginDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/incubator-answer/ui/src/plugins/") + localUIPluginDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/answer/ui/src/plugins/") folders, err := getFolders(localUIPluginDir) if err != nil { @@ -327,7 +327,7 @@ func generateIndexTsContent(folders []string) string { // buildUI run pnpm install and pnpm build commands to build ui func buildUI(b *buildingMaterial) (err error) { - localUIBuildDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/incubator-answer/ui") + localUIBuildDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/answer/ui") pnpmInstallCmd := b.newExecCmd("pnpm", "pre-install") pnpmInstallCmd.Dir = localUIBuildDir @@ -345,7 +345,7 @@ func buildUI(b *buildingMaterial) (err error) { func replaceNecessaryFile(b *buildingMaterial) (err error) { fmt.Printf("try to replace ui build directory\n") - uiBuildDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/incubator-answer/ui") + uiBuildDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/answer/ui") err = copyDirEntries(ui.Build, ".", uiBuildDir) return err } @@ -401,7 +401,7 @@ func mergeI18nFiles(b *buildingMaterial) (err error) { } } - originalI18nDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/incubator-answer/i18n") + originalI18nDir := filepath.Join(b.tmpDir, "vendor/github.com/apache/answer/i18n") entries, err := os.ReadDir(originalI18nDir) if err != nil { return err @@ -526,7 +526,7 @@ func formatUIPluginsDirName(dirPath string) { // buildBinary build binary file func buildBinary(b *buildingMaterial) (err error) { versionInfo := b.originalAnswerInfo - cmdPkg := "github.com/apache/incubator-answer/cmd" + cmdPkg := "github.com/apache/answer/cmd" ldflags := fmt.Sprintf("-X %s.Version=%s -X %s.Revision=%s -X %s.Time=%s", cmdPkg, versionInfo.Version, cmdPkg, versionInfo.Revision, cmdPkg, versionInfo.Time) err = b.newExecCmd("go", "build", diff --git a/internal/cli/config.go b/internal/cli/config.go index 9ebefa1da..93cb8eab2 100644 --- a/internal/cli/config.go +++ b/internal/cli/config.go @@ -23,9 +23,9 @@ import ( "context" "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/cli/dump.go b/internal/cli/dump.go index b1a3e56d5..e5d528212 100644 --- a/internal/cli/dump.go +++ b/internal/cli/dump.go @@ -24,7 +24,7 @@ import ( "path/filepath" "time" - "github.com/apache/incubator-answer/internal/base/data" + "github.com/apache/answer/internal/base/data" "xorm.io/xorm/schemas" ) diff --git a/internal/cli/i18n.go b/internal/cli/i18n.go index ec3cf98ff..faef0f28a 100644 --- a/internal/cli/i18n.go +++ b/internal/cli/i18n.go @@ -21,9 +21,9 @@ package cli import ( "fmt" - "github.com/apache/incubator-answer/i18n" - "github.com/apache/incubator-answer/pkg/dir" - "github.com/apache/incubator-answer/pkg/writer" + "github.com/apache/answer/i18n" + "github.com/apache/answer/pkg/dir" + "github.com/apache/answer/pkg/writer" "gopkg.in/yaml.v3" "os" "path/filepath" diff --git a/internal/cli/install.go b/internal/cli/install.go index 48b87843f..69e673d57 100644 --- a/internal/cli/install.go +++ b/internal/cli/install.go @@ -25,10 +25,10 @@ import ( "path/filepath" "sync" - "github.com/apache/incubator-answer/configs" - "github.com/apache/incubator-answer/i18n" - "github.com/apache/incubator-answer/pkg/dir" - "github.com/apache/incubator-answer/pkg/writer" + "github.com/apache/answer/configs" + "github.com/apache/answer/i18n" + "github.com/apache/answer/pkg/dir" + "github.com/apache/answer/pkg/writer" ) const ( diff --git a/internal/cli/install_check.go b/internal/cli/install_check.go index 5142a0d4f..75ed5d3b2 100644 --- a/internal/cli/install_check.go +++ b/internal/cli/install_check.go @@ -22,9 +22,9 @@ package cli import ( "fmt" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/pkg/dir" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/pkg/dir" ) func CheckConfigFile(configPath string) bool { diff --git a/internal/controller/activity_controller.go b/internal/controller/activity_controller.go index b4481aeaa..26cd400c7 100644 --- a/internal/controller/activity_controller.go +++ b/internal/controller/activity_controller.go @@ -20,12 +20,12 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/answer_controller.go b/internal/controller/answer_controller.go index 0142c58cd..64df858ba 100644 --- a/internal/controller/answer_controller.go +++ b/internal/controller/answer_controller.go @@ -23,19 +23,19 @@ import ( "fmt" "net/http" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller/badge_controller.go b/internal/controller/badge_controller.go index 65b594072..8324a13ef 100644 --- a/internal/controller/badge_controller.go +++ b/internal/controller/badge_controller.go @@ -20,12 +20,12 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/badge" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/badge" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/collection_controller.go b/internal/controller/collection_controller.go index a35ee693a..78560be05 100644 --- a/internal/controller/collection_controller.go +++ b/internal/controller/collection_controller.go @@ -20,11 +20,11 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/collection" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/collection" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/comment_controller.go b/internal/controller/comment_controller.go index 0b9226797..288e8aee4 100644 --- a/internal/controller/comment_controller.go +++ b/internal/controller/comment_controller.go @@ -20,18 +20,18 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/comment" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/comment" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" "net/http" diff --git a/internal/controller/connector_controller.go b/internal/controller/connector_controller.go index 96f3ec8e4..939a2a092 100644 --- a/internal/controller/connector_controller.go +++ b/internal/controller/connector_controller.go @@ -23,13 +23,13 @@ import ( "fmt" "net/http" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/internal/service/user_external_login" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/user_external_login" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/controller/dashboard_controller.go b/internal/controller/dashboard_controller.go index b73315638..ea5f2aeae 100644 --- a/internal/controller/dashboard_controller.go +++ b/internal/controller/dashboard_controller.go @@ -20,8 +20,8 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/service/dashboard" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/service/dashboard" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/embed_controller.go b/internal/controller/embed_controller.go index eb54f1a67..8beb0a616 100644 --- a/internal/controller/embed_controller.go +++ b/internal/controller/embed_controller.go @@ -20,8 +20,8 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/follow_controller.go b/internal/controller/follow_controller.go index 52534da06..aabf2d263 100644 --- a/internal/controller/follow_controller.go +++ b/internal/controller/follow_controller.go @@ -20,11 +20,11 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/follow" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/follow" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/jinzhu/copier" ) diff --git a/internal/controller/lang_controller.go b/internal/controller/lang_controller.go index 1cadc78b4..7e5e70fd8 100644 --- a/internal/controller/lang_controller.go +++ b/internal/controller/lang_controller.go @@ -22,9 +22,9 @@ package controller import ( "encoding/json" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/service/siteinfo_common" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/i18n" ) diff --git a/internal/controller/meta_controller.go b/internal/controller/meta_controller.go index 1ae3ab919..2a818dfd7 100644 --- a/internal/controller/meta_controller.go +++ b/internal/controller/meta_controller.go @@ -20,11 +20,11 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/meta" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/meta" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/notification_controller.go b/internal/controller/notification_controller.go index 952c262e9..849c9effa 100644 --- a/internal/controller/notification_controller.go +++ b/internal/controller/notification_controller.go @@ -20,12 +20,12 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/notification" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/notification" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/permission_controller.go b/internal/controller/permission_controller.go index 659e5dc10..73daf5597 100644 --- a/internal/controller/permission_controller.go +++ b/internal/controller/permission_controller.go @@ -20,10 +20,10 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/rank" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/rank" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/plugin_captcha_controller.go b/internal/controller/plugin_captcha_controller.go index 7b47e0710..c7c98d845 100644 --- a/internal/controller/plugin_captcha_controller.go +++ b/internal/controller/plugin_captcha_controller.go @@ -22,8 +22,8 @@ package controller import ( "encoding/json" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/plugin_user_center_controller.go b/internal/controller/plugin_user_center_controller.go index 84da13afc..d426f45d5 100644 --- a/internal/controller/plugin_user_center_controller.go +++ b/internal/controller/plugin_user_center_controller.go @@ -23,12 +23,12 @@ import ( "fmt" "net/http" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/internal/service/user_external_login" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/user_external_login" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/controller/question_controller.go b/internal/controller/question_controller.go index 310a8201c..fb97187bf 100644 --- a/internal/controller/question_controller.go +++ b/internal/controller/question_controller.go @@ -22,20 +22,20 @@ package controller import ( "net/http" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" diff --git a/internal/controller/rank_controller.go b/internal/controller/rank_controller.go index b70e5faf6..b330ca3b8 100644 --- a/internal/controller/rank_controller.go +++ b/internal/controller/rank_controller.go @@ -20,10 +20,10 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/rank" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/rank" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/reason_controller.go b/internal/controller/reason_controller.go index a6a54843a..7ec07cb58 100644 --- a/internal/controller/reason_controller.go +++ b/internal/controller/reason_controller.go @@ -20,9 +20,9 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/reason" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/reason" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/render_controller.go b/internal/controller/render_controller.go index 05e49d0b7..63725ae0a 100644 --- a/internal/controller/render_controller.go +++ b/internal/controller/render_controller.go @@ -20,8 +20,8 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/report_controller.go b/internal/controller/report_controller.go index 75ceb8235..3198d54b6 100644 --- a/internal/controller/report_controller.go +++ b/internal/controller/report_controller.go @@ -20,18 +20,18 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/internal/service/report" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/internal/service/report" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller/review_controller.go b/internal/controller/review_controller.go index 435cefa76..3479b2eb7 100644 --- a/internal/controller/review_controller.go +++ b/internal/controller/review_controller.go @@ -20,14 +20,14 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller/revision_controller.go b/internal/controller/revision_controller.go index fd2735e0f..1ceca87e0 100644 --- a/internal/controller/revision_controller.go +++ b/internal/controller/revision_controller.go @@ -20,17 +20,17 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/pkg/obj" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/pkg/obj" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller/search_controller.go b/internal/controller/search_controller.go index b74c0e9e5..64acbe252 100644 --- a/internal/controller/search_controller.go +++ b/internal/controller/search_controller.go @@ -20,16 +20,16 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller/siteinfo_controller.go b/internal/controller/siteinfo_controller.go index 51b596f1f..5b19ae762 100644 --- a/internal/controller/siteinfo_controller.go +++ b/internal/controller/siteinfo_controller.go @@ -22,10 +22,10 @@ package controller import ( "net/http" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/siteinfo_common" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/controller/tag_controller.go b/internal/controller/tag_controller.go index 1e98b480c..9474eede7 100644 --- a/internal/controller/tag_controller.go +++ b/internal/controller/tag_controller.go @@ -20,15 +20,15 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/internal/service/tag" - "github.com/apache/incubator-answer/internal/service/tag_common" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/internal/service/tag" + "github.com/apache/answer/internal/service/tag_common" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go index 0b22360fe..027926b38 100644 --- a/internal/controller/template_controller.go +++ b/internal/controller/template_controller.go @@ -22,11 +22,11 @@ package controller import ( "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/event_queue" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/event_queue" + "github.com/apache/answer/plugin" "html/template" "net/http" "net/url" @@ -34,19 +34,19 @@ import ( "strings" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - templaterender "github.com/apache/incubator-answer/internal/controller/template_render" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/obj" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/ui" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + templaterender "github.com/apache/answer/internal/controller/template_render" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/obj" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/ui" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/controller/template_render/answer.go b/internal/controller/template_render/answer.go index 72a0925af..f12497e7f 100644 --- a/internal/controller/template_render/answer.go +++ b/internal/controller/template_render/answer.go @@ -22,7 +22,7 @@ package templaterender import ( "context" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" ) func (t *TemplateRenderController) AnswerList(ctx context.Context, req *schema.AnswerListReq) ([]*schema.AnswerInfo, int64, error) { diff --git a/internal/controller/template_render/comment.go b/internal/controller/template_render/comment.go index b3908f135..67efd2129 100644 --- a/internal/controller/template_render/comment.go +++ b/internal/controller/template_render/comment.go @@ -21,8 +21,8 @@ package templaterender import ( "context" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/schema" ) func (t *TemplateRenderController) CommentList( diff --git a/internal/controller/template_render/controller.go b/internal/controller/template_render/controller.go index 521651b73..5f802fa76 100644 --- a/internal/controller/template_render/controller.go +++ b/internal/controller/template_render/controller.go @@ -22,15 +22,15 @@ package templaterender import ( "math" - "github.com/apache/incubator-answer/internal/service/content" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" + "github.com/apache/answer/internal/service/content" + questioncommon "github.com/apache/answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/comment" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/comment" + "github.com/apache/answer/internal/service/siteinfo_common" "github.com/google/wire" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/tag" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/tag" ) // ProviderSetTemplateRenderController is template render controller providers. diff --git a/internal/controller/template_render/question.go b/internal/controller/template_render/question.go index b97536188..fa1d48378 100644 --- a/internal/controller/template_render/question.go +++ b/internal/controller/template_render/question.go @@ -24,8 +24,8 @@ import ( "math" "net/http" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/schema" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/controller/template_render/tags.go b/internal/controller/template_render/tags.go index bfcc522c3..6a6dacc9d 100644 --- a/internal/controller/template_render/tags.go +++ b/internal/controller/template_render/tags.go @@ -20,8 +20,8 @@ package templaterender import ( - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/schema" "github.com/jinzhu/copier" "golang.org/x/net/context" ) diff --git a/internal/controller/template_render/userinfo.go b/internal/controller/template_render/userinfo.go index d2c222c18..1734f65c1 100644 --- a/internal/controller/template_render/userinfo.go +++ b/internal/controller/template_render/userinfo.go @@ -20,7 +20,7 @@ package templaterender import ( - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" "golang.org/x/net/context" ) diff --git a/internal/controller/upload_controller.go b/internal/controller/upload_controller.go index 753be375f..0bd74bf33 100644 --- a/internal/controller/upload_controller.go +++ b/internal/controller/upload_controller.go @@ -20,12 +20,12 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/uploader" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/uploader" + "github.com/apache/answer/pkg/converter" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller/user_controller.go b/internal/controller/user_controller.go index 20fc68ec4..dc7d93ce0 100644 --- a/internal/controller/user_controller.go +++ b/internal/controller/user_controller.go @@ -22,21 +22,21 @@ package controller import ( "net/url" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/auth" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/internal/service/user_notification_config" - "github.com/apache/incubator-answer/pkg/checker" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/auth" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/user_notification_config" + "github.com/apache/answer/pkg/checker" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/controller/user_plugin_controller.go b/internal/controller/user_plugin_controller.go index f55dc73bc..310215253 100644 --- a/internal/controller/user_plugin_controller.go +++ b/internal/controller/user_plugin_controller.go @@ -21,15 +21,15 @@ package controller import ( "encoding/json" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" "github.com/segmentfault/pacman/errors" "net/http" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/plugin_common" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/plugin_common" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" ) diff --git a/internal/controller/vote_controller.go b/internal/controller/vote_controller.go index 09b5fb07b..2e0ee6121 100644 --- a/internal/controller/vote_controller.go +++ b/internal/controller/vote_controller.go @@ -20,17 +20,17 @@ package controller import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/controller_admin/badge_controller.go b/internal/controller_admin/badge_controller.go index 4a44f1764..e399062c9 100644 --- a/internal/controller_admin/badge_controller.go +++ b/internal/controller_admin/badge_controller.go @@ -20,10 +20,10 @@ package controller_admin import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/badge" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/badge" "github.com/gin-gonic/gin" ) diff --git a/internal/controller_admin/plugin_controller.go b/internal/controller_admin/plugin_controller.go index bfde841d0..78f327283 100644 --- a/internal/controller_admin/plugin_controller.go +++ b/internal/controller_admin/plugin_controller.go @@ -22,10 +22,10 @@ package controller_admin import ( "encoding/json" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/plugin_common" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/plugin_common" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" ) diff --git a/internal/controller_admin/role_controller.go b/internal/controller_admin/role_controller.go index 0e038825e..2692371ae 100644 --- a/internal/controller_admin/role_controller.go +++ b/internal/controller_admin/role_controller.go @@ -20,9 +20,9 @@ package controller_admin import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/schema" - service "github.com/apache/incubator-answer/internal/service/role" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/schema" + service "github.com/apache/answer/internal/service/role" "github.com/gin-gonic/gin" ) diff --git a/internal/controller_admin/siteinfo_controller.go b/internal/controller_admin/siteinfo_controller.go index 6429d6719..cd1b2ab68 100644 --- a/internal/controller_admin/siteinfo_controller.go +++ b/internal/controller_admin/siteinfo_controller.go @@ -23,10 +23,10 @@ import ( "html" "net/http" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/siteinfo" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/siteinfo" "github.com/gin-gonic/gin" ) diff --git a/internal/controller_admin/theme_controller.go b/internal/controller_admin/theme_controller.go index 0c2d56b3b..d763f3d9e 100644 --- a/internal/controller_admin/theme_controller.go +++ b/internal/controller_admin/theme_controller.go @@ -20,8 +20,8 @@ package controller_admin import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/schema" "github.com/gin-gonic/gin" ) diff --git a/internal/controller_admin/user_backyard_controller.go b/internal/controller_admin/user_backyard_controller.go index a2ab3f2ec..ddcad7c9d 100644 --- a/internal/controller_admin/user_backyard_controller.go +++ b/internal/controller_admin/user_backyard_controller.go @@ -20,13 +20,13 @@ package controller_admin import ( - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/user_admin" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/user_admin" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/entity/comment_entity.go b/internal/entity/comment_entity.go index 8b79663a9..c96f6b3c1 100644 --- a/internal/entity/comment_entity.go +++ b/internal/entity/comment_entity.go @@ -24,7 +24,7 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/pkg/converter" ) const ( diff --git a/internal/entity/config_entity.go b/internal/entity/config_entity.go index 68ee9e254..95a02be48 100644 --- a/internal/entity/config_entity.go +++ b/internal/entity/config_entity.go @@ -23,7 +23,7 @@ import ( "encoding/json" "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/pkg/converter" ) // Config config diff --git a/internal/install/install_controller.go b/internal/install/install_controller.go index 0a1165693..d43bbb45f 100644 --- a/internal/install/install_controller.go +++ b/internal/install/install_controller.go @@ -26,15 +26,15 @@ import ( "path/filepath" "time" - "github.com/apache/incubator-answer/configs" - "github.com/apache/incubator-answer/internal/base/conf" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/cli" - "github.com/apache/incubator-answer/internal/migrations" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/configs" + "github.com/apache/answer/internal/base/conf" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/cli" + "github.com/apache/answer/internal/migrations" + "github.com/apache/answer/internal/schema" "github.com/gin-gonic/gin" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" diff --git a/internal/install/install_main.go b/internal/install/install_main.go index 77d4e298d..0d65f33f0 100644 --- a/internal/install/install_main.go +++ b/internal/install/install_main.go @@ -23,8 +23,8 @@ import ( "fmt" "os" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/cli" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/cli" ) var ( diff --git a/internal/install/install_req.go b/internal/install/install_req.go index 9863dadd5..8b2db0a83 100644 --- a/internal/install/install_req.go +++ b/internal/install/install_req.go @@ -24,9 +24,9 @@ import ( "net/url" "strings" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/pkg/checker" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/pkg/checker" "github.com/segmentfault/pacman/errors" "xorm.io/xorm/schemas" ) diff --git a/internal/install/install_server.go b/internal/install/install_server.go index 76a2fffe3..856c699ce 100644 --- a/internal/install/install_server.go +++ b/internal/install/install_server.go @@ -25,9 +25,9 @@ import ( "io/fs" "net/http" - "github.com/apache/incubator-answer/configs" - "github.com/apache/incubator-answer/internal/base/conf" - "github.com/apache/incubator-answer/ui" + "github.com/apache/answer/configs" + "github.com/apache/answer/internal/base/conf" + "github.com/apache/answer/ui" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" "gopkg.in/yaml.v3" diff --git a/internal/migrations/init.go b/internal/migrations/init.go index 6b1055a06..a8e4b20e4 100644 --- a/internal/migrations/init.go +++ b/internal/migrations/init.go @@ -23,15 +23,15 @@ import ( "context" "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" "time" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/repo/unique" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/repo/unique" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "golang.org/x/crypto/bcrypt" "xorm.io/xorm" ) diff --git a/internal/migrations/init_data.go b/internal/migrations/init_data.go index b0143b330..5565809ff 100644 --- a/internal/migrations/init_data.go +++ b/internal/migrations/init_data.go @@ -20,8 +20,8 @@ package migrations import ( - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/permission" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/permission" ) const ( diff --git a/internal/migrations/migrations.go b/internal/migrations/migrations.go index 6160ca881..bc2ecda70 100644 --- a/internal/migrations/migrations.go +++ b/internal/migrations/migrations.go @@ -23,8 +23,8 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/migrations/v10.go b/internal/migrations/v10.go index dba8a06f7..cb1b74994 100644 --- a/internal/migrations/v10.go +++ b/internal/migrations/v10.go @@ -24,9 +24,9 @@ import ( "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "github.com/tidwall/gjson" "xorm.io/xorm" ) diff --git a/internal/migrations/v11.go b/internal/migrations/v11.go index f5e08ed24..675690af0 100644 --- a/internal/migrations/v11.go +++ b/internal/migrations/v11.go @@ -23,7 +23,7 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v12.go b/internal/migrations/v12.go index 172c5471e..2dd3ce71e 100644 --- a/internal/migrations/v12.go +++ b/internal/migrations/v12.go @@ -24,7 +24,7 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v13.go b/internal/migrations/v13.go index 4fcde3811..30bfbb542 100644 --- a/internal/migrations/v13.go +++ b/internal/migrations/v13.go @@ -26,10 +26,10 @@ import ( "time" "xorm.io/builder" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/permission" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/permission" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v15.go b/internal/migrations/v15.go index 43878f5f1..5195c105a 100644 --- a/internal/migrations/v15.go +++ b/internal/migrations/v15.go @@ -21,7 +21,7 @@ package migrations import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/migrations/v16.go b/internal/migrations/v16.go index efd967b4f..11643600c 100644 --- a/internal/migrations/v16.go +++ b/internal/migrations/v16.go @@ -21,8 +21,8 @@ package migrations import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v17.go b/internal/migrations/v17.go index 37e5ce362..655e547a2 100644 --- a/internal/migrations/v17.go +++ b/internal/migrations/v17.go @@ -22,8 +22,8 @@ package migrations import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/permission" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/permission" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v18.go b/internal/migrations/v18.go index 26dc6da56..89db524f5 100644 --- a/internal/migrations/v18.go +++ b/internal/migrations/v18.go @@ -23,9 +23,9 @@ import ( "context" "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "xorm.io/xorm" ) diff --git a/internal/migrations/v19.go b/internal/migrations/v19.go index c4478a34e..b45d374bb 100644 --- a/internal/migrations/v19.go +++ b/internal/migrations/v19.go @@ -21,7 +21,7 @@ package migrations import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/migrations/v20.go b/internal/migrations/v20.go index a2349787d..74242aaf4 100644 --- a/internal/migrations/v20.go +++ b/internal/migrations/v20.go @@ -23,7 +23,7 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v22.go b/internal/migrations/v22.go index 1543c6add..14292a1e7 100644 --- a/internal/migrations/v22.go +++ b/internal/migrations/v22.go @@ -22,9 +22,9 @@ package migrations import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/unique" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/unique" "xorm.io/xorm" ) diff --git a/internal/migrations/v23.go b/internal/migrations/v23.go index 8b8a33708..49a243765 100644 --- a/internal/migrations/v23.go +++ b/internal/migrations/v23.go @@ -22,7 +22,7 @@ package migrations import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/migrations/v24.go b/internal/migrations/v24.go index 907fd1ef9..19358af45 100644 --- a/internal/migrations/v24.go +++ b/internal/migrations/v24.go @@ -23,9 +23,9 @@ import ( "context" "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "xorm.io/xorm" ) diff --git a/internal/migrations/v3.go b/internal/migrations/v3.go index d7313114a..a191d7258 100644 --- a/internal/migrations/v3.go +++ b/internal/migrations/v3.go @@ -24,7 +24,7 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/log" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/internal/migrations/v4.go b/internal/migrations/v4.go index 913dc166e..d4079a143 100644 --- a/internal/migrations/v4.go +++ b/internal/migrations/v4.go @@ -23,8 +23,8 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/permission" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/permission" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v5.go b/internal/migrations/v5.go index 4924fa993..9d422d743 100644 --- a/internal/migrations/v5.go +++ b/internal/migrations/v5.go @@ -24,7 +24,7 @@ import ( "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/migrations/v6.go b/internal/migrations/v6.go index 367ca446f..9171ad47a 100644 --- a/internal/migrations/v6.go +++ b/internal/migrations/v6.go @@ -24,7 +24,7 @@ import ( "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/migrations/v7.go b/internal/migrations/v7.go index 376e56c49..f4b64f64e 100644 --- a/internal/migrations/v7.go +++ b/internal/migrations/v7.go @@ -23,7 +23,7 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v8.go b/internal/migrations/v8.go index 829beddb1..cafb538e2 100644 --- a/internal/migrations/v8.go +++ b/internal/migrations/v8.go @@ -24,8 +24,8 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/permission" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/permission" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/migrations/v9.go b/internal/migrations/v9.go index 8c80bd01b..5f20b74e5 100644 --- a/internal/migrations/v9.go +++ b/internal/migrations/v9.go @@ -23,7 +23,7 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/repo/activity/activity_repo.go b/internal/repo/activity/activity_repo.go index d41f00712..1098a73ed 100644 --- a/internal/repo/activity/activity_repo.go +++ b/internal/repo/activity/activity_repo.go @@ -22,12 +22,12 @@ package activity import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_type" - "github.com/apache/incubator-answer/internal/service/config" + "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/activity" + "github.com/apache/answer/internal/service/activity_type" + "github.com/apache/answer/internal/service/config" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/activity/answer_repo.go b/internal/repo/activity/answer_repo.go index f3ad1dc04..db6e3bde4 100644 --- a/internal/repo/activity/answer_repo.go +++ b/internal/repo/activity/answer_repo.go @@ -26,16 +26,16 @@ import ( "time" "xorm.io/builder" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/constant" + "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/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/pkg/converter" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/activity/follow_repo.go b/internal/repo/activity/follow_repo.go index e1a015936..7af2189a6 100644 --- a/internal/repo/activity/follow_repo.go +++ b/internal/repo/activity/follow_repo.go @@ -23,16 +23,16 @@ import ( "context" "time" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/follow" - "github.com/apache/incubator-answer/pkg/obj" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/follow" + "github.com/apache/answer/pkg/obj" "github.com/segmentfault/pacman/log" "xorm.io/builder" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/unique" + "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/unique" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/activity/review_repo.go b/internal/repo/activity/review_repo.go index 3325a7625..c1f04b351 100644 --- a/internal/repo/activity/review_repo.go +++ b/internal/repo/activity/review_repo.go @@ -23,17 +23,17 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/pkg/converter" "xorm.io/builder" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/rank" + "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/activity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/rank" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/activity/user_active_repo.go b/internal/repo/activity/user_active_repo.go index 32da886b0..2452bcf83 100644 --- a/internal/repo/activity/user_active_repo.go +++ b/internal/repo/activity/user_active_repo.go @@ -24,13 +24,13 @@ import ( "fmt" "xorm.io/builder" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/rank" + "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/activity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/rank" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/activity/vote_repo.go b/internal/repo/activity/vote_repo.go index 7e8b02e64..3fb40e750 100644 --- a/internal/repo/activity/vote_repo.go +++ b/internal/repo/activity/vote_repo.go @@ -24,24 +24,24 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/service/content" + "github.com/apache/answer/internal/service/content" "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/pkg/converter" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/pkg/obj" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/pkg/obj" "xorm.io/builder" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" + "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/schema" + "github.com/apache/answer/internal/service/activity_common" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/activity_common/activity_repo.go b/internal/repo/activity_common/activity_repo.go index 9f0a59e4d..b0cece9f4 100644 --- a/internal/repo/activity_common/activity_repo.go +++ b/internal/repo/activity_common/activity_repo.go @@ -24,17 +24,17 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/activity_type" - "github.com/apache/incubator-answer/pkg/obj" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_type" + "github.com/apache/answer/pkg/obj" "xorm.io/builder" "xorm.io/xorm" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/unique" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/unique" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/activity_common/follow.go b/internal/repo/activity_common/follow.go index 294214c7b..ed364f89a 100644 --- a/internal/repo/activity_common/follow.go +++ b/internal/repo/activity_common/follow.go @@ -22,12 +22,12 @@ package activity_common import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/unique" - "github.com/apache/incubator-answer/pkg/obj" + "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/activity_common" + "github.com/apache/answer/internal/service/unique" + "github.com/apache/answer/pkg/obj" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/activity_common/vote.go b/internal/repo/activity_common/vote.go index ecdf55a64..cb7d23d00 100644 --- a/internal/repo/activity_common/vote.go +++ b/internal/repo/activity_common/vote.go @@ -21,12 +21,12 @@ package activity_common import ( "context" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/pkg/uid" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/activity_common" + "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/activity_common" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/answer/answer_repo.go b/internal/repo/answer/answer_repo.go index f59d60063..75f12c278 100644 --- a/internal/repo/answer/answer_repo.go +++ b/internal/repo/answer/answer_repo.go @@ -23,19 +23,19 @@ import ( "context" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/internal/service/unique" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_common" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/internal/service/unique" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/auth/auth.go b/internal/repo/auth/auth.go index 90a6f415a..9553b6adb 100644 --- a/internal/repo/auth/auth.go +++ b/internal/repo/auth/auth.go @@ -22,12 +22,12 @@ package auth import ( "context" "encoding/json" - "github.com/apache/incubator-answer/internal/service/auth" + "github.com/apache/answer/internal/service/auth" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/badge/badge_event_rule.go b/internal/repo/badge/badge_event_rule.go index 11ce38a3e..8c4656db3 100644 --- a/internal/repo/badge/badge_event_rule.go +++ b/internal/repo/badge/badge_event_rule.go @@ -21,12 +21,12 @@ package badge import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/badge" + "github.com/apache/answer/internal/base/constant" + "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/schema" + "github.com/apache/answer/internal/service/badge" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "strconv" diff --git a/internal/repo/badge/badge_repo.go b/internal/repo/badge/badge_repo.go index d52fc1229..257caef81 100644 --- a/internal/repo/badge/badge_repo.go +++ b/internal/repo/badge/badge_repo.go @@ -21,12 +21,12 @@ package badge import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/badge" - "github.com/apache/incubator-answer/internal/service/unique" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/badge" + "github.com/apache/answer/internal/service/unique" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/badge_award/badge_award_repo.go b/internal/repo/badge_award/badge_award_repo.go index c1ce1e584..6b77a3859 100644 --- a/internal/repo/badge_award/badge_award_repo.go +++ b/internal/repo/badge_award/badge_award_repo.go @@ -22,12 +22,12 @@ package badge_award import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/badge" - "github.com/apache/incubator-answer/internal/service/unique" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/badge" + "github.com/apache/answer/internal/service/unique" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/badge_group/badge_group_repo.go b/internal/repo/badge_group/badge_group_repo.go index 63f438b9e..839ba4691 100644 --- a/internal/repo/badge_group/badge_group_repo.go +++ b/internal/repo/badge_group/badge_group_repo.go @@ -21,10 +21,10 @@ package badge_group import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/badge" - "github.com/apache/incubator-answer/internal/service/unique" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/badge" + "github.com/apache/answer/internal/service/unique" ) type badgeGroupRepo struct { diff --git a/internal/repo/captcha/captcha.go b/internal/repo/captcha/captcha.go index 02a1e57dc..f8195c1ae 100644 --- a/internal/repo/captcha/captcha.go +++ b/internal/repo/captcha/captcha.go @@ -25,10 +25,10 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/action" + "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/action" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/collection/collection_group_repo.go b/internal/repo/collection/collection_group_repo.go index 05711f5af..f8dc9c209 100644 --- a/internal/repo/collection/collection_group_repo.go +++ b/internal/repo/collection/collection_group_repo.go @@ -22,14 +22,14 @@ package collection import ( "context" - "github.com/apache/incubator-answer/internal/service/collection" + "github.com/apache/answer/internal/service/collection" "xorm.io/xorm" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/collection/collection_repo.go b/internal/repo/collection/collection_repo.go index c67b7bd2c..1aecaf473 100644 --- a/internal/repo/collection/collection_repo.go +++ b/internal/repo/collection/collection_repo.go @@ -21,15 +21,15 @@ package collection import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - collectioncommon "github.com/apache/incubator-answer/internal/service/collection_common" - "github.com/apache/incubator-answer/internal/service/unique" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + collectioncommon "github.com/apache/answer/internal/service/collection_common" + "github.com/apache/answer/internal/service/unique" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/errors" "xorm.io/xorm" ) diff --git a/internal/repo/comment/comment_repo.go b/internal/repo/comment/comment_repo.go index 79f0eaa94..f1794824c 100644 --- a/internal/repo/comment/comment_repo.go +++ b/internal/repo/comment/comment_repo.go @@ -24,13 +24,13 @@ import ( "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/comment" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/unique" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/comment" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/unique" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/config/config_repo.go b/internal/repo/config/config_repo.go index cbaf7aec9..3708aa3ec 100644 --- a/internal/repo/config/config_repo.go +++ b/internal/repo/config/config_repo.go @@ -23,11 +23,11 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/config" + "github.com/apache/answer/internal/base/constant" + "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/config" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/export/email_repo.go b/internal/repo/export/email_repo.go index 59cba04b7..1f8e1ce83 100644 --- a/internal/repo/export/email_repo.go +++ b/internal/repo/export/email_repo.go @@ -21,13 +21,13 @@ package export import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" "github.com/tidwall/gjson" "time" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/service/export" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/service/export" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/limit/limit.go b/internal/repo/limit/limit.go index cf3140569..4868accd5 100644 --- a/internal/repo/limit/limit.go +++ b/internal/repo/limit/limit.go @@ -22,9 +22,9 @@ package limit import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" + "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" ) diff --git a/internal/repo/meta/meta_repo.go b/internal/repo/meta/meta_repo.go index 384fd185c..767bd04c7 100644 --- a/internal/repo/meta/meta_repo.go +++ b/internal/repo/meta/meta_repo.go @@ -22,10 +22,10 @@ package meta import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/meta_common" + "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" "github.com/segmentfault/pacman/errors" "xorm.io/builder" "xorm.io/xorm" diff --git a/internal/repo/notification/notification_repo.go b/internal/repo/notification/notification_repo.go index 5a2a6cc7a..6c72220c1 100644 --- a/internal/repo/notification/notification_repo.go +++ b/internal/repo/notification/notification_repo.go @@ -23,13 +23,13 @@ import ( "context" "time" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - notficationcommon "github.com/apache/incubator-answer/internal/service/notification_common" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + notficationcommon "github.com/apache/answer/internal/service/notification_common" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/plugin_config/plugin_config_repo.go b/internal/repo/plugin_config/plugin_config_repo.go index 1ad2e4957..8208fb75a 100644 --- a/internal/repo/plugin_config/plugin_config_repo.go +++ b/internal/repo/plugin_config/plugin_config_repo.go @@ -22,10 +22,10 @@ package plugin_config import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/plugin_common" + "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/plugin_common" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/plugin_config/plugin_user_config_repo.go b/internal/repo/plugin_config/plugin_user_config_repo.go index 5b3b54dea..72eabec77 100644 --- a/internal/repo/plugin_config/plugin_user_config_repo.go +++ b/internal/repo/plugin_config/plugin_user_config_repo.go @@ -21,13 +21,13 @@ package plugin_config import ( "context" - "github.com/apache/incubator-answer/internal/base/pager" + "github.com/apache/answer/internal/base/pager" "xorm.io/xorm" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/plugin_common" + "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/plugin_common" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/provider.go b/internal/repo/provider.go index 7f222a425..1b29cc5e8 100644 --- a/internal/repo/provider.go +++ b/internal/repo/provider.go @@ -20,38 +20,38 @@ package repo import ( - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/repo/activity" - "github.com/apache/incubator-answer/internal/repo/activity_common" - "github.com/apache/incubator-answer/internal/repo/answer" - "github.com/apache/incubator-answer/internal/repo/auth" - "github.com/apache/incubator-answer/internal/repo/badge" - "github.com/apache/incubator-answer/internal/repo/badge_award" - "github.com/apache/incubator-answer/internal/repo/badge_group" - "github.com/apache/incubator-answer/internal/repo/captcha" - "github.com/apache/incubator-answer/internal/repo/collection" - "github.com/apache/incubator-answer/internal/repo/comment" - "github.com/apache/incubator-answer/internal/repo/config" - "github.com/apache/incubator-answer/internal/repo/export" - "github.com/apache/incubator-answer/internal/repo/limit" - "github.com/apache/incubator-answer/internal/repo/meta" - "github.com/apache/incubator-answer/internal/repo/notification" - "github.com/apache/incubator-answer/internal/repo/plugin_config" - "github.com/apache/incubator-answer/internal/repo/question" - "github.com/apache/incubator-answer/internal/repo/rank" - "github.com/apache/incubator-answer/internal/repo/reason" - "github.com/apache/incubator-answer/internal/repo/report" - "github.com/apache/incubator-answer/internal/repo/review" - "github.com/apache/incubator-answer/internal/repo/revision" - "github.com/apache/incubator-answer/internal/repo/role" - "github.com/apache/incubator-answer/internal/repo/search_common" - "github.com/apache/incubator-answer/internal/repo/site_info" - "github.com/apache/incubator-answer/internal/repo/tag" - "github.com/apache/incubator-answer/internal/repo/tag_common" - "github.com/apache/incubator-answer/internal/repo/unique" - "github.com/apache/incubator-answer/internal/repo/user" - "github.com/apache/incubator-answer/internal/repo/user_external_login" - "github.com/apache/incubator-answer/internal/repo/user_notification_config" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/repo/activity" + "github.com/apache/answer/internal/repo/activity_common" + "github.com/apache/answer/internal/repo/answer" + "github.com/apache/answer/internal/repo/auth" + "github.com/apache/answer/internal/repo/badge" + "github.com/apache/answer/internal/repo/badge_award" + "github.com/apache/answer/internal/repo/badge_group" + "github.com/apache/answer/internal/repo/captcha" + "github.com/apache/answer/internal/repo/collection" + "github.com/apache/answer/internal/repo/comment" + "github.com/apache/answer/internal/repo/config" + "github.com/apache/answer/internal/repo/export" + "github.com/apache/answer/internal/repo/limit" + "github.com/apache/answer/internal/repo/meta" + "github.com/apache/answer/internal/repo/notification" + "github.com/apache/answer/internal/repo/plugin_config" + "github.com/apache/answer/internal/repo/question" + "github.com/apache/answer/internal/repo/rank" + "github.com/apache/answer/internal/repo/reason" + "github.com/apache/answer/internal/repo/report" + "github.com/apache/answer/internal/repo/review" + "github.com/apache/answer/internal/repo/revision" + "github.com/apache/answer/internal/repo/role" + "github.com/apache/answer/internal/repo/search_common" + "github.com/apache/answer/internal/repo/site_info" + "github.com/apache/answer/internal/repo/tag" + "github.com/apache/answer/internal/repo/tag_common" + "github.com/apache/answer/internal/repo/unique" + "github.com/apache/answer/internal/repo/user" + "github.com/apache/answer/internal/repo/user_external_login" + "github.com/apache/answer/internal/repo/user_notification_config" "github.com/google/wire" ) diff --git a/internal/repo/question/question_repo.go b/internal/repo/question/question_repo.go index 9b1d212ee..5d889d7a1 100644 --- a/internal/repo/question/question_repo.go +++ b/internal/repo/question/question_repo.go @@ -27,18 +27,18 @@ import ( "time" "unicode" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/unique" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/unique" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "xorm.io/builder" diff --git a/internal/repo/rank/user_rank_repo.go b/internal/repo/rank/user_rank_repo.go index f99b71f95..a44c3e37a 100644 --- a/internal/repo/rank/user_rank_repo.go +++ b/internal/repo/rank/user_rank_repo.go @@ -22,13 +22,13 @@ package rank import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/plugin" "github.com/jinzhu/now" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/repo/reason/reason_repo.go b/internal/repo/reason/reason_repo.go index 94df2214e..875e3f983 100644 --- a/internal/repo/reason/reason_repo.go +++ b/internal/repo/reason/reason_repo.go @@ -24,10 +24,10 @@ import ( "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/reason_common" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/reason_common" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/repo_test/auth_test.go b/internal/repo/repo_test/auth_test.go index 686d16440..387332399 100644 --- a/internal/repo/repo_test/auth_test.go +++ b/internal/repo/repo_test/auth_test.go @@ -23,8 +23,8 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/auth" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/auth" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/captcha_test.go b/internal/repo/repo_test/captcha_test.go index c91388359..48e9dd806 100644 --- a/internal/repo/repo_test/captcha_test.go +++ b/internal/repo/repo_test/captcha_test.go @@ -23,7 +23,7 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/repo/captcha" + "github.com/apache/answer/internal/repo/captcha" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/comment_repo_test.go b/internal/repo/repo_test/comment_repo_test.go index 642e3d75b..3de154817 100644 --- a/internal/repo/repo_test/comment_repo_test.go +++ b/internal/repo/repo_test/comment_repo_test.go @@ -23,11 +23,11 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/comment" - "github.com/apache/incubator-answer/internal/repo/unique" - commentService "github.com/apache/incubator-answer/internal/service/comment" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/comment" + "github.com/apache/answer/internal/repo/unique" + commentService "github.com/apache/answer/internal/service/comment" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/email_repo_test.go b/internal/repo/repo_test/email_repo_test.go index 62d1ccb85..82fc6c571 100644 --- a/internal/repo/repo_test/email_repo_test.go +++ b/internal/repo/repo_test/email_repo_test.go @@ -24,7 +24,7 @@ import ( "testing" "time" - "github.com/apache/incubator-answer/internal/repo/export" + "github.com/apache/answer/internal/repo/export" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/meta_repo_test.go b/internal/repo/repo_test/meta_repo_test.go index fefd88031..e910dab3f 100644 --- a/internal/repo/repo_test/meta_repo_test.go +++ b/internal/repo/repo_test/meta_repo_test.go @@ -23,8 +23,8 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/meta" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/meta" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/notification_repo_test.go b/internal/repo/repo_test/notification_repo_test.go index f93daf319..a05913ba1 100644 --- a/internal/repo/repo_test/notification_repo_test.go +++ b/internal/repo/repo_test/notification_repo_test.go @@ -23,9 +23,9 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/notification" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/notification" + "github.com/apache/answer/internal/schema" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/reason_repo_test.go b/internal/repo/repo_test/reason_repo_test.go index 7848b2e48..636f8d278 100644 --- a/internal/repo/repo_test/reason_repo_test.go +++ b/internal/repo/repo_test/reason_repo_test.go @@ -23,10 +23,10 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/repo/config" - serviceconfig "github.com/apache/incubator-answer/internal/service/config" + "github.com/apache/answer/internal/repo/config" + serviceconfig "github.com/apache/answer/internal/service/config" - "github.com/apache/incubator-answer/internal/repo/reason" + "github.com/apache/answer/internal/repo/reason" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/recommend_test.go b/internal/repo/repo_test/recommend_test.go index 6c87dfe74..a21693886 100644 --- a/internal/repo/repo_test/recommend_test.go +++ b/internal/repo/repo_test/recommend_test.go @@ -23,16 +23,16 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/activity" - "github.com/apache/incubator-answer/internal/repo/activity_common" - "github.com/apache/incubator-answer/internal/repo/config" - "github.com/apache/incubator-answer/internal/repo/question" - "github.com/apache/incubator-answer/internal/repo/tag" - "github.com/apache/incubator-answer/internal/repo/tag_common" - "github.com/apache/incubator-answer/internal/repo/unique" - "github.com/apache/incubator-answer/internal/repo/user" - config2 "github.com/apache/incubator-answer/internal/service/config" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/activity" + "github.com/apache/answer/internal/repo/activity_common" + "github.com/apache/answer/internal/repo/config" + "github.com/apache/answer/internal/repo/question" + "github.com/apache/answer/internal/repo/tag" + "github.com/apache/answer/internal/repo/tag_common" + "github.com/apache/answer/internal/repo/unique" + "github.com/apache/answer/internal/repo/user" + config2 "github.com/apache/answer/internal/service/config" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/repo_main_test.go b/internal/repo/repo_test/repo_main_test.go index d1c365e40..a59ae6269 100644 --- a/internal/repo/repo_test/repo_main_test.go +++ b/internal/repo/repo_test/repo_main_test.go @@ -28,8 +28,8 @@ import ( "testing" "time" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/migrations" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/migrations" "github.com/ory/dockertest/v3" "github.com/ory/dockertest/v3/docker" "github.com/segmentfault/pacman/cache" diff --git a/internal/repo/repo_test/revision_repo_test.go b/internal/repo/repo_test/revision_repo_test.go index 649869c6c..01d262d2b 100644 --- a/internal/repo/repo_test/revision_repo_test.go +++ b/internal/repo/repo_test/revision_repo_test.go @@ -24,10 +24,10 @@ import ( "encoding/json" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/question" - "github.com/apache/incubator-answer/internal/repo/revision" - "github.com/apache/incubator-answer/internal/repo/unique" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/question" + "github.com/apache/answer/internal/repo/revision" + "github.com/apache/answer/internal/repo/unique" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/siteinfo_repo_test.go b/internal/repo/repo_test/siteinfo_repo_test.go index 27b4bb9c6..cb5d8fc0d 100644 --- a/internal/repo/repo_test/siteinfo_repo_test.go +++ b/internal/repo/repo_test/siteinfo_repo_test.go @@ -23,8 +23,8 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/site_info" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/site_info" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/tag_rel_repo_test.go b/internal/repo/repo_test/tag_rel_repo_test.go index 1cc96319f..e3af67a14 100644 --- a/internal/repo/repo_test/tag_rel_repo_test.go +++ b/internal/repo/repo_test/tag_rel_repo_test.go @@ -25,10 +25,10 @@ import ( "sync" "testing" - "github.com/apache/incubator-answer/internal/repo/unique" + "github.com/apache/answer/internal/repo/unique" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/tag" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/tag" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/tag_repo_test.go b/internal/repo/repo_test/tag_repo_test.go index 0c00782f8..b2475a227 100644 --- a/internal/repo/repo_test/tag_repo_test.go +++ b/internal/repo/repo_test/tag_repo_test.go @@ -26,11 +26,11 @@ import ( "sync" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/tag" - "github.com/apache/incubator-answer/internal/repo/tag_common" - "github.com/apache/incubator-answer/internal/repo/unique" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/tag" + "github.com/apache/answer/internal/repo/tag_common" + "github.com/apache/answer/internal/repo/unique" + "github.com/apache/answer/pkg/converter" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/user_backyard_repo_test.go b/internal/repo/repo_test/user_backyard_repo_test.go index cb2c01e4e..e1db0d601 100644 --- a/internal/repo/repo_test/user_backyard_repo_test.go +++ b/internal/repo/repo_test/user_backyard_repo_test.go @@ -23,9 +23,9 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/auth" - "github.com/apache/incubator-answer/internal/repo/user" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/auth" + "github.com/apache/answer/internal/repo/user" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/repo_test/user_repo_test.go b/internal/repo/repo_test/user_repo_test.go index 09176b761..7b18833dd 100644 --- a/internal/repo/repo_test/user_repo_test.go +++ b/internal/repo/repo_test/user_repo_test.go @@ -23,8 +23,8 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/repo/user" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/repo/user" "github.com/stretchr/testify/assert" ) diff --git a/internal/repo/report/report_repo.go b/internal/repo/report/report_repo.go index 013d036d3..e597c9a11 100644 --- a/internal/repo/report/report_repo.go +++ b/internal/repo/report/report_repo.go @@ -22,14 +22,14 @@ package report import ( "context" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/report_common" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/report_common" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/unique" + "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/unique" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/review/review_repo.go b/internal/repo/review/review_repo.go index c87c814c3..20cc82aab 100644 --- a/internal/repo/review/review_repo.go +++ b/internal/repo/review/review_repo.go @@ -22,11 +22,11 @@ package review import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/review" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/review" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/revision/revision_repo.go b/internal/repo/revision/revision_repo.go index eba232512..ab00adf99 100644 --- a/internal/repo/revision/revision_repo.go +++ b/internal/repo/revision/revision_repo.go @@ -22,15 +22,15 @@ package revision import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/revision" - "github.com/apache/incubator-answer/internal/service/unique" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/obj" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/revision" + "github.com/apache/answer/internal/service/unique" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/obj" "github.com/segmentfault/pacman/errors" "xorm.io/builder" "xorm.io/xorm" diff --git a/internal/repo/role/power_repo.go b/internal/repo/role/power_repo.go index 89b331467..8da7c6638 100644 --- a/internal/repo/role/power_repo.go +++ b/internal/repo/role/power_repo.go @@ -22,10 +22,10 @@ package role import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/role" + "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/role" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/role/role_power_rel_repo.go b/internal/repo/role/role_power_rel_repo.go index ccb9e7445..76a3c76d8 100644 --- a/internal/repo/role/role_power_rel_repo.go +++ b/internal/repo/role/role_power_rel_repo.go @@ -22,9 +22,9 @@ package role import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/service/role" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/service/role" "github.com/segmentfault/pacman/errors" "xorm.io/builder" ) diff --git a/internal/repo/role/role_repo.go b/internal/repo/role/role_repo.go index 1a8bddbc4..51dfb2327 100644 --- a/internal/repo/role/role_repo.go +++ b/internal/repo/role/role_repo.go @@ -22,10 +22,10 @@ package role import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - service "github.com/apache/incubator-answer/internal/service/role" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + service "github.com/apache/answer/internal/service/role" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/role/user_role_rel_repo.go b/internal/repo/role/user_role_rel_repo.go index 001745fea..7bd14ecea 100644 --- a/internal/repo/role/user_role_rel_repo.go +++ b/internal/repo/role/user_role_rel_repo.go @@ -22,10 +22,10 @@ package role import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/role" + "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/role" "github.com/segmentfault/pacman/errors" "xorm.io/builder" "xorm.io/xorm" diff --git a/internal/repo/search_common/search_repo.go b/internal/repo/search_common/search_repo.go index 1c4f04ab5..314c51878 100644 --- a/internal/repo/search_common/search_repo.go +++ b/internal/repo/search_common/search_repo.go @@ -26,22 +26,22 @@ import ( "strings" "time" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/plugin" - - "github.com/apache/incubator-answer/pkg/htmltext" - - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/search_common" - "github.com/apache/incubator-answer/internal/service/unique" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/obj" - "github.com/apache/incubator-answer/pkg/uid" + tagcommon "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/plugin" + + "github.com/apache/answer/pkg/htmltext" + + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/search_common" + "github.com/apache/answer/internal/service/unique" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/obj" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/errors" "xorm.io/builder" ) diff --git a/internal/repo/search_sync/search_sync.go b/internal/repo/search_sync/search_sync.go index d54c7c2f7..5c0adc0f9 100644 --- a/internal/repo/search_sync/search_sync.go +++ b/internal/repo/search_sync/search_sync.go @@ -21,12 +21,12 @@ package search_sync import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/site_info/siteinfo_repo.go b/internal/repo/site_info/siteinfo_repo.go index 8d81a3ffe..420e483f3 100644 --- a/internal/repo/site_info/siteinfo_repo.go +++ b/internal/repo/site_info/siteinfo_repo.go @@ -23,11 +23,11 @@ import ( "context" "encoding/json" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/base/constant" + "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/siteinfo_common" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "xorm.io/builder" diff --git a/internal/repo/tag/tag_rel_repo.go b/internal/repo/tag/tag_rel_repo.go index 3188295cf..565c63861 100644 --- a/internal/repo/tag/tag_rel_repo.go +++ b/internal/repo/tag/tag_rel_repo.go @@ -22,13 +22,13 @@ package tag import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/internal/service/unique" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + tagcommon "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/internal/service/unique" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/tag/tag_repo.go b/internal/repo/tag/tag_repo.go index c9c2c1fab..bdfe62cfa 100644 --- a/internal/repo/tag/tag_repo.go +++ b/internal/repo/tag/tag_repo.go @@ -22,12 +22,12 @@ package tag import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/internal/service/unique" - "github.com/apache/incubator-answer/pkg/converter" + "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/tag_common" + "github.com/apache/answer/internal/service/unique" + "github.com/apache/answer/pkg/converter" "github.com/segmentfault/pacman/errors" "xorm.io/builder" ) diff --git a/internal/repo/tag_common/tag_common_repo.go b/internal/repo/tag_common/tag_common_repo.go index f3a852822..c4762b0ca 100644 --- a/internal/repo/tag_common/tag_common_repo.go +++ b/internal/repo/tag_common/tag_common_repo.go @@ -25,12 +25,12 @@ import ( "strconv" "strings" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/internal/service/unique" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + tagcommon "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/internal/service/unique" "github.com/segmentfault/pacman/errors" "xorm.io/builder" ) diff --git a/internal/repo/unique/uniqid_repo.go b/internal/repo/unique/uniqid_repo.go index 27dcea19e..8ad3e3be8 100644 --- a/internal/repo/unique/uniqid_repo.go +++ b/internal/repo/unique/uniqid_repo.go @@ -23,11 +23,11 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/unique" + "github.com/apache/answer/internal/base/constant" + "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/unique" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/user/user_backyard_repo.go b/internal/repo/user/user_backyard_repo.go index 44a05cfbf..420b02f2f 100644 --- a/internal/repo/user/user_backyard_repo.go +++ b/internal/repo/user/user_backyard_repo.go @@ -26,12 +26,12 @@ import ( "xorm.io/builder" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/auth" - "github.com/apache/incubator-answer/internal/service/user_admin" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/auth" + "github.com/apache/answer/internal/service/user_admin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/repo/user/user_repo.go b/internal/repo/user/user_repo.go index fef1fa714..f56e00b89 100644 --- a/internal/repo/user/user_repo.go +++ b/internal/repo/user/user_repo.go @@ -24,13 +24,13 @@ import ( "strings" "time" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/plugin" + "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/schema" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "xorm.io/xorm" diff --git a/internal/repo/user_external_login/user_external_login_repo.go b/internal/repo/user_external_login/user_external_login_repo.go index c2d131086..c797e461d 100644 --- a/internal/repo/user_external_login/user_external_login_repo.go +++ b/internal/repo/user_external_login/user_external_login_repo.go @@ -23,12 +23,12 @@ import ( "context" "encoding/json" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/user_external_login" + "github.com/apache/answer/internal/base/constant" + "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/schema" + "github.com/apache/answer/internal/service/user_external_login" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/repo/user_notification_config/user_notification_config_repo.go b/internal/repo/user_notification_config/user_notification_config_repo.go index 6785b6794..8ea2b065b 100644 --- a/internal/repo/user_notification_config/user_notification_config_repo.go +++ b/internal/repo/user_notification_config/user_notification_config_repo.go @@ -21,11 +21,11 @@ package user_notification_config import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/user_notification_config" + "github.com/apache/answer/internal/base/constant" + "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/user_notification_config" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/router/answer_api_router.go b/internal/router/answer_api_router.go index 2927afef6..a855f07d3 100644 --- a/internal/router/answer_api_router.go +++ b/internal/router/answer_api_router.go @@ -20,9 +20,9 @@ package router import ( - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/controller" - "github.com/apache/incubator-answer/internal/controller_admin" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/controller" + "github.com/apache/answer/internal/controller_admin" "github.com/gin-gonic/gin" ) diff --git a/internal/router/plugin_api_router.go b/internal/router/plugin_api_router.go index e69e0b6b0..ce5062ba5 100644 --- a/internal/router/plugin_api_router.go +++ b/internal/router/plugin_api_router.go @@ -20,7 +20,7 @@ package router import ( - "github.com/apache/incubator-answer/internal/controller" + "github.com/apache/answer/internal/controller" "github.com/gin-gonic/gin" ) diff --git a/internal/router/static_router.go b/internal/router/static_router.go index 71457f49e..807f4c735 100644 --- a/internal/router/static_router.go +++ b/internal/router/static_router.go @@ -20,8 +20,8 @@ package router import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/service/service_config" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/service/service_config" "github.com/gin-gonic/gin" "path/filepath" "strings" diff --git a/internal/router/swagger_router.go b/internal/router/swagger_router.go index 55f2d644a..06c13588f 100644 --- a/internal/router/swagger_router.go +++ b/internal/router/swagger_router.go @@ -22,7 +22,7 @@ package router import ( "fmt" - "github.com/apache/incubator-answer/docs" + "github.com/apache/answer/docs" "github.com/gin-gonic/gin" swaggerfiles "github.com/swaggo/files" ginSwagger "github.com/swaggo/gin-swagger" diff --git a/internal/router/template_router.go b/internal/router/template_router.go index 195030f9a..7c42f4ea3 100644 --- a/internal/router/template_router.go +++ b/internal/router/template_router.go @@ -20,10 +20,10 @@ package router import ( - "github.com/apache/incubator-answer/internal/base/middleware" - "github.com/apache/incubator-answer/internal/controller" - templaterender "github.com/apache/incubator-answer/internal/controller/template_render" - "github.com/apache/incubator-answer/internal/controller_admin" + "github.com/apache/answer/internal/base/middleware" + "github.com/apache/answer/internal/controller" + templaterender "github.com/apache/answer/internal/controller/template_render" + "github.com/apache/answer/internal/controller_admin" "github.com/gin-gonic/gin" ) diff --git a/internal/router/ui.go b/internal/router/ui.go index b0b8a6d9c..0b5ee3f96 100644 --- a/internal/router/ui.go +++ b/internal/router/ui.go @@ -22,16 +22,16 @@ package router import ( "embed" "fmt" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/plugin" "io/fs" "net/http" "os" "strings" - "github.com/apache/incubator-answer/internal/controller" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/ui" + "github.com/apache/answer/internal/controller" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/ui" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/schema/activity.go b/internal/schema/activity.go index 2ec837aa2..e62bdd780 100644 --- a/internal/schema/activity.go +++ b/internal/schema/activity.go @@ -19,7 +19,7 @@ package schema -import "github.com/apache/incubator-answer/internal/base/constant" +import "github.com/apache/answer/internal/base/constant" // ActivityMsg activity message type ActivityMsg struct { diff --git a/internal/schema/answer_schema.go b/internal/schema/answer_schema.go index 01bc64a29..72f5a9d01 100644 --- a/internal/schema/answer_schema.go +++ b/internal/schema/answer_schema.go @@ -20,8 +20,8 @@ package schema import ( - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/pkg/converter" ) // RemoveAnswerReq delete answer request diff --git a/internal/schema/backyard_user_schema.go b/internal/schema/backyard_user_schema.go index 7c690aee3..a64077de0 100644 --- a/internal/schema/backyard_user_schema.go +++ b/internal/schema/backyard_user_schema.go @@ -21,11 +21,11 @@ package schema import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" "github.com/segmentfault/pacman/errors" "strings" ) diff --git a/internal/schema/badge_schema.go b/internal/schema/badge_schema.go index 8c934ee2d..86d13c03a 100644 --- a/internal/schema/badge_schema.go +++ b/internal/schema/badge_schema.go @@ -19,7 +19,7 @@ package schema -import "github.com/apache/incubator-answer/internal/entity" +import "github.com/apache/answer/internal/entity" const ( BadgeStatusActive BadgeStatus = "active" diff --git a/internal/schema/comment_schema.go b/internal/schema/comment_schema.go index 275e1b9af..a54833227 100644 --- a/internal/schema/comment_schema.go +++ b/internal/schema/comment_schema.go @@ -20,9 +20,9 @@ package schema import ( - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/pkg/converter" "github.com/jinzhu/copier" ) diff --git a/internal/schema/email_template.go b/internal/schema/email_template.go index 56d3ee4e7..1fcdfbce3 100644 --- a/internal/schema/email_template.go +++ b/internal/schema/email_template.go @@ -21,7 +21,7 @@ package schema import ( "encoding/json" - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" ) const ( diff --git a/internal/schema/event_schema.go b/internal/schema/event_schema.go index abacaed36..fabbabce4 100644 --- a/internal/schema/event_schema.go +++ b/internal/schema/event_schema.go @@ -20,8 +20,8 @@ package schema import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/pkg/uid" ) // EventMsg event message diff --git a/internal/schema/new_question_queue_schema.go b/internal/schema/new_question_queue_schema.go index d634d5ad1..5faeabb2d 100644 --- a/internal/schema/new_question_queue_schema.go +++ b/internal/schema/new_question_queue_schema.go @@ -20,8 +20,8 @@ package schema import ( - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/pkg/uid" ) type ExternalNotificationMsg struct { diff --git a/internal/schema/notification_schema.go b/internal/schema/notification_schema.go index 8d4b694e9..a68328ace 100644 --- a/internal/schema/notification_schema.go +++ b/internal/schema/notification_schema.go @@ -21,7 +21,7 @@ package schema import ( "encoding/json" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "sort" ) diff --git a/internal/schema/permission.go b/internal/schema/permission.go index 6ad7b91f3..106709d12 100644 --- a/internal/schema/permission.go +++ b/internal/schema/permission.go @@ -22,9 +22,9 @@ package schema import ( "strings" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" "github.com/segmentfault/pacman/i18n" ) diff --git a/internal/schema/plugin_admin_schema.go b/internal/schema/plugin_admin_schema.go index c588c6da3..77129ac73 100644 --- a/internal/schema/plugin_admin_schema.go +++ b/internal/schema/plugin_admin_schema.go @@ -20,7 +20,7 @@ package schema import ( - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" ) diff --git a/internal/schema/plugin_user_schema.go b/internal/schema/plugin_user_schema.go index b2734cb13..2e35f58ad 100644 --- a/internal/schema/plugin_user_schema.go +++ b/internal/schema/plugin_user_schema.go @@ -20,7 +20,7 @@ package schema import ( - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" ) diff --git a/internal/schema/question_schema.go b/internal/schema/question_schema.go index accc3374f..8adc74845 100644 --- a/internal/schema/question_schema.go +++ b/internal/schema/question_schema.go @@ -23,10 +23,10 @@ import ( "strings" "time" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/uid" ) const ( diff --git a/internal/schema/reason_schema.go b/internal/schema/reason_schema.go index b408ce9bc..65b352bce 100644 --- a/internal/schema/reason_schema.go +++ b/internal/schema/reason_schema.go @@ -20,7 +20,7 @@ package schema import ( - "github.com/apache/incubator-answer/internal/base/translator" + "github.com/apache/answer/internal/base/translator" "github.com/segmentfault/pacman/i18n" ) diff --git a/internal/schema/review_schema.go b/internal/schema/review_schema.go index 6fe9025ac..a4006d290 100644 --- a/internal/schema/review_schema.go +++ b/internal/schema/review_schema.go @@ -20,8 +20,8 @@ package schema import ( - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/pkg/uid" ) // UpdateReviewReq update review request diff --git a/internal/schema/revision_schema.go b/internal/schema/revision_schema.go index f1b116882..946d11653 100644 --- a/internal/schema/revision_schema.go +++ b/internal/schema/revision_schema.go @@ -22,7 +22,7 @@ package schema import ( "time" - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" ) // AddRevisionDTO add revision request diff --git a/internal/schema/search_schema.go b/internal/schema/search_schema.go index 50aeaa6f0..8667c74a5 100644 --- a/internal/schema/search_schema.go +++ b/internal/schema/search_schema.go @@ -23,9 +23,9 @@ import ( "regexp" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/plugin" ) type SearchDTO struct { diff --git a/internal/schema/simple_obj_info_schema.go b/internal/schema/simple_obj_info_schema.go index 3a3f7810e..a9bcf3b19 100644 --- a/internal/schema/simple_obj_info_schema.go +++ b/internal/schema/simple_obj_info_schema.go @@ -20,8 +20,8 @@ package schema import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" ) // SimpleObjectInfo simple object info diff --git a/internal/schema/siteinfo_schema.go b/internal/schema/siteinfo_schema.go index fee6b8cba..264ddb993 100644 --- a/internal/schema/siteinfo_schema.go +++ b/internal/schema/siteinfo_schema.go @@ -26,11 +26,11 @@ import ( "net/url" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/schema/tag_schema.go b/internal/schema/tag_schema.go index 888c224be..c9c10d9cb 100644 --- a/internal/schema/tag_schema.go +++ b/internal/schema/tag_schema.go @@ -22,8 +22,8 @@ package schema import ( "strings" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/pkg/converter" ) // SearchTagLikeReq get tag list all request diff --git a/internal/schema/user_notification_schema.go b/internal/schema/user_notification_schema.go index 4c2cd3f97..eca97e81c 100644 --- a/internal/schema/user_notification_schema.go +++ b/internal/schema/user_notification_schema.go @@ -21,8 +21,8 @@ package schema import ( "encoding/json" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" ) type NotificationChannelConfig struct { diff --git a/internal/schema/user_schema.go b/internal/schema/user_schema.go index 95837d96f..9d126da82 100644 --- a/internal/schema/user_schema.go +++ b/internal/schema/user_schema.go @@ -22,15 +22,15 @@ package schema import ( "encoding/json" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" "github.com/segmentfault/pacman/errors" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/converter" "github.com/jinzhu/copier" ) diff --git a/internal/service/action/captcha_service.go b/internal/service/action/captcha_service.go index 326ea6374..04f8b16ac 100644 --- a/internal/service/action/captcha_service.go +++ b/internal/service/action/captcha_service.go @@ -22,10 +22,10 @@ package action import ( "context" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/action/captcha_strategy.go b/internal/service/action/captcha_strategy.go index 1d2dcbc3d..3befda821 100644 --- a/internal/service/action/captcha_strategy.go +++ b/internal/service/action/captcha_strategy.go @@ -23,10 +23,10 @@ import ( "context" "time" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" ) // ValidationStrategy diff --git a/internal/service/activity/activity.go b/internal/service/activity/activity.go index 7188fa944..2d384f34c 100644 --- a/internal/service/activity/activity.go +++ b/internal/service/activity/activity.go @@ -25,22 +25,22 @@ import ( "fmt" "strings" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/meta_common" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/meta_common" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/object_info" - "github.com/apache/incubator-answer/internal/service/revision_common" - "github.com/apache/incubator-answer/internal/service/tag_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/obj" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/object_info" + "github.com/apache/answer/internal/service/revision_common" + "github.com/apache/answer/internal/service/tag_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/obj" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/activity/answer_activity_service.go b/internal/service/activity/answer_activity_service.go index 221a20403..169e7eb39 100644 --- a/internal/service/activity/answer_activity_service.go +++ b/internal/service/activity/answer_activity_service.go @@ -21,9 +21,9 @@ package activity import ( "context" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_type" - "github.com/apache/incubator-answer/internal/service/config" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_type" + "github.com/apache/answer/internal/service/config" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/activity/review_active.go b/internal/service/activity/review_active.go index 0f0a9c240..48ad5035c 100644 --- a/internal/service/activity/review_active.go +++ b/internal/service/activity/review_active.go @@ -22,7 +22,7 @@ package activity import ( "context" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" ) // ReviewActivityRepo interface diff --git a/internal/service/activity_common/activity.go b/internal/service/activity_common/activity.go index 6b3557c0d..b01e56032 100644 --- a/internal/service/activity_common/activity.go +++ b/internal/service/activity_common/activity.go @@ -23,11 +23,11 @@ import ( "context" "time" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_queue" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_queue" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/log" "xorm.io/xorm" ) diff --git a/internal/service/activity_queue/activity_queue.go b/internal/service/activity_queue/activity_queue.go index e5019e836..7b8c1e3b8 100644 --- a/internal/service/activity_queue/activity_queue.go +++ b/internal/service/activity_queue/activity_queue.go @@ -22,7 +22,7 @@ package activity_queue import ( "context" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/answer_common/answer.go b/internal/service/answer_common/answer.go index 45b11886a..d63bf8aad 100644 --- a/internal/service/answer_common/answer.go +++ b/internal/service/answer_common/answer.go @@ -22,11 +22,11 @@ package answercommon import ( "context" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/uid" ) type AnswerRepo interface { diff --git a/internal/service/auth/auth.go b/internal/service/auth/auth.go index afb63391a..9ee5f3ee0 100644 --- a/internal/service/auth/auth.go +++ b/internal/service/auth/auth.go @@ -22,9 +22,9 @@ package auth import ( "context" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/plugin" ) // AuthRepo auth repository diff --git a/internal/service/badge/badge_award_service.go b/internal/service/badge/badge_award_service.go index feb95a657..3196b9cde 100644 --- a/internal/service/badge/badge_award_service.go +++ b/internal/service/badge/badge_award_service.go @@ -21,16 +21,16 @@ package badge import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/object_info" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/object_info" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" diff --git a/internal/service/badge/badge_event_handler.go b/internal/service/badge/badge_event_handler.go index 8a92f08b6..219822947 100644 --- a/internal/service/badge/badge_event_handler.go +++ b/internal/service/badge/badge_event_handler.go @@ -21,10 +21,10 @@ package badge import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/event_queue" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/event_queue" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/badge/badge_group_service.go b/internal/service/badge/badge_group_service.go index 16dd74ee4..e0dab6e89 100644 --- a/internal/service/badge/badge_group_service.go +++ b/internal/service/badge/badge_group_service.go @@ -21,7 +21,7 @@ package badge import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" ) type BadgeGroupRepo interface { diff --git a/internal/service/badge/badge_service.go b/internal/service/badge/badge_service.go index 0ab538a3b..7bc9ffe21 100644 --- a/internal/service/badge/badge_service.go +++ b/internal/service/badge/badge_service.go @@ -21,14 +21,14 @@ package badge import ( "context" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/uid" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/collection/collection_group_service.go b/internal/service/collection/collection_group_service.go index 3f6f3db13..244d84caa 100644 --- a/internal/service/collection/collection_group_service.go +++ b/internal/service/collection/collection_group_service.go @@ -22,9 +22,9 @@ package collection import ( "context" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/service/collection/collection_service.go b/internal/service/collection/collection_service.go index 1820ac523..6f02ccf9a 100644 --- a/internal/service/collection/collection_service.go +++ b/internal/service/collection/collection_service.go @@ -22,10 +22,10 @@ package collection import ( "context" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - collectioncommon "github.com/apache/incubator-answer/internal/service/collection_common" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + collectioncommon "github.com/apache/answer/internal/service/collection_common" + questioncommon "github.com/apache/answer/internal/service/question_common" ) // CollectionService user service diff --git a/internal/service/collection_common/collection.go b/internal/service/collection_common/collection.go index daf856ec2..1d8f05d05 100644 --- a/internal/service/collection_common/collection.go +++ b/internal/service/collection_common/collection.go @@ -22,7 +22,7 @@ package collectioncommon import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" ) // CollectionRepo collection repository diff --git a/internal/service/comment/comment_service.go b/internal/service/comment/comment_service.go index 012149e73..ba9bbe1d3 100644 --- a/internal/service/comment/comment_service.go +++ b/internal/service/comment/comment_service.go @@ -21,25 +21,25 @@ package comment import ( "context" - "github.com/apache/incubator-answer/internal/service/event_queue" + "github.com/apache/answer/internal/service/event_queue" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/activity_queue" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/object_info" - "github.com/apache/incubator-answer/internal/service/permission" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_queue" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/object_info" + "github.com/apache/answer/internal/service/permission" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/pkg/uid" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/comment_common/comment_service.go b/internal/service/comment_common/comment_service.go index 3554a358b..0b6423a42 100644 --- a/internal/service/comment_common/comment_service.go +++ b/internal/service/comment_common/comment_service.go @@ -22,9 +22,9 @@ package comment_common import ( "context" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/service/config/config_service.go b/internal/service/config/config_service.go index cff27f2be..63aea221f 100644 --- a/internal/service/config/config_service.go +++ b/internal/service/config/config_service.go @@ -24,7 +24,7 @@ import ( "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" ) // ConfigRepo config repository diff --git a/internal/service/content/answer_service.go b/internal/service/content/answer_service.go index d4983c3cf..b9d45b522 100644 --- a/internal/service/content/answer_service.go +++ b/internal/service/content/answer_service.go @@ -24,29 +24,29 @@ import ( "encoding/json" "time" - "github.com/apache/incubator-answer/internal/service/event_queue" - - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/activity_queue" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - collectioncommon "github.com/apache/incubator-answer/internal/service/collection_common" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/permission" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/internal/service/revision_common" - "github.com/apache/incubator-answer/internal/service/role" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/service/event_queue" + + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_queue" + answercommon "github.com/apache/answer/internal/service/answer_common" + collectioncommon "github.com/apache/answer/internal/service/collection_common" + "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/permission" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/internal/service/revision_common" + "github.com/apache/answer/internal/service/role" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/content/question_hottest_service.go b/internal/service/content/question_hottest_service.go index 6a37d3b34..a33b155fb 100644 --- a/internal/service/content/question_hottest_service.go +++ b/internal/service/content/question_hottest_service.go @@ -21,8 +21,8 @@ package content import ( "context" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/log" "math" "time" diff --git a/internal/service/content/question_service.go b/internal/service/content/question_service.go index 145f7da1b..8ddda5971 100644 --- a/internal/service/content/question_service.go +++ b/internal/service/content/question_service.go @@ -25,40 +25,40 @@ import ( "strings" "time" - "github.com/apache/incubator-answer/internal/service/event_queue" - - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/activity_queue" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - collectioncommon "github.com/apache/incubator-answer/internal/service/collection_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/export" - metacommon "github.com/apache/incubator-answer/internal/service/meta_common" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/notification" - "github.com/apache/incubator-answer/internal/service/permission" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/internal/service/revision_common" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/internal/service/tag" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/pkg/uid" + "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/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_queue" + answercommon "github.com/apache/answer/internal/service/answer_common" + collectioncommon "github.com/apache/answer/internal/service/collection_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/export" + metacommon "github.com/apache/answer/internal/service/meta_common" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/notification" + "github.com/apache/answer/internal/service/permission" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/internal/service/revision_common" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/tag" + tagcommon "github.com/apache/answer/internal/service/tag_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/pkg/uid" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/content/revision_service.go b/internal/service/content/revision_service.go index b69a05684..effc012ba 100644 --- a/internal/service/content/revision_service.go +++ b/internal/service/content/revision_service.go @@ -24,29 +24,29 @@ import ( "encoding/json" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_queue" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/object_info" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/report_common" - "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/internal/service/revision" - "github.com/apache/incubator-answer/internal/service/tag_common" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/obj" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/activity_queue" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/object_info" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/report_common" + "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/internal/service/revision" + "github.com/apache/answer/internal/service/tag_common" + tagcommon "github.com/apache/answer/internal/service/tag_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/obj" + "github.com/apache/answer/pkg/uid" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/content/search_service.go b/internal/service/content/search_service.go index 42d7c521b..98add0938 100644 --- a/internal/service/content/search_service.go +++ b/internal/service/content/search_service.go @@ -22,10 +22,10 @@ package content import ( "context" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/search_common" - "github.com/apache/incubator-answer/internal/service/search_parser" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/search_common" + "github.com/apache/answer/internal/service/search_parser" + "github.com/apache/answer/plugin" ) type SearchService struct { diff --git a/internal/service/content/user_service.go b/internal/service/content/user_service.go index e4d3f2362..b59790c11 100644 --- a/internal/service/content/user_service.go +++ b/internal/service/content/user_service.go @@ -23,30 +23,30 @@ import ( "context" "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/service/event_queue" - "github.com/apache/incubator-answer/pkg/token" + "github.com/apache/answer/internal/service/event_queue" + "github.com/apache/answer/pkg/token" "time" - "github.com/apache/incubator-answer/internal/base/constant" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/user_notification_config" - - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/auth" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/internal/service/user_external_login" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/user_notification_config" + + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/auth" + "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/siteinfo_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/internal/service/user_external_login" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "golang.org/x/crypto/bcrypt" diff --git a/internal/service/content/vote_service.go b/internal/service/content/vote_service.go index b4b92ddd4..ff3ee5974 100644 --- a/internal/service/content/vote_service.go +++ b/internal/service/content/vote_service.go @@ -22,27 +22,27 @@ package content import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/service/event_queue" + "github.com/apache/answer/internal/service/event_queue" "strings" - "github.com/apache/incubator-answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/activity_type" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/object_info" - "github.com/apache/incubator-answer/pkg/htmltext" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/activity_type" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/object_info" + "github.com/apache/answer/pkg/htmltext" "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/schema" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/schema" + answercommon "github.com/apache/answer/internal/service/answer_common" + questioncommon "github.com/apache/answer/internal/service/question_common" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/service/dashboard/dashboard_service.go b/internal/service/dashboard/dashboard_service.go index ebc9a79d5..00c9d7c87 100644 --- a/internal/service/dashboard/dashboard_service.go +++ b/internal/service/dashboard/dashboard_service.go @@ -28,25 +28,25 @@ import ( "net/url" "time" - "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/internal/service/revision" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/internal/service/revision" + "github.com/apache/answer/pkg/converter" "xorm.io/xorm/schemas" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/export" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/report_common" - "github.com/apache/incubator-answer/internal/service/service_config" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/dir" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_common" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/export" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/report_common" + "github.com/apache/answer/internal/service/service_config" + "github.com/apache/answer/internal/service/siteinfo_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/dir" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/event_queue/event_queue.go b/internal/service/event_queue/event_queue.go index b89a3ccc4..77dc302b5 100644 --- a/internal/service/event_queue/event_queue.go +++ b/internal/service/event_queue/event_queue.go @@ -22,7 +22,7 @@ package event_queue import ( "context" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/export/email_service.go b/internal/service/export/email_service.go index 1ed1b7848..b00ee093b 100644 --- a/internal/service/export/email_service.go +++ b/internal/service/export/email_service.go @@ -23,19 +23,19 @@ import ( "crypto/tls" "encoding/json" "fmt" - "github.com/apache/incubator-answer/pkg/display" + "github.com/apache/answer/pkg/display" "mime" "os" "strings" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/siteinfo_common" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "golang.org/x/net/context" diff --git a/internal/service/follow/follow_service.go b/internal/service/follow/follow_service.go index eecf3555f..743b0da67 100644 --- a/internal/service/follow/follow_service.go +++ b/internal/service/follow/follow_service.go @@ -22,10 +22,10 @@ package follow import ( "context" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_common" + tagcommon "github.com/apache/answer/internal/service/tag_common" ) type FollowRepo interface { diff --git a/internal/service/importer/importer_service.go b/internal/service/importer/importer_service.go index 2b53f7e37..45aabf39b 100644 --- a/internal/service/importer/importer_service.go +++ b/internal/service/importer/importer_service.go @@ -23,16 +23,16 @@ import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/rank" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/rank" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/plugin" "github.com/gin-gonic/gin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/meta/meta_service.go b/internal/service/meta/meta_service.go index b85aecf6d..9e4f07410 100644 --- a/internal/service/meta/meta_service.go +++ b/internal/service/meta/meta_service.go @@ -23,21 +23,21 @@ import ( "context" "encoding/json" "errors" - "github.com/apache/incubator-answer/internal/service/event_queue" + "github.com/apache/answer/internal/service/event_queue" "strconv" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - metacommon "github.com/apache/incubator-answer/internal/service/meta_common" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/obj" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + answercommon "github.com/apache/answer/internal/service/answer_common" + metacommon "github.com/apache/answer/internal/service/meta_common" + questioncommon "github.com/apache/answer/internal/service/question_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/obj" myErrors "github.com/segmentfault/pacman/errors" ) diff --git a/internal/service/meta_common/meta_common_service.go b/internal/service/meta_common/meta_common_service.go index 08065d54b..4da04fb1d 100644 --- a/internal/service/meta_common/meta_common_service.go +++ b/internal/service/meta_common/meta_common_service.go @@ -22,8 +22,8 @@ package metacommon import ( "context" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" myErrors "github.com/segmentfault/pacman/errors" ) diff --git a/internal/service/mock/siteinfo_repo_mock.go b/internal/service/mock/siteinfo_repo_mock.go index 42be1067d..1b8412780 100644 --- a/internal/service/mock/siteinfo_repo_mock.go +++ b/internal/service/mock/siteinfo_repo_mock.go @@ -32,8 +32,8 @@ import ( context "context" reflect "reflect" - entity "github.com/apache/incubator-answer/internal/entity" - schema "github.com/apache/incubator-answer/internal/schema" + entity "github.com/apache/answer/internal/entity" + schema "github.com/apache/answer/internal/schema" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/service/notice_queue/external_notification_queue.go b/internal/service/notice_queue/external_notification_queue.go index 32cabdac4..6322a77ec 100644 --- a/internal/service/notice_queue/external_notification_queue.go +++ b/internal/service/notice_queue/external_notification_queue.go @@ -22,7 +22,7 @@ package notice_queue import ( "context" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/notice_queue/notice_queue.go b/internal/service/notice_queue/notice_queue.go index c97e56b1a..22b733e32 100644 --- a/internal/service/notice_queue/notice_queue.go +++ b/internal/service/notice_queue/notice_queue.go @@ -22,7 +22,7 @@ package notice_queue import ( "context" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/notification/external_notification.go b/internal/service/notification/external_notification.go index 1db83f0b6..2a0fdd813 100644 --- a/internal/service/notification/external_notification.go +++ b/internal/service/notification/external_notification.go @@ -22,16 +22,16 @@ package notification import ( "context" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/internal/service/user_external_login" - "github.com/apache/incubator-answer/internal/service/user_notification_config" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/siteinfo_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/internal/service/user_external_login" + "github.com/apache/answer/internal/service/user_notification_config" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/notification/invite_answer_notification.go b/internal/service/notification/invite_answer_notification.go index 503caa51f..0a72ae980 100644 --- a/internal/service/notification/invite_answer_notification.go +++ b/internal/service/notification/invite_answer_notification.go @@ -21,8 +21,8 @@ package notification import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/i18n" "github.com/segmentfault/pacman/log" "time" diff --git a/internal/service/notification/new_answer_notification.go b/internal/service/notification/new_answer_notification.go index 1e08b455f..8a842bef9 100644 --- a/internal/service/notification/new_answer_notification.go +++ b/internal/service/notification/new_answer_notification.go @@ -21,8 +21,8 @@ package notification import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/i18n" "github.com/segmentfault/pacman/log" "time" diff --git a/internal/service/notification/new_comment_notification.go b/internal/service/notification/new_comment_notification.go index 5e2dce7b6..c02a008b2 100644 --- a/internal/service/notification/new_comment_notification.go +++ b/internal/service/notification/new_comment_notification.go @@ -21,8 +21,8 @@ package notification import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/schema" "github.com/segmentfault/pacman/i18n" "github.com/segmentfault/pacman/log" "time" diff --git a/internal/service/notification/new_question_notification.go b/internal/service/notification/new_question_notification.go index 08a774884..fd98b7f97 100644 --- a/internal/service/notification/new_question_notification.go +++ b/internal/service/notification/new_question_notification.go @@ -24,12 +24,12 @@ import ( "strings" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/pkg/display" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/pkg/display" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/plugin" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/i18n" "github.com/segmentfault/pacman/log" diff --git a/internal/service/notification/notification_service.go b/internal/service/notification/notification_service.go index 0860c894f..598212aa1 100644 --- a/internal/service/notification/notification_service.go +++ b/internal/service/notification/notification_service.go @@ -23,21 +23,21 @@ import ( "context" "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/badge" - notficationcommon "github.com/apache/incubator-answer/internal/service/notification_common" - "github.com/apache/incubator-answer/internal/service/report_common" - "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/internal/service/revision_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/badge" + notficationcommon "github.com/apache/answer/internal/service/notification_common" + "github.com/apache/answer/internal/service/report_common" + "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/internal/service/revision_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/uid" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/notification_common/notification.go b/internal/service/notification_common/notification.go index 9d08e2582..c2d8fc50c 100644 --- a/internal/service/notification_common/notification.go +++ b/internal/service/notification_common/notification.go @@ -24,22 +24,22 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/internal/service/user_external_login" - "github.com/apache/incubator-answer/pkg/display" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/user_external_login" + "github.com/apache/answer/pkg/display" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/object_info" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "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/schema" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/object_info" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/plugin" "github.com/goccy/go-json" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" diff --git a/internal/service/object_info/object_info.go b/internal/service/object_info/object_info.go index 9a85f07e8..76b1d86d8 100644 --- a/internal/service/object_info/object_info.go +++ b/internal/service/object_info/object_info.go @@ -21,15 +21,15 @@ package object_info import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/schema" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/comment_common" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/obj" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/schema" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/comment_common" + questioncommon "github.com/apache/answer/internal/service/question_common" + tagcommon "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/obj" "github.com/segmentfault/pacman/errors" ) diff --git a/internal/service/permission/answer_permission.go b/internal/service/permission/answer_permission.go index 14af7abc8..4eb563a5a 100644 --- a/internal/service/permission/answer_permission.go +++ b/internal/service/permission/answer_permission.go @@ -21,11 +21,11 @@ package permission import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" ) // GetAnswerPermission get answer permission diff --git a/internal/service/permission/comment_permission.go b/internal/service/permission/comment_permission.go index aef32792d..5a82cf38d 100644 --- a/internal/service/permission/comment_permission.go +++ b/internal/service/permission/comment_permission.go @@ -23,10 +23,10 @@ import ( "context" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" ) // GetCommentPermission get comment permission diff --git a/internal/service/permission/question_permission.go b/internal/service/permission/question_permission.go index b93cdfc1d..b6750beae 100644 --- a/internal/service/permission/question_permission.go +++ b/internal/service/permission/question_permission.go @@ -21,11 +21,11 @@ package permission import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" ) // GetQuestionPermission get question permission diff --git a/internal/service/permission/tag_permission.go b/internal/service/permission/tag_permission.go index 2b87275dd..531610332 100644 --- a/internal/service/permission/tag_permission.go +++ b/internal/service/permission/tag_permission.go @@ -21,11 +21,11 @@ package permission import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/schema" ) // GetTagPermission get tag permission diff --git a/internal/service/plugin_common/plugin_common_service.go b/internal/service/plugin_common/plugin_common_service.go index ea6701bd9..185347b72 100644 --- a/internal/service/plugin_common/plugin_common_service.go +++ b/internal/service/plugin_common/plugin_common_service.go @@ -23,19 +23,19 @@ import ( "context" "encoding/json" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/repo/search_sync" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/repo/search_sync" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/importer" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/importer" + "github.com/apache/answer/plugin" ) type PluginConfigRepo interface { diff --git a/internal/service/provider.go b/internal/service/provider.go index 9d523b498..840732359 100644 --- a/internal/service/provider.go +++ b/internal/service/provider.go @@ -20,49 +20,49 @@ package service import ( - "github.com/apache/incubator-answer/internal/service/action" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/activity_queue" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/auth" - "github.com/apache/incubator-answer/internal/service/badge" - "github.com/apache/incubator-answer/internal/service/collection" - collectioncommon "github.com/apache/incubator-answer/internal/service/collection_common" - "github.com/apache/incubator-answer/internal/service/comment" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/internal/service/dashboard" - "github.com/apache/incubator-answer/internal/service/event_queue" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/follow" - "github.com/apache/incubator-answer/internal/service/importer" - "github.com/apache/incubator-answer/internal/service/meta" - "github.com/apache/incubator-answer/internal/service/meta_common" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/notification" - notficationcommon "github.com/apache/incubator-answer/internal/service/notification_common" - "github.com/apache/incubator-answer/internal/service/object_info" - "github.com/apache/incubator-answer/internal/service/plugin_common" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/rank" - "github.com/apache/incubator-answer/internal/service/reason" - "github.com/apache/incubator-answer/internal/service/report" - "github.com/apache/incubator-answer/internal/service/report_handle" - "github.com/apache/incubator-answer/internal/service/review" - "github.com/apache/incubator-answer/internal/service/revision_common" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/search_parser" - "github.com/apache/incubator-answer/internal/service/siteinfo" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/internal/service/tag" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/internal/service/uploader" - "github.com/apache/incubator-answer/internal/service/user_admin" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/internal/service/user_external_login" - "github.com/apache/incubator-answer/internal/service/user_notification_config" + "github.com/apache/answer/internal/service/action" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_queue" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/auth" + "github.com/apache/answer/internal/service/badge" + "github.com/apache/answer/internal/service/collection" + collectioncommon "github.com/apache/answer/internal/service/collection_common" + "github.com/apache/answer/internal/service/comment" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/internal/service/dashboard" + "github.com/apache/answer/internal/service/event_queue" + "github.com/apache/answer/internal/service/export" + "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" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/notification" + notficationcommon "github.com/apache/answer/internal/service/notification_common" + "github.com/apache/answer/internal/service/object_info" + "github.com/apache/answer/internal/service/plugin_common" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/rank" + "github.com/apache/answer/internal/service/reason" + "github.com/apache/answer/internal/service/report" + "github.com/apache/answer/internal/service/report_handle" + "github.com/apache/answer/internal/service/review" + "github.com/apache/answer/internal/service/revision_common" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/search_parser" + "github.com/apache/answer/internal/service/siteinfo" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/tag" + tagcommon "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/internal/service/uploader" + "github.com/apache/answer/internal/service/user_admin" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/internal/service/user_external_login" + "github.com/apache/answer/internal/service/user_notification_config" "github.com/google/wire" ) diff --git a/internal/service/question_common/question.go b/internal/service/question_common/question.go index fc01159ec..3b3595c47 100644 --- a/internal/service/question_common/question.go +++ b/internal/service/question_common/question.go @@ -23,31 +23,31 @@ import ( "context" "encoding/json" "fmt" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" + "github.com/apache/answer/internal/service/siteinfo_common" "math" "strings" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/data" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/activity_queue" - "github.com/apache/incubator-answer/internal/service/config" - metacommon "github.com/apache/incubator-answer/internal/service/meta_common" - "github.com/apache/incubator-answer/internal/service/revision" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/data" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/activity_queue" + "github.com/apache/answer/internal/service/config" + metacommon "github.com/apache/answer/internal/service/meta_common" + "github.com/apache/answer/internal/service/revision" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/errors" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - collectioncommon "github.com/apache/incubator-answer/internal/service/collection_common" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + answercommon "github.com/apache/answer/internal/service/answer_common" + collectioncommon "github.com/apache/answer/internal/service/collection_common" + tagcommon "github.com/apache/answer/internal/service/tag_common" + usercommon "github.com/apache/answer/internal/service/user_common" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/rank/rank_service.go b/internal/service/rank/rank_service.go index 2b4462a62..6651091a1 100644 --- a/internal/service/rank/rank_service.go +++ b/internal/service/rank/rank_service.go @@ -22,22 +22,22 @@ package rank import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_type" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/object_info" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/internal/service/role" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_type" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/object_info" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/internal/service/role" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" "xorm.io/xorm" diff --git a/internal/service/reason/reason_service.go b/internal/service/reason/reason_service.go index c6c31c4cb..35245c340 100644 --- a/internal/service/reason/reason_service.go +++ b/internal/service/reason/reason_service.go @@ -22,8 +22,8 @@ package reason import ( "context" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/reason_common" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/reason_common" ) type ReasonService struct { diff --git a/internal/service/reason_common/reason.go b/internal/service/reason_common/reason.go index ca1bf73df..18d929053 100644 --- a/internal/service/reason_common/reason.go +++ b/internal/service/reason_common/reason.go @@ -22,7 +22,7 @@ package reason_common import ( "context" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/schema" ) type ReasonRepo interface { diff --git a/internal/service/report/report_service.go b/internal/service/report/report_service.go index 2ca44855f..7dcc1d689 100644 --- a/internal/service/report/report_service.go +++ b/internal/service/report/report_service.go @@ -21,25 +21,25 @@ package report import ( "encoding/json" - "github.com/apache/incubator-answer/internal/service/event_queue" - - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/object_info" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/report_common" - "github.com/apache/incubator-answer/internal/service/report_handle" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/obj" + "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/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/object_info" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/report_common" + "github.com/apache/answer/internal/service/report_handle" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/obj" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/report_common/report_common.go b/internal/service/report_common/report_common.go index 4b504630f..64fcb838a 100644 --- a/internal/service/report_common/report_common.go +++ b/internal/service/report_common/report_common.go @@ -22,8 +22,8 @@ package report_common import ( "context" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" ) // ReportRepo report repository diff --git a/internal/service/report_handle/report_handle.go b/internal/service/report_handle/report_handle.go index df6cff68b..27cffb111 100644 --- a/internal/service/report_handle/report_handle.go +++ b/internal/service/report_handle/report_handle.go @@ -22,13 +22,13 @@ package report_handle import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/comment" - "github.com/apache/incubator-answer/internal/service/content" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/obj" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/comment" + "github.com/apache/answer/internal/service/content" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/obj" ) type ReportHandle struct { diff --git a/internal/service/review/review_service.go b/internal/service/review/review_service.go index dadf58ab2..7f934f236 100644 --- a/internal/service/review/review_service.go +++ b/internal/service/review/review_service.go @@ -22,23 +22,23 @@ package review import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/notice_queue" - "github.com/apache/incubator-answer/internal/service/object_info" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/notice_queue" + "github.com/apache/answer/internal/service/object_info" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/siteinfo_common" + tagcommon "github.com/apache/answer/internal/service/tag_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/plugin" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/revision/revision.go b/internal/service/revision/revision.go index 6844054b9..584272200 100644 --- a/internal/service/revision/revision.go +++ b/internal/service/revision/revision.go @@ -22,7 +22,7 @@ package revision import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" "xorm.io/xorm" ) diff --git a/internal/service/revision_common/revision_service.go b/internal/service/revision_common/revision_service.go index ba73f797f..7275916e1 100644 --- a/internal/service/revision_common/revision_service.go +++ b/internal/service/revision_common/revision_service.go @@ -22,15 +22,15 @@ package revision_common import ( "context" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/service/revision" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/service/revision" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/uid" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "github.com/jinzhu/copier" ) diff --git a/internal/service/role/power_service.go b/internal/service/role/power_service.go index 86f0e260c..f8289963f 100644 --- a/internal/service/role/power_service.go +++ b/internal/service/role/power_service.go @@ -22,7 +22,7 @@ package role import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" ) // PowerRepo power repository diff --git a/internal/service/role/role_service.go b/internal/service/role/role_service.go index f0271312d..96e8f6d75 100644 --- a/internal/service/role/role_service.go +++ b/internal/service/role/role_service.go @@ -22,10 +22,10 @@ package role import ( "context" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" "github.com/jinzhu/copier" ) diff --git a/internal/service/role/user_role_rel_service.go b/internal/service/role/user_role_rel_service.go index f89f3a4fa..d80863f45 100644 --- a/internal/service/role/user_role_rel_service.go +++ b/internal/service/role/user_role_rel_service.go @@ -22,7 +22,7 @@ package role import ( "context" - "github.com/apache/incubator-answer/internal/entity" + "github.com/apache/answer/internal/entity" ) // UserRoleRelRepo userRoleRel repository diff --git a/internal/service/search_common/search.go b/internal/service/search_common/search.go index ba6f6295b..d26320c5d 100644 --- a/internal/service/search_common/search.go +++ b/internal/service/search_common/search.go @@ -22,8 +22,8 @@ package search_common import ( "context" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/plugin" ) type SearchRepo interface { diff --git a/internal/service/search_parser/search_parser.go b/internal/service/search_parser/search_parser.go index 6485e1629..e87efaf6f 100644 --- a/internal/service/search_parser/search_parser.go +++ b/internal/service/search_parser/search_parser.go @@ -22,14 +22,14 @@ package search_parser import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" "regexp" "strings" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/tag_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/tag_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/converter" ) type SearchParser struct { diff --git a/internal/service/siteinfo/siteinfo_service.go b/internal/service/siteinfo/siteinfo_service.go index 5b5b12084..5141faeee 100644 --- a/internal/service/siteinfo/siteinfo_service.go +++ b/internal/service/siteinfo/siteinfo_service.go @@ -25,18 +25,18 @@ import ( "fmt" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/config" - "github.com/apache/incubator-answer/internal/service/export" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - tagcommon "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/config" + "github.com/apache/answer/internal/service/export" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/internal/service/siteinfo_common" + tagcommon "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/plugin" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/siteinfo_common/siteinfo_service.go b/internal/service/siteinfo_common/siteinfo_service.go index 01585876f..f715bc9b0 100644 --- a/internal/service/siteinfo_common/siteinfo_service.go +++ b/internal/service/siteinfo_common/siteinfo_service.go @@ -24,10 +24,10 @@ import ( "encoding/json" "html" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/pkg/gravatar" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/pkg/gravatar" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/siteinfo_common/siteinfo_service_test.go b/internal/service/siteinfo_common/siteinfo_service_test.go index 387e1e2f0..3a567dcb9 100644 --- a/internal/service/siteinfo_common/siteinfo_service_test.go +++ b/internal/service/siteinfo_common/siteinfo_service_test.go @@ -23,9 +23,9 @@ import ( "context" "testing" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/service/mock" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/service/mock" "github.com/stretchr/testify/assert" "go.uber.org/mock/gomock" ) diff --git a/internal/service/tag/tag_service.go b/internal/service/tag/tag_service.go index e5fcf597a..5d626ae28 100644 --- a/internal/service/tag/tag_service.go +++ b/internal/service/tag/tag_service.go @@ -24,21 +24,21 @@ import ( "encoding/json" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/service/activity_queue" - "github.com/apache/incubator-answer/internal/service/revision_common" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - tagcommonser "github.com/apache/incubator-answer/internal/service/tag_common" - "github.com/apache/incubator-answer/pkg/htmltext" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/service/activity_queue" + "github.com/apache/answer/internal/service/revision_common" + "github.com/apache/answer/internal/service/siteinfo_common" + tagcommonser "github.com/apache/answer/internal/service/tag_common" + "github.com/apache/answer/pkg/htmltext" "github.com/jinzhu/copier" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_common" - "github.com/apache/incubator-answer/internal/service/permission" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_common" + "github.com/apache/answer/internal/service/permission" + "github.com/apache/answer/pkg/converter" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/tag_common/tag_common.go b/internal/service/tag_common/tag_common.go index ec11fe450..e5c136c34 100644 --- a/internal/service/tag_common/tag_common.go +++ b/internal/service/tag_common/tag_common.go @@ -26,15 +26,15 @@ import ( "sort" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/validator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity_queue" - "github.com/apache/incubator-answer/internal/service/revision_common" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/validator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity_queue" + "github.com/apache/answer/internal/service/revision_common" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/converter" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/uploader/upload.go b/internal/service/uploader/upload.go index 8530d17ff..4b018cb4c 100644 --- a/internal/service/uploader/upload.go +++ b/internal/service/uploader/upload.go @@ -31,14 +31,14 @@ import ( "path/filepath" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/service/service_config" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/dir" - "github.com/apache/incubator-answer/pkg/uid" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/service/service_config" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/dir" + "github.com/apache/answer/pkg/uid" + "github.com/apache/answer/plugin" "github.com/disintegration/imaging" "github.com/gin-gonic/gin" exifremove "github.com/scottleedavis/go-exif-remove" diff --git a/internal/service/user_admin/user_backyard.go b/internal/service/user_admin/user_backyard.go index ebe1ea741..a414ec4e4 100644 --- a/internal/service/user_admin/user_backyard.go +++ b/internal/service/user_admin/user_backyard.go @@ -22,31 +22,31 @@ package user_admin import ( "context" "fmt" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/base/validator" - answercommon "github.com/apache/incubator-answer/internal/service/answer_common" - "github.com/apache/incubator-answer/internal/service/comment_common" - "github.com/apache/incubator-answer/internal/service/export" - questioncommon "github.com/apache/incubator-answer/internal/service/question_common" - "github.com/apache/incubator-answer/pkg/token" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/base/validator" + answercommon "github.com/apache/answer/internal/service/answer_common" + "github.com/apache/answer/internal/service/comment_common" + "github.com/apache/answer/internal/service/export" + questioncommon "github.com/apache/answer/internal/service/question_common" + "github.com/apache/answer/pkg/token" "net/mail" "strings" "time" "unicode" - "github.com/apache/incubator-answer/internal/base/pager" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/auth" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/internal/service/user_external_login" - "github.com/apache/incubator-answer/pkg/checker" + "github.com/apache/answer/internal/base/pager" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/auth" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/siteinfo_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/internal/service/user_external_login" + "github.com/apache/answer/pkg/checker" "github.com/jinzhu/copier" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/user_common/user.go b/internal/service/user_common/user.go index 7980044e1..707f8b9b7 100644 --- a/internal/service/user_common/user.go +++ b/internal/service/user_common/user.go @@ -23,17 +23,17 @@ import ( "context" "strings" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/pkg/converter" - - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/auth" - "github.com/apache/incubator-answer/internal/service/role" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/random" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/pkg/converter" + + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/auth" + "github.com/apache/answer/internal/service/role" + "github.com/apache/answer/internal/service/siteinfo_common" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/random" "github.com/mozillazg/go-pinyin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" diff --git a/internal/service/user_external_login/user_center_login_service.go b/internal/service/user_external_login/user_center_login_service.go index 5ff47bce4..90895ac4a 100644 --- a/internal/service/user_external_login/user_center_login_service.go +++ b/internal/service/user_external_login/user_center_login_service.go @@ -24,19 +24,19 @@ import ( "encoding/json" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/converter" - "github.com/apache/incubator-answer/pkg/random" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/siteinfo_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/converter" + "github.com/apache/answer/pkg/random" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/user_external_login/user_external_login_service.go b/internal/service/user_external_login/user_external_login_service.go index 9107fcc0a..3f82179b7 100644 --- a/internal/service/user_external_login/user_external_login_service.go +++ b/internal/service/user_external_login/user_external_login_service.go @@ -25,21 +25,21 @@ import ( "fmt" "time" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/internal/base/translator" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - "github.com/apache/incubator-answer/internal/service/activity" - "github.com/apache/incubator-answer/internal/service/export" - "github.com/apache/incubator-answer/internal/service/siteinfo_common" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" - "github.com/apache/incubator-answer/internal/service/user_notification_config" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/random" - "github.com/apache/incubator-answer/pkg/token" - "github.com/apache/incubator-answer/plugin" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/internal/base/translator" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + "github.com/apache/answer/internal/service/activity" + "github.com/apache/answer/internal/service/export" + "github.com/apache/answer/internal/service/siteinfo_common" + usercommon "github.com/apache/answer/internal/service/user_common" + "github.com/apache/answer/internal/service/user_notification_config" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/random" + "github.com/apache/answer/pkg/token" + "github.com/apache/answer/plugin" "github.com/segmentfault/pacman/errors" "github.com/segmentfault/pacman/log" ) diff --git a/internal/service/user_notification_config/user_notification_config_service.go b/internal/service/user_notification_config/user_notification_config_service.go index cc6bc1b1f..7c54df0aa 100644 --- a/internal/service/user_notification_config/user_notification_config_service.go +++ b/internal/service/user_notification_config/user_notification_config_service.go @@ -21,10 +21,10 @@ package user_notification_config import ( "context" - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/entity" - "github.com/apache/incubator-answer/internal/schema" - usercommon "github.com/apache/incubator-answer/internal/service/user_common" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/entity" + "github.com/apache/answer/internal/schema" + usercommon "github.com/apache/answer/internal/service/user_common" ) type UserNotificationConfigRepo interface { diff --git a/pkg/checker/path_ignore.go b/pkg/checker/path_ignore.go index 5a307ae43..8be757be5 100644 --- a/pkg/checker/path_ignore.go +++ b/pkg/checker/path_ignore.go @@ -22,7 +22,7 @@ package checker import ( "sync" - "github.com/apache/incubator-answer/configs" + "github.com/apache/answer/configs" "github.com/segmentfault/pacman/log" "gopkg.in/yaml.v3" ) diff --git a/pkg/checker/question_link.go b/pkg/checker/question_link.go index 36f850d65..41b246c36 100644 --- a/pkg/checker/question_link.go +++ b/pkg/checker/question_link.go @@ -20,9 +20,9 @@ package checker import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/pkg/obj" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/pkg/obj" + "github.com/apache/answer/pkg/uid" ) const ( diff --git a/pkg/checker/question_link_test.go b/pkg/checker/question_link_test.go index bc4eb615c..d3ff0625c 100644 --- a/pkg/checker/question_link_test.go +++ b/pkg/checker/question_link_test.go @@ -22,7 +22,7 @@ package checker_test import ( "testing" - "github.com/apache/incubator-answer/pkg/checker" + "github.com/apache/answer/pkg/checker" "github.com/stretchr/testify/assert" ) diff --git a/pkg/checker/reserved_username.go b/pkg/checker/reserved_username.go index db0bde937..6dfd34710 100644 --- a/pkg/checker/reserved_username.go +++ b/pkg/checker/reserved_username.go @@ -25,9 +25,9 @@ import ( "path/filepath" "sync" - "github.com/apache/incubator-answer/configs" - "github.com/apache/incubator-answer/internal/cli" - "github.com/apache/incubator-answer/pkg/dir" + "github.com/apache/answer/configs" + "github.com/apache/answer/internal/cli" + "github.com/apache/answer/pkg/dir" ) var ( diff --git a/pkg/display/url.go b/pkg/display/url.go index 8f42f2f55..11574f0a5 100644 --- a/pkg/display/url.go +++ b/pkg/display/url.go @@ -20,9 +20,9 @@ package display import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/pkg/htmltext" - "github.com/apache/incubator-answer/pkg/uid" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/pkg/htmltext" + "github.com/apache/answer/pkg/uid" ) // QuestionURL get question url diff --git a/pkg/gravatar/gravatar_test.go b/pkg/gravatar/gravatar_test.go index cedbb1a3a..bf504e68f 100644 --- a/pkg/gravatar/gravatar_test.go +++ b/pkg/gravatar/gravatar_test.go @@ -20,7 +20,7 @@ package gravatar import ( - "github.com/apache/incubator-answer/internal/base/constant" + "github.com/apache/answer/internal/base/constant" "testing" "github.com/stretchr/testify/assert" diff --git a/pkg/htmltext/htmltext.go b/pkg/htmltext/htmltext.go index 77ca2fbab..49049109d 100644 --- a/pkg/htmltext/htmltext.go +++ b/pkg/htmltext/htmltext.go @@ -28,8 +28,8 @@ import ( "unicode/utf8" "github.com/Machiel/slugify" - "github.com/apache/incubator-answer/pkg/checker" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/pkg/checker" + "github.com/apache/answer/pkg/converter" strip "github.com/grokify/html-strip-tags-go" "github.com/mozillazg/go-pinyin" ) diff --git a/pkg/obj/obj.go b/pkg/obj/obj.go index 1172b52bb..0dc628191 100644 --- a/pkg/obj/obj.go +++ b/pkg/obj/obj.go @@ -20,9 +20,9 @@ package obj import ( - "github.com/apache/incubator-answer/internal/base/constant" - "github.com/apache/incubator-answer/internal/base/reason" - "github.com/apache/incubator-answer/pkg/converter" + "github.com/apache/answer/internal/base/constant" + "github.com/apache/answer/internal/base/reason" + "github.com/apache/answer/pkg/converter" "github.com/segmentfault/pacman/errors" ) diff --git a/plugin/plugin.go b/plugin/plugin.go index 2e4bf749b..36087c547 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -25,8 +25,8 @@ import ( "github.com/segmentfault/pacman/i18n" - "github.com/apache/incubator-answer/internal/base/handler" - "github.com/apache/incubator-answer/internal/base/translator" + "github.com/apache/answer/internal/base/handler" + "github.com/apache/answer/internal/base/translator" "github.com/gin-gonic/gin" ) diff --git a/script/plugin_list b/script/plugin_list index 67ba306f7..8a7676276 100644 --- a/script/plugin_list +++ b/script/plugin_list @@ -1,3 +1,3 @@ -github.com/apache/incubator-answer-plugins/connector-basic@latest -github.com/apache/incubator-answer-plugins/reviewer-basic@latest -github.com/apache/incubator-answer-plugins/captcha-basic@latest \ No newline at end of file +github.com/apache/answer-plugins/connector-basic@latest +github.com/apache/answer-plugins/reviewer-basic@latest +github.com/apache/answer-plugins/captcha-basic@latest \ No newline at end of file diff --git a/ui/public/index.html b/ui/public/index.html index 813deb542..5bca47e40 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -24,7 +24,7 @@ - + diff --git a/ui/src/components/PageTags/index.tsx b/ui/src/components/PageTags/index.tsx index eb8a4e106..ec578a649 100644 --- a/ui/src/components/PageTags/index.tsx +++ b/ui/src/components/PageTags/index.tsx @@ -42,7 +42,7 @@ const Index: FC = () => { if (generatorMetaNode) { generatorMetaNode.setAttribute( 'content', - `Answer ${appVersion} - https://github.com/apache/incubator-answer version ${hashVersion}`, + `Answer ${appVersion} - https://github.com/apache/answer version ${hashVersion}`, ); } }; diff --git a/ui/src/pages/Admin/Dashboard/components/AnswerLinks/index.tsx b/ui/src/pages/Admin/Dashboard/components/AnswerLinks/index.tsx index b7fd6512c..666b25e7d 100644 --- a/ui/src/pages/Admin/Dashboard/components/AnswerLinks/index.tsx +++ b/ui/src/pages/Admin/Dashboard/components/AnswerLinks/index.tsx @@ -67,7 +67,7 @@ const AnswerLinks = () => { {t('github')} diff --git a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx index c19cddbd5..c7f6f6d33 100644 --- a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx +++ b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx @@ -53,7 +53,7 @@ const HealthStatus: FC = ({ data }) => { {t('latest')} @@ -62,7 +62,7 @@ const HealthStatus: FC = ({ data }) => { {t('update_to')} {remote_version} @@ -71,7 +71,7 @@ const HealthStatus: FC = ({ data }) => { {t('check_failed')} diff --git a/ui/src/pages/Admin/Plugins/Installed/index.tsx b/ui/src/pages/Admin/Plugins/Installed/index.tsx index 868b827ae..f03828d96 100644 --- a/ui/src/pages/Admin/Plugins/Installed/index.tsx +++ b/ui/src/pages/Admin/Plugins/Installed/index.tsx @@ -85,7 +85,7 @@ const Users: FC = () => { Plugins extend and expand the functionality. You may find plugins in the Plugin Repository diff --git a/ui/src/plugins/builtin/ThirdPartyConnector/info.yaml b/ui/src/plugins/builtin/ThirdPartyConnector/info.yaml index 1e9b6fa95..37a42b4ff 100644 --- a/ui/src/plugins/builtin/ThirdPartyConnector/info.yaml +++ b/ui/src/plugins/builtin/ThirdPartyConnector/info.yaml @@ -18,6 +18,6 @@ slug_name: third_party_connector type: connector version: 0.0.1 -link: https://github.com/apache/incubator-answer-plugins/tree/main/connector-basic +link: https://github.com/apache/answer-plugins/tree/main/connector-basic author: Answer diff --git a/ui/template/header.html b/ui/template/header.html index 5c4977d9f..e3f635093 100644 --- a/ui/template/header.html +++ b/ui/template/header.html @@ -27,7 +27,7 @@ - + {{if .keywords }}{{end}} {{if .noindex }}{{end}}