From f90e81ae84363413e64d2bc3980d92a338b2f0b3 Mon Sep 17 00:00:00 2001 From: robbietree8 <73832691+robbietree8@users.noreply.github.com> Date: Fri, 21 Jan 2022 17:58:11 +0800 Subject: [PATCH] several minor fix --- .../src/main/java/api/CustomerServiceI.java | 4 ++-- .../src/main/java/domain/customer/Customer.java | 2 +- .../java/domain/customer/domainservice/CreditChecker.java | 2 +- .../src/main/java/domain/customer/gateway/CreditGateway.java | 5 ++--- .../main/java/domain/customer/gateway/CustomerGateway.java | 2 +- .../src/main/java/customer/CustomerMapper.java | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-client/src/main/java/api/CustomerServiceI.java b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-client/src/main/java/api/CustomerServiceI.java index 106a9a852..4a10e4c4a 100644 --- a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-client/src/main/java/api/CustomerServiceI.java +++ b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-client/src/main/java/api/CustomerServiceI.java @@ -11,7 +11,7 @@ public interface CustomerServiceI { - public Response addCustomer(CustomerAddCmd customerAddCmd); + Response addCustomer(CustomerAddCmd customerAddCmd); - public MultiResponse listByName(CustomerListByNameQry customerListByNameQry); + MultiResponse listByName(CustomerListByNameQry customerListByNameQry); } diff --git a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/Customer.java b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/Customer.java index 944304160..a74e6297e 100644 --- a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/Customer.java +++ b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/Customer.java @@ -7,7 +7,7 @@ import com.alibaba.cola.exception.BizException; import lombok.Data; -//Domain Entity can choose to extends the domain model which is used for DTO +//Domain Entity can choose to extend the domain model which is used for DTO @Data @Entity public class Customer{ diff --git a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/domainservice/CreditChecker.java b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/domainservice/CreditChecker.java index 40c3b3a1c..b27b2bcd9 100644 --- a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/domainservice/CreditChecker.java +++ b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/domainservice/CreditChecker.java @@ -3,7 +3,7 @@ #set( $symbol_escape = '\' ) package ${package}.domain.customer.domainservice; -//The domain's ablility can also be placed here +//The domain's ability can also be placed here public class CreditChecker{ } diff --git a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CreditGateway.java b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CreditGateway.java index 2ab723d5c..ab64ecaab 100644 --- a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CreditGateway.java +++ b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CreditGateway.java @@ -3,10 +3,9 @@ #set( $symbol_escape = '\' ) package ${package}.domain.customer.gateway; -import ${package}.domain.customer.Customer; import ${package}.domain.customer.Credit; -//Assume that the credit info is in antoher distributed Service +//Assume that the credit info is in another distributed Service public interface CreditGateway { - public Credit getCredit(String customerId); + Credit getCredit(String customerId); } diff --git a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CustomerGateway.java b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CustomerGateway.java index 6e44bf5c5..6bf30da7c 100644 --- a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CustomerGateway.java +++ b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-domain/src/main/java/domain/customer/gateway/CustomerGateway.java @@ -6,5 +6,5 @@ import ${package}.domain.customer.Customer; public interface CustomerGateway { - public Customer getByById(String customerId); + Customer getByById(String customerId); } diff --git a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-infrastructure/src/main/java/customer/CustomerMapper.java b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-infrastructure/src/main/java/customer/CustomerMapper.java index 88fbb8b60..0d97d7fec 100644 --- a/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-infrastructure/src/main/java/customer/CustomerMapper.java +++ b/cola-archetypes/cola-archetype-web/src/main/resources/archetype-resources/__rootArtifactId__-infrastructure/src/main/java/customer/CustomerMapper.java @@ -8,5 +8,5 @@ @Mapper public interface CustomerMapper{ - public CustomerDO getById(String customerId); + CustomerDO getById(String customerId); }