From 06ad377fe6cbf1bfe6731c51ff494f23c3fc24b5 Mon Sep 17 00:00:00 2001 From: Ryuji Eguchi Date: Sun, 14 Sep 2025 08:51:09 +1000 Subject: [PATCH 1/2] rename repo to go-arch-patterns --- README.md | 2 +- docs/installation_guide.md | 6 +++--- docs/software_architecture.md | 2 +- go.mod | 2 +- internal/domain/model/factory/company.go | 4 ++-- internal/domain/model/factory/individual.go | 6 +++--- internal/domain/model/factory/renter.go | 4 ++-- internal/domain/model/factory/tenant.go | 4 ++-- internal/domain/model/individual.go | 2 +- internal/domain/model/individual_test.go | 2 +- internal/domain/model/renter_test.go | 4 ++-- internal/domain/repository/car.go | 2 +- internal/domain/repository/company.go | 2 +- internal/domain/repository/mock/car.go | 2 +- internal/domain/repository/mock/company.go | 2 +- internal/domain/repository/mock/renter.go | 2 +- internal/domain/repository/mock/tenant.go | 2 +- internal/domain/repository/renter.go | 2 +- internal/domain/repository/tenant.go | 2 +- internal/infrastructure/postgres/client.go | 2 +- .../infrastructure/postgres/dbmodel/car.go | 2 +- .../infrastructure/postgres/dbmodel/company.go | 2 +- .../postgres/dbmodel/individual.go | 4 ++-- .../infrastructure/postgres/dbmodel/option.go | 2 +- .../infrastructure/postgres/dbmodel/rental.go | 2 +- .../postgres/dbmodel/rental_option.go | 2 +- .../infrastructure/postgres/dbmodel/renter.go | 2 +- .../infrastructure/postgres/dbmodel/tenant.go | 2 +- internal/infrastructure/postgres/entgen/car.go | 4 ++-- .../postgres/entgen/car/where.go | 2 +- .../postgres/entgen/car_create.go | 6 +++--- .../postgres/entgen/car_delete.go | 4 ++-- .../postgres/entgen/car_query.go | 8 ++++---- .../postgres/entgen/car_update.go | 8 ++++---- .../postgres/entgen/caroption.go | 4 ++-- .../postgres/entgen/caroption/where.go | 2 +- .../postgres/entgen/caroption_create.go | 6 +++--- .../postgres/entgen/caroption_delete.go | 4 ++-- .../postgres/entgen/caroption_query.go | 8 ++++---- .../postgres/entgen/caroption_update.go | 8 ++++---- .../infrastructure/postgres/entgen/client.go | 18 +++++++++--------- .../infrastructure/postgres/entgen/company.go | 6 +++--- .../postgres/entgen/company/where.go | 2 +- .../postgres/entgen/company_create.go | 6 +++--- .../postgres/entgen/company_delete.go | 4 ++-- .../postgres/entgen/company_query.go | 8 ++++---- .../postgres/entgen/company_update.go | 8 ++++---- internal/infrastructure/postgres/entgen/ent.go | 16 ++++++++-------- .../postgres/entgen/enttest/enttest.go | 6 +++--- .../postgres/entgen/hook/hook.go | 2 +- .../postgres/entgen/individual.go | 6 +++--- .../postgres/entgen/individual/where.go | 2 +- .../postgres/entgen/individual_create.go | 6 +++--- .../postgres/entgen/individual_delete.go | 4 ++-- .../postgres/entgen/individual_query.go | 8 ++++---- .../postgres/entgen/individual_update.go | 8 ++++---- .../infrastructure/postgres/entgen/mutation.go | 18 +++++++++--------- .../infrastructure/postgres/entgen/rental.go | 8 ++++---- .../postgres/entgen/rental/where.go | 2 +- .../postgres/entgen/rental_create.go | 10 +++++----- .../postgres/entgen/rental_delete.go | 4 ++-- .../postgres/entgen/rental_query.go | 12 ++++++------ .../postgres/entgen/rental_update.go | 12 ++++++------ .../postgres/entgen/rentaloption.go | 8 ++++---- .../postgres/entgen/rentaloption/where.go | 2 +- .../postgres/entgen/rentaloption_create.go | 8 ++++---- .../postgres/entgen/rentaloption_delete.go | 4 ++-- .../postgres/entgen/rentaloption_query.go | 10 +++++----- .../postgres/entgen/rentaloption_update.go | 10 +++++----- .../infrastructure/postgres/entgen/renter.go | 8 ++++---- .../postgres/entgen/renter/where.go | 2 +- .../postgres/entgen/renter_create.go | 10 +++++----- .../postgres/entgen/renter_delete.go | 4 ++-- .../postgres/entgen/renter_query.go | 12 ++++++------ .../postgres/entgen/renter_update.go | 12 ++++++------ .../infrastructure/postgres/entgen/runtime.go | 18 +++++++++--------- .../postgres/entgen/runtime/runtime.go | 2 +- .../infrastructure/postgres/entgen/tenant.go | 2 +- .../postgres/entgen/tenant/where.go | 2 +- .../postgres/entgen/tenant_create.go | 16 ++++++++-------- .../postgres/entgen/tenant_delete.go | 4 ++-- .../postgres/entgen/tenant_query.go | 18 +++++++++--------- .../postgres/entgen/tenant_update.go | 18 +++++++++--------- .../infrastructure/postgres/migrate/main.go | 2 +- .../postgres/repository/car_repository.go | 10 +++++----- .../postgres/repository/car_repository_test.go | 8 ++++---- .../postgres/repository/company_repository.go | 10 +++++----- .../repository/company_repository_test.go | 8 ++++---- .../postgres/repository/main_test.go | 2 +- .../postgres/repository/renter_repository.go | 10 +++++----- .../postgres/repository/tenant_repository.go | 10 +++++----- .../postgres/repository/testutil/factory.go | 4 ++-- .../postgres/repository/testutil/testutil.go | 4 ++-- internal/infrastructure/usecase/car.go | 4 ++-- internal/infrastructure/usecase/car_impl.go | 6 +++--- .../infrastructure/usecase/car_impl_test.go | 8 ++++---- internal/infrastructure/usecase/mock/car.go | 4 ++-- 97 files changed, 287 insertions(+), 287 deletions(-) diff --git a/README.md b/README.md index 49ca0da..965c9c5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# go-ddd +# go-arch-patterns This repository showcases the Ports and Adapters architectural pattern (also known as Hexagonal Architecture) and Domain-Driven Design (DDD) methodology, with a focus on fundamental concepts such as value objects. For more details about the software architecture, see [Software Architecture](docs/software_architecture.md). diff --git a/docs/installation_guide.md b/docs/installation_guide.md index 6f1bc57..0e7fb4f 100644 --- a/docs/installation_guide.md +++ b/docs/installation_guide.md @@ -3,8 +3,8 @@ ## Clone the repository ```bash -git clone https://github.com/jp-ryuji/go-ddd.git -cd go-ddd +git clone https://github.com/jp-ryuji/go-arch-patterns.git +cd go-arch-patterns ``` ## Set up environment variables with direnv @@ -97,7 +97,7 @@ docker compose down You can access the PostgreSQL database using the following command: ```bash -PGPASSWORD=$POSTGRES_PASSWORD docker exec -it go-ddd-postgres-1 psql -U $POSTGRES_USERNAME -d $POSTGRES_DBNAME +PGPASSWORD=$POSTGRES_PASSWORD docker exec -it go-arch-patterns-postgres-1 psql -U $POSTGRES_USERNAME -d $POSTGRES_DBNAME ``` This command uses the environment variables loaded by direnv to connect to the database. diff --git a/docs/software_architecture.md b/docs/software_architecture.md index 7f3b052..d6541b0 100644 --- a/docs/software_architecture.md +++ b/docs/software_architecture.md @@ -50,7 +50,7 @@ Structure: ## Go `internal` Directory -The `internal` directory is a special directory in Go that restricts access to its contents. Only code within the same module (in this case, `go-ddd`) can import packages from `internal` directories. This prevents other projects from importing and depending on our internal implementation details, which helps maintain a clean public API and allows us to change internal implementations without breaking external dependencies. +The `internal` directory is a special directory in Go that restricts access to its contents. Only code within the same module (in this case, `go-arch-patterns`) can import packages from `internal` directories. This prevents other projects from importing and depending on our internal implementation details, which helps maintain a clean public API and allows us to change internal implementations without breaking external dependencies. In this project, all core business logic, domain models, use cases, and infrastructure implementations are placed under the `internal` directory to enforce this encapsulation and prevent accidental exposure of internal details as part of the public API. diff --git a/go.mod b/go.mod index 45328cd..22cc46c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/jp-ryuji/go-ddd +module github.com/jp-ryuji/go-arch-patterns go 1.25.0 diff --git a/internal/domain/model/factory/company.go b/internal/domain/model/factory/company.go index 2b41829..18894b0 100644 --- a/internal/domain/model/factory/company.go +++ b/internal/domain/model/factory/company.go @@ -3,8 +3,8 @@ package factory import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/pkg/id" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/pkg/id" ) // NewCompany creates a new Company for testing purposes diff --git a/internal/domain/model/factory/individual.go b/internal/domain/model/factory/individual.go index 9e03899..2e3ac07 100644 --- a/internal/domain/model/factory/individual.go +++ b/internal/domain/model/factory/individual.go @@ -4,9 +4,9 @@ import ( "time" "github.com/aarondl/null/v9" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/model/value" - "github.com/jp-ryuji/go-ddd/internal/pkg/id" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model/value" + "github.com/jp-ryuji/go-arch-patterns/internal/pkg/id" ) // NewIndividual creates a new Individual for testing purposes diff --git a/internal/domain/model/factory/renter.go b/internal/domain/model/factory/renter.go index 729fbcd..2178411 100644 --- a/internal/domain/model/factory/renter.go +++ b/internal/domain/model/factory/renter.go @@ -3,8 +3,8 @@ package factory import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/pkg/id" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/pkg/id" ) // NewRenter creates a new Renter for testing purposes diff --git a/internal/domain/model/factory/tenant.go b/internal/domain/model/factory/tenant.go index 572bef5..830e63b 100644 --- a/internal/domain/model/factory/tenant.go +++ b/internal/domain/model/factory/tenant.go @@ -3,8 +3,8 @@ package factory import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/pkg/id" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/pkg/id" ) // NewTenant creates a new Tenant for testing purposes diff --git a/internal/domain/model/individual.go b/internal/domain/model/individual.go index 9b9c1e9..2e7b2df 100644 --- a/internal/domain/model/individual.go +++ b/internal/domain/model/individual.go @@ -6,7 +6,7 @@ import ( "github.com/aarondl/null/v9" "github.com/oklog/ulid/v2" - "github.com/jp-ryuji/go-ddd/internal/domain/model/value" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model/value" ) // Individuals is a slice of Individual diff --git a/internal/domain/model/individual_test.go b/internal/domain/model/individual_test.go index 21cc307..dd2ffce 100644 --- a/internal/domain/model/individual_test.go +++ b/internal/domain/model/individual_test.go @@ -5,7 +5,7 @@ import ( "time" "github.com/aarondl/null/v9" - "github.com/jp-ryuji/go-ddd/internal/domain/model/value" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model/value" "github.com/stretchr/testify/require" ) diff --git a/internal/domain/model/renter_test.go b/internal/domain/model/renter_test.go index d40a164..f3e2cfa 100644 --- a/internal/domain/model/renter_test.go +++ b/internal/domain/model/renter_test.go @@ -3,8 +3,8 @@ package model_test import ( "testing" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/model/factory" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model/factory" ) // TestRenterCreation ensures that we can create renters diff --git a/internal/domain/repository/car.go b/internal/domain/repository/car.go index f708ebf..846a00f 100644 --- a/internal/domain/repository/car.go +++ b/internal/domain/repository/car.go @@ -3,7 +3,7 @@ package repository import ( "context" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) //go:generate go run go.uber.org/mock/mockgen -source=$GOFILE -destination=mock/$GOFILE -package=mock_repository diff --git a/internal/domain/repository/company.go b/internal/domain/repository/company.go index 990bb81..6a91674 100644 --- a/internal/domain/repository/company.go +++ b/internal/domain/repository/company.go @@ -3,7 +3,7 @@ package repository import ( "context" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) //go:generate go run go.uber.org/mock/mockgen -source=$GOFILE -destination=mock/$GOFILE -package=mock_repository diff --git a/internal/domain/repository/mock/car.go b/internal/domain/repository/mock/car.go index 8655c92..978365b 100644 --- a/internal/domain/repository/mock/car.go +++ b/internal/domain/repository/mock/car.go @@ -13,7 +13,7 @@ import ( context "context" reflect "reflect" - model "github.com/jp-ryuji/go-ddd/internal/domain/model" + model "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/domain/repository/mock/company.go b/internal/domain/repository/mock/company.go index edb0db4..ab78c95 100644 --- a/internal/domain/repository/mock/company.go +++ b/internal/domain/repository/mock/company.go @@ -13,7 +13,7 @@ import ( context "context" reflect "reflect" - model "github.com/jp-ryuji/go-ddd/internal/domain/model" + model "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/domain/repository/mock/renter.go b/internal/domain/repository/mock/renter.go index 74068d4..db76cfb 100644 --- a/internal/domain/repository/mock/renter.go +++ b/internal/domain/repository/mock/renter.go @@ -13,7 +13,7 @@ import ( context "context" reflect "reflect" - model "github.com/jp-ryuji/go-ddd/internal/domain/model" + model "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/domain/repository/mock/tenant.go b/internal/domain/repository/mock/tenant.go index 9deec11..b431485 100644 --- a/internal/domain/repository/mock/tenant.go +++ b/internal/domain/repository/mock/tenant.go @@ -13,7 +13,7 @@ import ( context "context" reflect "reflect" - model "github.com/jp-ryuji/go-ddd/internal/domain/model" + model "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/domain/repository/renter.go b/internal/domain/repository/renter.go index 43818df..ad92082 100644 --- a/internal/domain/repository/renter.go +++ b/internal/domain/repository/renter.go @@ -3,7 +3,7 @@ package repository import ( "context" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) //go:generate go run go.uber.org/mock/mockgen -source=$GOFILE -destination=mock/$GOFILE -package=mock_repository diff --git a/internal/domain/repository/tenant.go b/internal/domain/repository/tenant.go index 8c1621f..30fc7a1 100644 --- a/internal/domain/repository/tenant.go +++ b/internal/domain/repository/tenant.go @@ -3,7 +3,7 @@ package repository import ( "context" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) //go:generate go run go.uber.org/mock/mockgen -source=$GOFILE -destination=mock/$GOFILE -package=mock_repository diff --git a/internal/infrastructure/postgres/client.go b/internal/infrastructure/postgres/client.go index 1b080e5..9ec5617 100644 --- a/internal/infrastructure/postgres/client.go +++ b/internal/infrastructure/postgres/client.go @@ -11,7 +11,7 @@ import ( "entgo.io/ent/dialect" entsql "entgo.io/ent/dialect/sql" _ "github.com/jackc/pgx/v5/stdlib" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" ) // Connection pool settings with defaults diff --git a/internal/infrastructure/postgres/dbmodel/car.go b/internal/infrastructure/postgres/dbmodel/car.go index 231a892..a66d8e3 100644 --- a/internal/infrastructure/postgres/dbmodel/car.go +++ b/internal/infrastructure/postgres/dbmodel/car.go @@ -3,7 +3,7 @@ package dbmodel import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) // Car represents the database model for Car diff --git a/internal/infrastructure/postgres/dbmodel/company.go b/internal/infrastructure/postgres/dbmodel/company.go index 1c447d6..a8cf12d 100644 --- a/internal/infrastructure/postgres/dbmodel/company.go +++ b/internal/infrastructure/postgres/dbmodel/company.go @@ -3,7 +3,7 @@ package dbmodel import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) // Company represents the database model for Company diff --git a/internal/infrastructure/postgres/dbmodel/individual.go b/internal/infrastructure/postgres/dbmodel/individual.go index bd03179..c7bc420 100644 --- a/internal/infrastructure/postgres/dbmodel/individual.go +++ b/internal/infrastructure/postgres/dbmodel/individual.go @@ -4,8 +4,8 @@ import ( "time" "github.com/aarondl/null/v9" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/model/value" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model/value" ) // Individual represents the database model for Individual diff --git a/internal/infrastructure/postgres/dbmodel/option.go b/internal/infrastructure/postgres/dbmodel/option.go index f018a93..05b269d 100644 --- a/internal/infrastructure/postgres/dbmodel/option.go +++ b/internal/infrastructure/postgres/dbmodel/option.go @@ -3,7 +3,7 @@ package dbmodel import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) // Option represents the database model for Option diff --git a/internal/infrastructure/postgres/dbmodel/rental.go b/internal/infrastructure/postgres/dbmodel/rental.go index 4813424..2089a86 100644 --- a/internal/infrastructure/postgres/dbmodel/rental.go +++ b/internal/infrastructure/postgres/dbmodel/rental.go @@ -3,7 +3,7 @@ package dbmodel import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) // Rental represents the database model for Rental diff --git a/internal/infrastructure/postgres/dbmodel/rental_option.go b/internal/infrastructure/postgres/dbmodel/rental_option.go index d5ebc4f..4f7b1c2 100644 --- a/internal/infrastructure/postgres/dbmodel/rental_option.go +++ b/internal/infrastructure/postgres/dbmodel/rental_option.go @@ -3,7 +3,7 @@ package dbmodel import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) // RentalOption represents the database model for RentalOption diff --git a/internal/infrastructure/postgres/dbmodel/renter.go b/internal/infrastructure/postgres/dbmodel/renter.go index 5c2b046..def79f6 100644 --- a/internal/infrastructure/postgres/dbmodel/renter.go +++ b/internal/infrastructure/postgres/dbmodel/renter.go @@ -3,7 +3,7 @@ package dbmodel import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) // Renter represents the database model for Renter diff --git a/internal/infrastructure/postgres/dbmodel/tenant.go b/internal/infrastructure/postgres/dbmodel/tenant.go index 2717248..74b0617 100644 --- a/internal/infrastructure/postgres/dbmodel/tenant.go +++ b/internal/infrastructure/postgres/dbmodel/tenant.go @@ -3,7 +3,7 @@ package dbmodel import ( "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" ) // Tenant represents the database model for Tenant diff --git a/internal/infrastructure/postgres/entgen/car.go b/internal/infrastructure/postgres/entgen/car.go index b5eeda7..db27c5b 100644 --- a/internal/infrastructure/postgres/entgen/car.go +++ b/internal/infrastructure/postgres/entgen/car.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // Car is the model entity for the Car schema. diff --git a/internal/infrastructure/postgres/entgen/car/where.go b/internal/infrastructure/postgres/entgen/car/where.go index 7eabcf9..f009734 100644 --- a/internal/infrastructure/postgres/entgen/car/where.go +++ b/internal/infrastructure/postgres/entgen/car/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/car_create.go b/internal/infrastructure/postgres/entgen/car_create.go index 547d2b2..a3ea967 100644 --- a/internal/infrastructure/postgres/entgen/car_create.go +++ b/internal/infrastructure/postgres/entgen/car_create.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CarCreate is the builder for creating a Car entity. diff --git a/internal/infrastructure/postgres/entgen/car_delete.go b/internal/infrastructure/postgres/entgen/car_delete.go index 780d674..9ca8998 100644 --- a/internal/infrastructure/postgres/entgen/car_delete.go +++ b/internal/infrastructure/postgres/entgen/car_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // CarDelete is the builder for deleting a Car entity. diff --git a/internal/infrastructure/postgres/entgen/car_query.go b/internal/infrastructure/postgres/entgen/car_query.go index 00224a7..aa5d689 100644 --- a/internal/infrastructure/postgres/entgen/car_query.go +++ b/internal/infrastructure/postgres/entgen/car_query.go @@ -12,10 +12,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CarQuery is the builder for querying Car entities. diff --git a/internal/infrastructure/postgres/entgen/car_update.go b/internal/infrastructure/postgres/entgen/car_update.go index 8298bf0..c669a50 100644 --- a/internal/infrastructure/postgres/entgen/car_update.go +++ b/internal/infrastructure/postgres/entgen/car_update.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CarUpdate is the builder for updating Car entities. diff --git a/internal/infrastructure/postgres/entgen/caroption.go b/internal/infrastructure/postgres/entgen/caroption.go index ecd2e86..e46d6c9 100644 --- a/internal/infrastructure/postgres/entgen/caroption.go +++ b/internal/infrastructure/postgres/entgen/caroption.go @@ -9,8 +9,8 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CarOption is the model entity for the CarOption schema. diff --git a/internal/infrastructure/postgres/entgen/caroption/where.go b/internal/infrastructure/postgres/entgen/caroption/where.go index c93eaf9..7d881d1 100644 --- a/internal/infrastructure/postgres/entgen/caroption/where.go +++ b/internal/infrastructure/postgres/entgen/caroption/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/caroption_create.go b/internal/infrastructure/postgres/entgen/caroption_create.go index 8ae1909..6378511 100644 --- a/internal/infrastructure/postgres/entgen/caroption_create.go +++ b/internal/infrastructure/postgres/entgen/caroption_create.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CarOptionCreate is the builder for creating a CarOption entity. diff --git a/internal/infrastructure/postgres/entgen/caroption_delete.go b/internal/infrastructure/postgres/entgen/caroption_delete.go index 7385406..b5d6eb4 100644 --- a/internal/infrastructure/postgres/entgen/caroption_delete.go +++ b/internal/infrastructure/postgres/entgen/caroption_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // CarOptionDelete is the builder for deleting a CarOption entity. diff --git a/internal/infrastructure/postgres/entgen/caroption_query.go b/internal/infrastructure/postgres/entgen/caroption_query.go index 358bfb4..885bc23 100644 --- a/internal/infrastructure/postgres/entgen/caroption_query.go +++ b/internal/infrastructure/postgres/entgen/caroption_query.go @@ -12,10 +12,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CarOptionQuery is the builder for querying CarOption entities. diff --git a/internal/infrastructure/postgres/entgen/caroption_update.go b/internal/infrastructure/postgres/entgen/caroption_update.go index 922f849..30189d7 100644 --- a/internal/infrastructure/postgres/entgen/caroption_update.go +++ b/internal/infrastructure/postgres/entgen/caroption_update.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CarOptionUpdate is the builder for updating CarOption entities. diff --git a/internal/infrastructure/postgres/entgen/client.go b/internal/infrastructure/postgres/entgen/client.go index bfd6d08..0b09005 100644 --- a/internal/infrastructure/postgres/entgen/client.go +++ b/internal/infrastructure/postgres/entgen/client.go @@ -9,20 +9,20 @@ import ( "log" "reflect" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/migrate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/migrate" "entgo.io/ent" "entgo.io/ent/dialect" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // Client is the client that holds all ent builders. diff --git a/internal/infrastructure/postgres/entgen/company.go b/internal/infrastructure/postgres/entgen/company.go index e9898d5..158a09c 100644 --- a/internal/infrastructure/postgres/entgen/company.go +++ b/internal/infrastructure/postgres/entgen/company.go @@ -9,9 +9,9 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // Company is the model entity for the Company schema. diff --git a/internal/infrastructure/postgres/entgen/company/where.go b/internal/infrastructure/postgres/entgen/company/where.go index 7e5359e..42101a7 100644 --- a/internal/infrastructure/postgres/entgen/company/where.go +++ b/internal/infrastructure/postgres/entgen/company/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/company_create.go b/internal/infrastructure/postgres/entgen/company_create.go index f94d964..98a41ed 100644 --- a/internal/infrastructure/postgres/entgen/company_create.go +++ b/internal/infrastructure/postgres/entgen/company_create.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CompanyCreate is the builder for creating a Company entity. diff --git a/internal/infrastructure/postgres/entgen/company_delete.go b/internal/infrastructure/postgres/entgen/company_delete.go index 091c3e8..15bdca2 100644 --- a/internal/infrastructure/postgres/entgen/company_delete.go +++ b/internal/infrastructure/postgres/entgen/company_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // CompanyDelete is the builder for deleting a Company entity. diff --git a/internal/infrastructure/postgres/entgen/company_query.go b/internal/infrastructure/postgres/entgen/company_query.go index f46e05d..b452c01 100644 --- a/internal/infrastructure/postgres/entgen/company_query.go +++ b/internal/infrastructure/postgres/entgen/company_query.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CompanyQuery is the builder for querying Company entities. diff --git a/internal/infrastructure/postgres/entgen/company_update.go b/internal/infrastructure/postgres/entgen/company_update.go index d50e1d7..a623035 100644 --- a/internal/infrastructure/postgres/entgen/company_update.go +++ b/internal/infrastructure/postgres/entgen/company_update.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // CompanyUpdate is the builder for updating Company entities. diff --git a/internal/infrastructure/postgres/entgen/ent.go b/internal/infrastructure/postgres/entgen/ent.go index 83a5e0f..f15419f 100644 --- a/internal/infrastructure/postgres/entgen/ent.go +++ b/internal/infrastructure/postgres/entgen/ent.go @@ -12,14 +12,14 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // ent aliases to avoid import conflicts in user's code. diff --git a/internal/infrastructure/postgres/entgen/enttest/enttest.go b/internal/infrastructure/postgres/entgen/enttest/enttest.go index c63fa2c..ec29e25 100644 --- a/internal/infrastructure/postgres/entgen/enttest/enttest.go +++ b/internal/infrastructure/postgres/entgen/enttest/enttest.go @@ -5,12 +5,12 @@ package enttest import ( "context" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" // required by schema hooks. - _ "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/runtime" + _ "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/runtime" "entgo.io/ent/dialect/sql/schema" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/migrate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/migrate" ) type ( diff --git a/internal/infrastructure/postgres/entgen/hook/hook.go b/internal/infrastructure/postgres/entgen/hook/hook.go index 782b31e..9273512 100644 --- a/internal/infrastructure/postgres/entgen/hook/hook.go +++ b/internal/infrastructure/postgres/entgen/hook/hook.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" ) // The CarFunc type is an adapter to allow the use of ordinary diff --git a/internal/infrastructure/postgres/entgen/individual.go b/internal/infrastructure/postgres/entgen/individual.go index 43431d0..88f974b 100644 --- a/internal/infrastructure/postgres/entgen/individual.go +++ b/internal/infrastructure/postgres/entgen/individual.go @@ -9,9 +9,9 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // Individual is the model entity for the Individual schema. diff --git a/internal/infrastructure/postgres/entgen/individual/where.go b/internal/infrastructure/postgres/entgen/individual/where.go index 7e1cad2..5461461 100644 --- a/internal/infrastructure/postgres/entgen/individual/where.go +++ b/internal/infrastructure/postgres/entgen/individual/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/individual_create.go b/internal/infrastructure/postgres/entgen/individual_create.go index 9cb52f2..4a938b1 100644 --- a/internal/infrastructure/postgres/entgen/individual_create.go +++ b/internal/infrastructure/postgres/entgen/individual_create.go @@ -10,9 +10,9 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // IndividualCreate is the builder for creating a Individual entity. diff --git a/internal/infrastructure/postgres/entgen/individual_delete.go b/internal/infrastructure/postgres/entgen/individual_delete.go index 62524ed..3ce694a 100644 --- a/internal/infrastructure/postgres/entgen/individual_delete.go +++ b/internal/infrastructure/postgres/entgen/individual_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // IndividualDelete is the builder for deleting a Individual entity. diff --git a/internal/infrastructure/postgres/entgen/individual_query.go b/internal/infrastructure/postgres/entgen/individual_query.go index b3f1b92..1ffac66 100644 --- a/internal/infrastructure/postgres/entgen/individual_query.go +++ b/internal/infrastructure/postgres/entgen/individual_query.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // IndividualQuery is the builder for querying Individual entities. diff --git a/internal/infrastructure/postgres/entgen/individual_update.go b/internal/infrastructure/postgres/entgen/individual_update.go index e608f3a..b9eb6b5 100644 --- a/internal/infrastructure/postgres/entgen/individual_update.go +++ b/internal/infrastructure/postgres/entgen/individual_update.go @@ -11,10 +11,10 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // IndividualUpdate is the builder for updating Individual entities. diff --git a/internal/infrastructure/postgres/entgen/mutation.go b/internal/infrastructure/postgres/entgen/mutation.go index 8f8e1bc..608ee3a 100644 --- a/internal/infrastructure/postgres/entgen/mutation.go +++ b/internal/infrastructure/postgres/entgen/mutation.go @@ -11,15 +11,15 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) const ( diff --git a/internal/infrastructure/postgres/entgen/rental.go b/internal/infrastructure/postgres/entgen/rental.go index b883eea..afe621a 100644 --- a/internal/infrastructure/postgres/entgen/rental.go +++ b/internal/infrastructure/postgres/entgen/rental.go @@ -9,10 +9,10 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // Rental is the model entity for the Rental schema. diff --git a/internal/infrastructure/postgres/entgen/rental/where.go b/internal/infrastructure/postgres/entgen/rental/where.go index dcc37c8..1163f55 100644 --- a/internal/infrastructure/postgres/entgen/rental/where.go +++ b/internal/infrastructure/postgres/entgen/rental/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/rental_create.go b/internal/infrastructure/postgres/entgen/rental_create.go index 65feba6..6f23eea 100644 --- a/internal/infrastructure/postgres/entgen/rental_create.go +++ b/internal/infrastructure/postgres/entgen/rental_create.go @@ -10,11 +10,11 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RentalCreate is the builder for creating a Rental entity. diff --git a/internal/infrastructure/postgres/entgen/rental_delete.go b/internal/infrastructure/postgres/entgen/rental_delete.go index f9ee8c9..e0a3dbb 100644 --- a/internal/infrastructure/postgres/entgen/rental_delete.go +++ b/internal/infrastructure/postgres/entgen/rental_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" ) // RentalDelete is the builder for deleting a Rental entity. diff --git a/internal/infrastructure/postgres/entgen/rental_query.go b/internal/infrastructure/postgres/entgen/rental_query.go index 16230ae..65ed1df 100644 --- a/internal/infrastructure/postgres/entgen/rental_query.go +++ b/internal/infrastructure/postgres/entgen/rental_query.go @@ -12,12 +12,12 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RentalQuery is the builder for querying Rental entities. diff --git a/internal/infrastructure/postgres/entgen/rental_update.go b/internal/infrastructure/postgres/entgen/rental_update.go index 88fe3c8..57bf7e3 100644 --- a/internal/infrastructure/postgres/entgen/rental_update.go +++ b/internal/infrastructure/postgres/entgen/rental_update.go @@ -11,12 +11,12 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RentalUpdate is the builder for updating Rental entities. diff --git a/internal/infrastructure/postgres/entgen/rentaloption.go b/internal/infrastructure/postgres/entgen/rentaloption.go index 3a15bb0..2d0c37b 100644 --- a/internal/infrastructure/postgres/entgen/rentaloption.go +++ b/internal/infrastructure/postgres/entgen/rentaloption.go @@ -9,10 +9,10 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RentalOption is the model entity for the RentalOption schema. diff --git a/internal/infrastructure/postgres/entgen/rentaloption/where.go b/internal/infrastructure/postgres/entgen/rentaloption/where.go index 88eda2c..1849b8b 100644 --- a/internal/infrastructure/postgres/entgen/rentaloption/where.go +++ b/internal/infrastructure/postgres/entgen/rentaloption/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/rentaloption_create.go b/internal/infrastructure/postgres/entgen/rentaloption_create.go index a92f597..a8a0d1f 100644 --- a/internal/infrastructure/postgres/entgen/rentaloption_create.go +++ b/internal/infrastructure/postgres/entgen/rentaloption_create.go @@ -10,10 +10,10 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RentalOptionCreate is the builder for creating a RentalOption entity. diff --git a/internal/infrastructure/postgres/entgen/rentaloption_delete.go b/internal/infrastructure/postgres/entgen/rentaloption_delete.go index d954f2a..b3ffe6b 100644 --- a/internal/infrastructure/postgres/entgen/rentaloption_delete.go +++ b/internal/infrastructure/postgres/entgen/rentaloption_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" ) // RentalOptionDelete is the builder for deleting a RentalOption entity. diff --git a/internal/infrastructure/postgres/entgen/rentaloption_query.go b/internal/infrastructure/postgres/entgen/rentaloption_query.go index a6a83ce..c975812 100644 --- a/internal/infrastructure/postgres/entgen/rentaloption_query.go +++ b/internal/infrastructure/postgres/entgen/rentaloption_query.go @@ -11,11 +11,11 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RentalOptionQuery is the builder for querying RentalOption entities. diff --git a/internal/infrastructure/postgres/entgen/rentaloption_update.go b/internal/infrastructure/postgres/entgen/rentaloption_update.go index 690c8eb..12a2c7c 100644 --- a/internal/infrastructure/postgres/entgen/rentaloption_update.go +++ b/internal/infrastructure/postgres/entgen/rentaloption_update.go @@ -11,11 +11,11 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RentalOptionUpdate is the builder for updating RentalOption entities. diff --git a/internal/infrastructure/postgres/entgen/renter.go b/internal/infrastructure/postgres/entgen/renter.go index 6fa096c..375d3b9 100644 --- a/internal/infrastructure/postgres/entgen/renter.go +++ b/internal/infrastructure/postgres/entgen/renter.go @@ -9,10 +9,10 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // Renter is the model entity for the Renter schema. diff --git a/internal/infrastructure/postgres/entgen/renter/where.go b/internal/infrastructure/postgres/entgen/renter/where.go index d376231..7b0d681 100644 --- a/internal/infrastructure/postgres/entgen/renter/where.go +++ b/internal/infrastructure/postgres/entgen/renter/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/renter_create.go b/internal/infrastructure/postgres/entgen/renter_create.go index 0b934ae..181eb3b 100644 --- a/internal/infrastructure/postgres/entgen/renter_create.go +++ b/internal/infrastructure/postgres/entgen/renter_create.go @@ -10,11 +10,11 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RenterCreate is the builder for creating a Renter entity. diff --git a/internal/infrastructure/postgres/entgen/renter_delete.go b/internal/infrastructure/postgres/entgen/renter_delete.go index 8bd8800..f325404 100644 --- a/internal/infrastructure/postgres/entgen/renter_delete.go +++ b/internal/infrastructure/postgres/entgen/renter_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" ) // RenterDelete is the builder for deleting a Renter entity. diff --git a/internal/infrastructure/postgres/entgen/renter_query.go b/internal/infrastructure/postgres/entgen/renter_query.go index 759d3d3..ec56fff 100644 --- a/internal/infrastructure/postgres/entgen/renter_query.go +++ b/internal/infrastructure/postgres/entgen/renter_query.go @@ -12,12 +12,12 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RenterQuery is the builder for querying Renter entities. diff --git a/internal/infrastructure/postgres/entgen/renter_update.go b/internal/infrastructure/postgres/entgen/renter_update.go index ad8125d..d6de96c 100644 --- a/internal/infrastructure/postgres/entgen/renter_update.go +++ b/internal/infrastructure/postgres/entgen/renter_update.go @@ -11,12 +11,12 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // RenterUpdate is the builder for updating Renter entities. diff --git a/internal/infrastructure/postgres/entgen/runtime.go b/internal/infrastructure/postgres/entgen/runtime.go index e239ba8..556aea9 100644 --- a/internal/infrastructure/postgres/entgen/runtime.go +++ b/internal/infrastructure/postgres/entgen/runtime.go @@ -3,15 +3,15 @@ package entgen import ( - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/ent/schema" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/ent/schema" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // The init function reads all schema descriptors with runtime code diff --git a/internal/infrastructure/postgres/entgen/runtime/runtime.go b/internal/infrastructure/postgres/entgen/runtime/runtime.go index d43285d..4cce75d 100644 --- a/internal/infrastructure/postgres/entgen/runtime/runtime.go +++ b/internal/infrastructure/postgres/entgen/runtime/runtime.go @@ -2,7 +2,7 @@ package runtime -// The schema-stitching logic is generated in github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/runtime.go +// The schema-stitching logic is generated in github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/runtime.go const ( Version = "v0.14.5" // Version of ent codegen. diff --git a/internal/infrastructure/postgres/entgen/tenant.go b/internal/infrastructure/postgres/entgen/tenant.go index 383efe5..32cc91b 100644 --- a/internal/infrastructure/postgres/entgen/tenant.go +++ b/internal/infrastructure/postgres/entgen/tenant.go @@ -9,7 +9,7 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // Tenant is the model entity for the Tenant schema. diff --git a/internal/infrastructure/postgres/entgen/tenant/where.go b/internal/infrastructure/postgres/entgen/tenant/where.go index 87415f1..a82fe5b 100644 --- a/internal/infrastructure/postgres/entgen/tenant/where.go +++ b/internal/infrastructure/postgres/entgen/tenant/where.go @@ -7,7 +7,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" ) // ID filters vertices based on their ID field. diff --git a/internal/infrastructure/postgres/entgen/tenant_create.go b/internal/infrastructure/postgres/entgen/tenant_create.go index f2630ef..d845baa 100644 --- a/internal/infrastructure/postgres/entgen/tenant_create.go +++ b/internal/infrastructure/postgres/entgen/tenant_create.go @@ -10,14 +10,14 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // TenantCreate is the builder for creating a Tenant entity. diff --git a/internal/infrastructure/postgres/entgen/tenant_delete.go b/internal/infrastructure/postgres/entgen/tenant_delete.go index a0f9f11..b09d5b7 100644 --- a/internal/infrastructure/postgres/entgen/tenant_delete.go +++ b/internal/infrastructure/postgres/entgen/tenant_delete.go @@ -8,8 +8,8 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // TenantDelete is the builder for deleting a Tenant entity. diff --git a/internal/infrastructure/postgres/entgen/tenant_query.go b/internal/infrastructure/postgres/entgen/tenant_query.go index fa45aaa..c0c6301 100644 --- a/internal/infrastructure/postgres/entgen/tenant_query.go +++ b/internal/infrastructure/postgres/entgen/tenant_query.go @@ -12,15 +12,15 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // TenantQuery is the builder for querying Tenant entities. diff --git a/internal/infrastructure/postgres/entgen/tenant_update.go b/internal/infrastructure/postgres/entgen/tenant_update.go index a4d93e2..2c9f608 100644 --- a/internal/infrastructure/postgres/entgen/tenant_update.go +++ b/internal/infrastructure/postgres/entgen/tenant_update.go @@ -11,15 +11,15 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/caroption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/individual" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/predicate" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rental" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/rentaloption" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/caroption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/individual" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/predicate" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rental" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/rentaloption" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) // TenantUpdate is the builder for updating Tenant entities. diff --git a/internal/infrastructure/postgres/migrate/main.go b/internal/infrastructure/postgres/migrate/main.go index e775700..fb88a3d 100644 --- a/internal/infrastructure/postgres/migrate/main.go +++ b/internal/infrastructure/postgres/migrate/main.go @@ -6,7 +6,7 @@ import ( "os" _ "github.com/jackc/pgx/v5/stdlib" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres" ) func main() { diff --git a/internal/infrastructure/postgres/repository/car_repository.go b/internal/infrastructure/postgres/repository/car_repository.go index 0bb05f5..d7e5161 100644 --- a/internal/infrastructure/postgres/repository/car_repository.go +++ b/internal/infrastructure/postgres/repository/car_repository.go @@ -5,11 +5,11 @@ import ( "strings" "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/repository" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/dbmodel" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" - car "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/car" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/dbmodel" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" + car "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/car" ) type carRepository struct { diff --git a/internal/infrastructure/postgres/repository/car_repository_test.go b/internal/infrastructure/postgres/repository/car_repository_test.go index 7752dae..4f0a42e 100644 --- a/internal/infrastructure/postgres/repository/car_repository_test.go +++ b/internal/infrastructure/postgres/repository/car_repository_test.go @@ -8,10 +8,10 @@ import ( "testing" "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/repository" - carrepo "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/repository" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/repository/testutil" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository" + carrepo "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/repository" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/repository/testutil" "github.com/stretchr/testify/require" ) diff --git a/internal/infrastructure/postgres/repository/company_repository.go b/internal/infrastructure/postgres/repository/company_repository.go index f53071c..3fea23d 100644 --- a/internal/infrastructure/postgres/repository/company_repository.go +++ b/internal/infrastructure/postgres/repository/company_repository.go @@ -5,11 +5,11 @@ import ( "strings" "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/repository" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/dbmodel" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" - company "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/company" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/dbmodel" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" + company "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/company" ) type companyRepository struct { diff --git a/internal/infrastructure/postgres/repository/company_repository_test.go b/internal/infrastructure/postgres/repository/company_repository_test.go index 038b2d1..2d7b27a 100644 --- a/internal/infrastructure/postgres/repository/company_repository_test.go +++ b/internal/infrastructure/postgres/repository/company_repository_test.go @@ -8,10 +8,10 @@ import ( "testing" "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/repository" - companyrepo "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/repository" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/repository/testutil" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository" + companyrepo "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/repository" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/repository/testutil" "github.com/stretchr/testify/require" ) diff --git a/internal/infrastructure/postgres/repository/main_test.go b/internal/infrastructure/postgres/repository/main_test.go index a9458cf..30e7eb2 100644 --- a/internal/infrastructure/postgres/repository/main_test.go +++ b/internal/infrastructure/postgres/repository/main_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/repository/testutil" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/repository/testutil" ) func TestMain(m *testing.M) { diff --git a/internal/infrastructure/postgres/repository/renter_repository.go b/internal/infrastructure/postgres/repository/renter_repository.go index 5325003..ea197d3 100644 --- a/internal/infrastructure/postgres/repository/renter_repository.go +++ b/internal/infrastructure/postgres/repository/renter_repository.go @@ -5,11 +5,11 @@ import ( "strings" "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/repository" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/dbmodel" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" - renter "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/renter" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/dbmodel" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" + renter "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/renter" ) type renterRepository struct { diff --git a/internal/infrastructure/postgres/repository/tenant_repository.go b/internal/infrastructure/postgres/repository/tenant_repository.go index 7e5ac7c..e2a0119 100644 --- a/internal/infrastructure/postgres/repository/tenant_repository.go +++ b/internal/infrastructure/postgres/repository/tenant_repository.go @@ -3,11 +3,11 @@ package repository import ( "context" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/repository" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/dbmodel" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" - tenant "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen/tenant" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/dbmodel" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" + tenant "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen/tenant" ) type tenantRepository struct { diff --git a/internal/infrastructure/postgres/repository/testutil/factory.go b/internal/infrastructure/postgres/repository/testutil/factory.go index 172843b..377bb16 100644 --- a/internal/infrastructure/postgres/repository/testutil/factory.go +++ b/internal/infrastructure/postgres/repository/testutil/factory.go @@ -6,8 +6,8 @@ import ( "context" "testing" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/model/factory" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model/factory" "github.com/stretchr/testify/require" ) diff --git a/internal/infrastructure/postgres/repository/testutil/testutil.go b/internal/infrastructure/postgres/repository/testutil/testutil.go index eec7bf8..a84eed6 100644 --- a/internal/infrastructure/postgres/repository/testutil/testutil.go +++ b/internal/infrastructure/postgres/repository/testutil/testutil.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/postgres/entgen" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/postgres/entgen" "github.com/ory/dockertest/v3" "github.com/ory/dockertest/v3/docker" ) diff --git a/internal/infrastructure/usecase/car.go b/internal/infrastructure/usecase/car.go index 6d122ae..f62db9f 100644 --- a/internal/infrastructure/usecase/car.go +++ b/internal/infrastructure/usecase/car.go @@ -3,8 +3,8 @@ package usecase import ( "context" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/usecase/input" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/usecase/input" ) // CarUsecase defines the interface for car-related business logic diff --git a/internal/infrastructure/usecase/car_impl.go b/internal/infrastructure/usecase/car_impl.go index b83b0ce..f5eaa13 100644 --- a/internal/infrastructure/usecase/car_impl.go +++ b/internal/infrastructure/usecase/car_impl.go @@ -4,9 +4,9 @@ import ( "context" "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - "github.com/jp-ryuji/go-ddd/internal/domain/repository" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/usecase/input" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/usecase/input" ) // carUsecase implements CarUsecase interface diff --git a/internal/infrastructure/usecase/car_impl_test.go b/internal/infrastructure/usecase/car_impl_test.go index 807a909..1eaceb5 100644 --- a/internal/infrastructure/usecase/car_impl_test.go +++ b/internal/infrastructure/usecase/car_impl_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "github.com/jp-ryuji/go-ddd/internal/domain/model" - mock_repository "github.com/jp-ryuji/go-ddd/internal/domain/repository/mock" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/usecase" - "github.com/jp-ryuji/go-ddd/internal/infrastructure/usecase/input" + "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + mock_repository "github.com/jp-ryuji/go-arch-patterns/internal/domain/repository/mock" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/usecase" + "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/usecase/input" "github.com/stretchr/testify/assert" "go.uber.org/mock/gomock" ) diff --git a/internal/infrastructure/usecase/mock/car.go b/internal/infrastructure/usecase/mock/car.go index a35cf10..56f909c 100644 --- a/internal/infrastructure/usecase/mock/car.go +++ b/internal/infrastructure/usecase/mock/car.go @@ -13,8 +13,8 @@ import ( context "context" reflect "reflect" - model "github.com/jp-ryuji/go-ddd/internal/domain/model" - input "github.com/jp-ryuji/go-ddd/internal/infrastructure/usecase/input" + model "github.com/jp-ryuji/go-arch-patterns/internal/domain/model" + input "github.com/jp-ryuji/go-arch-patterns/internal/infrastructure/usecase/input" gomock "go.uber.org/mock/gomock" ) From 713297d83aada5fa1ac25b46c520b3ec8a74f3f4 Mon Sep 17 00:00:00 2001 From: Ryuji Eguchi Date: Sun, 14 Sep 2025 09:12:42 +1000 Subject: [PATCH 2/2] update README --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 965c9c5..029ec6d 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,29 @@ # go-arch-patterns -This repository showcases the Ports and Adapters architectural pattern (also known as Hexagonal Architecture) and Domain-Driven Design (DDD) methodology, with a focus on fundamental concepts such as value objects. For more details about the software architecture, see [Software Architecture](docs/software_architecture.md). +This repository demonstrates various architectural patterns and design principles for building scalable backend systems in Go. The codebase showcases architectural patterns, database design techniques, and SaaS-specific implementations through a practical car rental platform example. -The system represents a SaaS platform for car rental companies. For more details about the system, see [Entity Relationship Diagram](docs/er-diagram.md). +For more details about the architecture, see [Software Architecture](docs/software_architecture.md). +For the data model and relationships, see [Entity Relationship Diagram](docs/er-diagram.md). ## Key Implementation Examples This repository demonstrates the following software engineering concepts: +### Domain-Driven Design & Architecture + - **Value Object**: - *Definition*: See [Email value object](internal/domain/model/value/email.go) with [tests](internal/domain/model/value/email_test.go) - *Usage*: See [Individual entity](internal/domain/model/individual.go) using the Email value object + +### Database Design Patterns + - **Class Table Inheritance**: See [Renter model](internal/domain/model/renter.go) as the base class with [Company](internal/domain/model/company.go) and [Individual](internal/domain/model/individual.go) as specialized subclasses +### SaaS & Microservices Patterns *(Coming Soon)* + +- **PostgreSQL Row-Level Security**: Multi-tenant data isolation +- **Outbox Pattern**: Reliable event publishing for distributed systems + ## Documentation Find specific documentation in the [docs/](docs/) folder: