Skip to content

Commit

Permalink
several minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robbietree8 committed Jan 21, 2022
1 parent f0b8899 commit f90e81a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public interface CustomerServiceI {

public Response addCustomer(CustomerAddCmd customerAddCmd);
Response addCustomer(CustomerAddCmd customerAddCmd);

public MultiResponse<CustomerDTO> listByName(CustomerListByNameQry customerListByNameQry);
MultiResponse<CustomerDTO> listByName(CustomerListByNameQry customerListByNameQry);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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{

}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
import ${package}.domain.customer.Customer;

public interface CustomerGateway {
public Customer getByById(String customerId);
Customer getByById(String customerId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
@Mapper
public interface CustomerMapper{

public CustomerDO getById(String customerId);
CustomerDO getById(String customerId);
}

0 comments on commit f90e81a

Please sign in to comment.