diff --git a/data/model/author.go b/internal/data/model/author.go similarity index 100% rename from data/model/author.go rename to internal/data/model/author.go diff --git a/data/model/book.go b/internal/data/model/book.go similarity index 100% rename from data/model/book.go rename to internal/data/model/book.go diff --git a/data/repository/author_repository.go b/internal/data/repository/author_repository.go similarity index 83% rename from data/repository/author_repository.go rename to internal/data/repository/author_repository.go index a0e6ebf..430cd32 100644 --- a/data/repository/author_repository.go +++ b/internal/data/repository/author_repository.go @@ -1,7 +1,7 @@ package repository import ( - "github.com/Neur0toxine/demo-web-service-go/data/model" + "github.com/Neur0toxine/demo-web-service-go/internal/data/model" "github.com/brianvoe/gofakeit/v6" ) diff --git a/data/repository/book_repository.go b/internal/data/repository/book_repository.go similarity index 84% rename from data/repository/book_repository.go rename to internal/data/repository/book_repository.go index 8dd73b4..7ce53cf 100644 --- a/data/repository/book_repository.go +++ b/internal/data/repository/book_repository.go @@ -4,7 +4,7 @@ import ( "math/rand" "time" - "github.com/Neur0toxine/demo-web-service-go/data/model" + "github.com/Neur0toxine/demo-web-service-go/internal/data/model" "github.com/brianvoe/gofakeit/v6" ) diff --git a/internal/handlers.go b/internal/handlers.go index 682b8f1..5a53bca 100644 --- a/internal/handlers.go +++ b/internal/handlers.go @@ -3,7 +3,7 @@ package internal import ( "net/http" - "github.com/Neur0toxine/demo-web-service-go/data/repository" + "github.com/Neur0toxine/demo-web-service-go/internal/data/repository" "github.com/gin-gonic/gin" ) diff --git a/internal/handlers_test.go b/internal/handlers_test.go index a322658..46fa924 100644 --- a/internal/handlers_test.go +++ b/internal/handlers_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "github.com/Neur0toxine/demo-web-service-go/data/model" + "github.com/Neur0toxine/demo-web-service-go/internal/data/model" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" )