Skip to content

Commit

Permalink
add module:facade, 系统对外暴露服务的实现
Browse files Browse the repository at this point in the history
  • Loading branch information
funkygao committed Oct 25, 2020
1 parent 175ca45 commit 536dad6
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/main/resources/META-INF/maven/archetype-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}-facade" dir="__rootArtifactId__-facade"
name="${rootArtifactId}-facade">
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}-domain" dir="__rootArtifactId__-domain" name="${rootArtifactId}-domain">
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<artifactId>${artifactId}</artifactId>
<name>${artifactId}</name>
<description>经典DDD的 Application layer,同时也对应了 Clean Architecture 中的 Application Business Rule</description>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* Application service.
*/
package ${package}.app.service;
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<artifactId>${artifactId}</artifactId>
<name>${artifactId}</name>
<description>领域层,沉淀业务资产</description>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>

<artifactId>${artifactId}</artifactId>
<name>${artifactId}</name>
<description>系统对外暴露服务的实现</description>

<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-application</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* 整个系统对外暴露服务的实现.
*/
package ${package}.facade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* REST services.
*/
package ${package}.facade.rest;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* RPC services implementation.
*/
package ${package}.facade.rpc;
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<artifactId>${artifactId}</artifactId>
<name>${artifactId}</name>
<description>经典DDD的 Infrastructure layer,负责技术底座的实现</description>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<artifactId>${artifactId}</artifactId>
<name>${artifactId}</name>
<description>DDDplus 特有的前中台协同包</description>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* 前、中台统一的异常定义.
* 前、中台统一的异常定义:business exception.
*/
package ${package}.spec.exception;
5 changes: 5 additions & 0 deletions src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
<artifactId>${rootArtifactId}-infrastructure</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-facade</artifactId>
<version>${version}</version>
</dependency>

<!-- third party sdk -->
<dependency>
Expand Down

0 comments on commit 536dad6

Please sign in to comment.