refactor(module): simplify module name to Wavelet and standardize import paths

- Declared module Wavelet in backend/go.mod
- Replaced github.com/Rain-kl/Wavelet/ with clean Wavelet/ import paths across backend codebase
- Updated architecture guards, Makefile, swagger, and build tests
- 100% passed all tests, lint checks, and binary compilation
This commit is contained in:
ryan
2026-08-28 13:10:30 +08:00
parent f2ab94501c
commit 9f8890d159
201 changed files with 539 additions and 620 deletions
+3 -3
View File
@@ -12,10 +12,10 @@ import (
"strconv"
"time"
database "github.com/Rain-kl/Wavelet/plugins/infra/database"
database "Wavelet/plugins/infra/database"
"github.com/Rain-kl/Wavelet/core/contracts"
"github.com/Rain-kl/Wavelet/pkg/response"
"Wavelet/core/contracts"
"Wavelet/pkg/response"
"github.com/gin-contrib/sessions"
"github.com/gin-gonic/gin"
)
+1 -2
View File
@@ -1,4 +1,3 @@
// Copyright 2025 linux.do
// Copyright 2026 Arctel.net
// SPDX-License-Identifier: Apache-2.0
@@ -10,7 +9,7 @@ import (
"strings"
"time"
"github.com/Rain-kl/Wavelet/pkg/util"
"Wavelet/pkg/util"
)
// AccessToken 个人访问令牌实体
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"context"
"embed"
"github.com/Rain-kl/Wavelet/core"
"github.com/Rain-kl/Wavelet/core/contracts"
"github.com/Rain-kl/Wavelet/core/extpoints"
"Wavelet/core"
"Wavelet/core/contracts"
"Wavelet/core/extpoints"
"github.com/gin-gonic/gin"
"github.com/hibiken/asynq"
)
+4 -4
View File
@@ -13,10 +13,10 @@ import (
"github.com/stretchr/testify/require"
"gorm.io/gorm"
"github.com/Rain-kl/Wavelet/core"
"github.com/Rain-kl/Wavelet/core/contracts"
"github.com/Rain-kl/Wavelet/plugins/domain/user"
database "github.com/Rain-kl/Wavelet/plugins/infra/database"
"Wavelet/core"
"Wavelet/core/contracts"
"Wavelet/plugins/domain/user"
database "Wavelet/plugins/infra/database"
)
func setupTestDB(t *testing.T) *gorm.DB {
+2 -3
View File
@@ -1,4 +1,3 @@
// Copyright 2025 linux.do
// Copyright 2026 Arctel.net
// SPDX-License-Identifier: Apache-2.0
@@ -9,8 +8,8 @@ import (
"strings"
"github.com/Rain-kl/Wavelet/pkg/util"
database "github.com/Rain-kl/Wavelet/plugins/infra/database"
"Wavelet/pkg/util"
database "Wavelet/plugins/infra/database"
"gorm.io/gorm"
)
+4 -4
View File
@@ -11,11 +11,11 @@ import (
"strings"
"time"
"github.com/Rain-kl/Wavelet/core/contracts"
"github.com/Rain-kl/Wavelet/pkg/idgen"
database "github.com/Rain-kl/Wavelet/plugins/infra/database"
"Wavelet/core/contracts"
"Wavelet/pkg/idgen"
database "Wavelet/plugins/infra/database"
pkgu "github.com/Rain-kl/Wavelet/pkg/util"
pkgu "Wavelet/pkg/util"
)
func toUserDTO(u *User) *contracts.UserDTO {