From 1449c6a410747d38d6702840c173d5b7e24c3616 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 3 Jun 2020 14:47:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0readme=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8C=85=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 38 +++++++++++++++++++ build.gradle | 2 +- .../gaea/app/component/EmailMessenger.kt | 2 +- .../io/{messager => comm}/IEmailMessenger.kt | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 README.md rename src/gaea/src/main/kotlin/com/synebula/gaea/io/{messager => comm}/IEmailMessenger.kt (90%) diff --git a/README.md b/README.md new file mode 100644 index 0000000..f5464ea --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# MYTHS.GAEA +> 盖亚,一套基于借鉴DDD技术栈思想使用kotlin语言开发的后台服务快速开发框架。 +> 框架业务采用了CQRS的设计思想,但是没有使用Event Sourcing等复杂技术(等待后续扩展)。 + +> 当前版本 0.5.0 + +## 项目结构 + +|-- doc + |-- +|-- src + |-- gaea #核心库 + |-- gaea.app #应用服务库,依赖SpringBoot声明了Controller等web服务接口 + |-- gaea.mongo #使用mongo数据库实现了Repository和Query查询 + +## Package结构 + +|-- app #应用服务 + |-- cmd #命令服务接口 + |-- component #应用服务常用组件 + |-- query #查询服务接口 +|-- data #数据结构 + |-- cache #缓存相关 + |-- code #编号相关 + |-- date #日期相关 + |-- message #消息相关 + |-- serialization #序列化相关 +|-- domain #DDD领域层定义 + |-- model #领域模型 + |-- repository #仓储定义 + |-- service #领域服务 +|-- extension #一些类型常用扩展方法 +|-- io #io相关服务 + |-- comm #通信相关 + |-- scan #类扫描库 +|-- log #日志相关接口 +|-- mongo #Mongo相关服务 +|-- query #定义了查询相关接口 diff --git a/build.gradle b/build.gradle index d20f1c6..a6a50f0 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ allprojects { subprojects { ext { - version '0.3.0' + version '0.5.0' spring_version = "2.3.0.RELEASE" } diff --git a/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/EmailMessenger.kt b/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/EmailMessenger.kt index 9fc1b4b..2433a24 100644 --- a/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/EmailMessenger.kt +++ b/src/gaea.app/src/main/kotlin/com/synebula/gaea/app/component/EmailMessenger.kt @@ -1,6 +1,6 @@ package com.synebula.gaea.app.component -import com.synebula.gaea.io.messager.IEmailMessenger +import com.synebula.gaea.io.comm.IEmailMessenger import com.synebula.gaea.log.ILogger import org.springframework.beans.factory.annotation.Autowired import org.springframework.beans.factory.annotation.Value diff --git a/src/gaea/src/main/kotlin/com/synebula/gaea/io/messager/IEmailMessenger.kt b/src/gaea/src/main/kotlin/com/synebula/gaea/io/comm/IEmailMessenger.kt similarity index 90% rename from src/gaea/src/main/kotlin/com/synebula/gaea/io/messager/IEmailMessenger.kt rename to src/gaea/src/main/kotlin/com/synebula/gaea/io/comm/IEmailMessenger.kt index c167384..0bd6b13 100644 --- a/src/gaea/src/main/kotlin/com/synebula/gaea/io/messager/IEmailMessenger.kt +++ b/src/gaea/src/main/kotlin/com/synebula/gaea/io/comm/IEmailMessenger.kt @@ -1,4 +1,4 @@ -package com.synebula.gaea.io.messager +package com.synebula.gaea.io.comm interface IEmailMessenger { /** From d8d25b47988d8c36160a8bcf9b3d0965fe14c50d Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 3 Jun 2020 14:49:41 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 readme.md diff --git a/readme.md b/readme.md deleted file mode 100644 index bed08fc..0000000 --- a/readme.md +++ /dev/null @@ -1,14 +0,0 @@ -# Gaea -> In Greek mythology, Gaia (/ˈɡaɪə, ˈɡeɪə/ GHY-ə, GAY-ə;[1] from Ancient Greek Γαῖα, a poetical form of Γῆ Gē, "land" or "earth"),[2] also spelled Gaea (/ˈdʒiːə/ JEE-ə),[1] is the personification of the Earth[3] and one of the Greek primordial deities. Gaia is the ancestral mother of all life: the primal Mother Earth goddess. She is the immediate parent of Uranus (the sky), from whose sexual union she bore the Titans (themselves parents of many of the Olympian gods) and the Giants, and of Pontus (the sea), from whose union she bore the primordial sea gods. Her equivalent in the Roman pantheon was Terra. -> [From [wikipedia](https://en.wikipedia.org/wiki/Gaia)] - -This is java base library write in kotlin. - -## Path Structure - -``` text -|-- doc # document directory -|-- src # the code souce directory -|-- readme.md -|-- .gitignore -``` \ No newline at end of file From 4a5d30b78137df4eafc2094a4729df03c1f5ab33 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 3 Jun 2020 14:51:26 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5464ea..66f8221 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,18 @@ ## 项目结构 +``` |-- doc |-- |-- src |-- gaea #核心库 |-- gaea.app #应用服务库,依赖SpringBoot声明了Controller等web服务接口 |-- gaea.mongo #使用mongo数据库实现了Repository和Query查询 - +``` + ## Package结构 +``` |-- app #应用服务 |-- cmd #命令服务接口 |-- component #应用服务常用组件 @@ -36,3 +39,4 @@ |-- log #日志相关接口 |-- mongo #Mongo相关服务 |-- query #定义了查询相关接口 +```