diff --git a/client/comment/comment.go b/client/comment/comment.go index 834107a..8b42bf8 100644 --- a/client/comment/comment.go +++ b/client/comment/comment.go @@ -7,7 +7,7 @@ package comment import ( "context" - "app-cloudep-comment-server/gen_result/pb/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/gen_result/pb/comment" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" diff --git a/comment.go b/comment.go index 15dbe1e..4bce404 100644 --- a/comment.go +++ b/comment.go @@ -5,10 +5,10 @@ import ( "github.com/zeromicro/go-zero/core/logx" - "app-cloudep-comment-server/gen_result/pb/comment" - "app-cloudep-comment-server/internal/config" - commentServer "app-cloudep-comment-server/internal/server/comment" - "app-cloudep-comment-server/internal/svc" + "code.30cm.net/digimon/app-cloudep-comment-server/gen_result/pb/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/internal/config" + commentServer "code.30cm.net/digimon/app-cloudep-comment-server/internal/server/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/internal/svc" "github.com/zeromicro/go-zero/core/conf" "github.com/zeromicro/go-zero/core/service" diff --git a/go.mod b/go.mod index 078f568..71024a8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module app-cloudep-comment-server +module code.30cm.net/digimon/app-cloudep-comment-server go 1.23.4 diff --git a/internal/logic/comment/empty_logic.go b/internal/logic/comment/empty_logic.go index 176a319..5535daf 100644 --- a/internal/logic/comment/empty_logic.go +++ b/internal/logic/comment/empty_logic.go @@ -3,8 +3,8 @@ package commentlogic import ( "context" - "app-cloudep-comment-server/gen_result/pb/comment" - "app-cloudep-comment-server/internal/svc" + "code.30cm.net/digimon/app-cloudep-comment-server/gen_result/pb/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/internal/svc" "github.com/zeromicro/go-zero/core/logx" ) diff --git a/internal/server/comment/comment_server.go b/internal/server/comment/comment_server.go index eeb8b45..958cceb 100644 --- a/internal/server/comment/comment_server.go +++ b/internal/server/comment/comment_server.go @@ -7,9 +7,9 @@ package server import ( "context" - "app-cloudep-comment-server/gen_result/pb/comment" - commentlogic "app-cloudep-comment-server/internal/logic/comment" - "app-cloudep-comment-server/internal/svc" + "code.30cm.net/digimon/app-cloudep-comment-server/gen_result/pb/comment" + commentlogic "code.30cm.net/digimon/app-cloudep-comment-server/internal/logic/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/internal/svc" ) type CommentServer struct { diff --git a/internal/svc/service_context.go b/internal/svc/service_context.go index 10f7b78..81f6700 100644 --- a/internal/svc/service_context.go +++ b/internal/svc/service_context.go @@ -1,6 +1,6 @@ package svc -import "app-cloudep-comment-server/internal/config" +import "code.30cm.net/digimon/app-cloudep-comment-server/internal/config" type ServiceContext struct { Config config.Config diff --git a/pkg/domain/entity/comment.go b/pkg/domain/entity/comment.go index a47b5eb..ebb761e 100644 --- a/pkg/domain/entity/comment.go +++ b/pkg/domain/entity/comment.go @@ -1,7 +1,7 @@ package entity import ( - "app-cloudep-comment-server/pkg/domain/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/comment" "go.mongodb.org/mongo-driver/bson/primitive" ) diff --git a/pkg/domain/repository/comment.go b/pkg/domain/repository/comment.go index 971e224..9258d3f 100644 --- a/pkg/domain/repository/comment.go +++ b/pkg/domain/repository/comment.go @@ -1,9 +1,10 @@ package repository import ( - "app-cloudep-comment-server/pkg/domain/comment" - "app-cloudep-comment-server/pkg/domain/entity" "context" + + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/entity" ) type CommentRepository interface { diff --git a/pkg/mock/repository/comment.go b/pkg/mock/repository/comment.go index 34af9c0..a347bee 100644 --- a/pkg/mock/repository/comment.go +++ b/pkg/mock/repository/comment.go @@ -10,8 +10,8 @@ package mock import ( - entity "app-cloudep-comment-server/pkg/domain/entity" - repository "app-cloudep-comment-server/pkg/domain/repository" + entity "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/entity" + repository "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/repository" context "context" reflect "reflect" diff --git a/pkg/repository/comment.go b/pkg/repository/comment.go index 3b7ab7d..3789b4b 100644 --- a/pkg/repository/comment.go +++ b/pkg/repository/comment.go @@ -1,13 +1,14 @@ package repository import ( - "app-cloudep-comment-server/pkg/domain" - "app-cloudep-comment-server/pkg/domain/entity" - "app-cloudep-comment-server/pkg/domain/repository" "context" "errors" "time" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/entity" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/repository" + mgo "code.30cm.net/digimon/library-go/mongo" "github.com/zeromicro/go-zero/core/stores/cache" "github.com/zeromicro/go-zero/core/stores/mon" diff --git a/pkg/repository/comment_test.go b/pkg/repository/comment_test.go index 2a69bea..f9519ed 100644 --- a/pkg/repository/comment_test.go +++ b/pkg/repository/comment_test.go @@ -1,13 +1,14 @@ package repository import ( - "app-cloudep-comment-server/pkg/domain/entity" - "app-cloudep-comment-server/pkg/domain/repository" "context" "fmt" "testing" "time" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/entity" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/repository" + mgo "code.30cm.net/digimon/library-go/mongo" "github.com/alicebob/miniredis/v2" "github.com/stretchr/testify/assert" diff --git a/pkg/usecase/comment.go b/pkg/usecase/comment.go index 3899d5e..ccbdae9 100644 --- a/pkg/usecase/comment.go +++ b/pkg/usecase/comment.go @@ -1,15 +1,16 @@ package usecase import ( - "app-cloudep-comment-server/pkg/domain" - "app-cloudep-comment-server/pkg/domain/comment" - "app-cloudep-comment-server/pkg/domain/entity" - "app-cloudep-comment-server/pkg/domain/repository" - "app-cloudep-comment-server/pkg/domain/usecase" "context" "encoding/base64" "fmt" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/entity" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/repository" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/usecase" + "github.com/golang/snappy" "github.com/zeromicro/go-zero/core/logx" diff --git a/pkg/usecase/comment_test.go b/pkg/usecase/comment_test.go index 1d9cf59..44344c0 100644 --- a/pkg/usecase/comment_test.go +++ b/pkg/usecase/comment_test.go @@ -1,23 +1,24 @@ package usecase import ( - "app-cloudep-comment-server/pkg/domain/comment" - "app-cloudep-comment-server/pkg/domain/entity" - "app-cloudep-comment-server/pkg/domain/repository" - "app-cloudep-comment-server/pkg/domain/usecase" "context" "encoding/base64" "errors" "testing" "time" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/comment" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/entity" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/repository" + "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/usecase" + "github.com/golang/snappy" "github.com/stretchr/testify/assert" "go.mongodb.org/mongo-driver/bson/primitive" "go.uber.org/mock/gomock" - mockRepo "app-cloudep-comment-server/pkg/mock/repository" - err "app-cloudep-comment-server/pkg/repository" + mockRepo "code.30cm.net/digimon/app-cloudep-comment-server/pkg/mock/repository" + err "code.30cm.net/digimon/app-cloudep-comment-server/pkg/repository" ) func TestCommentUseCase_CreateCommentItem(t *testing.T) {