Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Phodal
Coca
提交
2bdfacc5
C
Coca
项目概览
Phodal
/
Coca
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Coca
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
2bdfacc5
编写于
12月 28, 2019
作者:
P
Phodal Huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: add tequila samples
上级
235f2c89
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
204 addition
and
2 deletion
+204
-2
README.md
README.md
+8
-2
docs/sample/ddd.svg
docs/sample/ddd.svg
+196
-0
未找到文件。
README.md
浏览文件 @
2bdfacc5
...
...
@@ -85,11 +85,17 @@ coca analysis
coca arch
```
Examples Results:
Examples Results 1:
![
Architecture demo 2
](
docs/sample/ddd.svg
)
from:
[
https://github.com/newlee/tequila
](
https://github.com/newlee/tequila/tree/master/examples/step2-Java
)
Examples Results 2:
![
Architecture demo
](
docs/sample/arch.svg
)
Repo
from:
[
https://github.com/howiehu/ddd-architecture-samples
](
https://github.com/howiehu/ddd-architecture-samples
)
from:
[
https://github.com/howiehu/ddd-architecture-samples
](
https://github.com/howiehu/ddd-architecture-samples
)
### Find Bad Smells
...
...
docs/sample/ddd.svg
0 → 100644
浏览文件 @
2bdfacc5
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.43.0 (0)
-->
<!-- Title: G Pages: 1 -->
<svg
width=
"674pt"
height=
"388pt"
viewBox=
"0.00 0.00 674.00 388.00"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<g
id=
"graph0"
class=
"graph"
transform=
"scale(1 1) rotate(0) translate(4 384)"
>
<title>
G
</title>
<polygon
fill=
"white"
stroke=
"transparent"
points=
"-4,4 -4,-384 670,-384 670,4 -4,4"
/>
<g
id=
"clust1"
class=
"cluster"
>
<title>
cluster1
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"8,-8 8,-372 386,-372 386,-8 8,-8"
/>
<text
text-anchor=
"middle"
x=
"197"
y=
"-356.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
domain
</text>
</g>
<g
id=
"clust2"
class=
"cluster"
>
<title>
cluster2
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"560,-224 560,-298 658,-298 658,-224 560,-224"
/>
<text
text-anchor=
"middle"
x=
"609"
y=
"-282.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
gateways
</text>
</g>
<g
id=
"clust3"
class=
"cluster"
>
<title>
cluster3
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"394,-224 394,-372 552,-372 552,-224 394,-224"
/>
<text
text-anchor=
"middle"
x=
"473"
y=
"-356.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
repositories
</text>
</g>
<!-- node8 -->
<g
id=
"node1"
class=
"node"
>
<title>
node8
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"127.53,-196 26.47,-196 26.47,-160 127.53,-160 127.53,-196"
/>
<text
text-anchor=
"middle"
x=
"77"
y=
"-173.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
AggregateRoot
</text>
</g>
<!-- node5 -->
<g
id=
"node2"
class=
"node"
>
<title>
node5
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"70,-124 16,-124 16,-88 70,-88 70,-124"
/>
<text
text-anchor=
"middle"
x=
"43"
y=
"-101.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
Entity
</text>
</g>
<!-- node8->node5 -->
<g
id=
"edge1"
class=
"edge"
>
<title>
node8
->
node5
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M68.6,-159.7C64.73,-151.73 60.05,-142.1 55.76,-133.26"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"58.83,-131.57 51.31,-124.1 52.53,-134.63 58.83,-131.57"
/>
</g>
<!-- node9 -->
<g
id=
"node3"
class=
"node"
>
<title>
node9
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"260.64,-268 149.36,-268 149.36,-232 260.64,-232 260.64,-268"
/>
<text
text-anchor=
"middle"
x=
"205"
y=
"-245.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
AggregateRootA
</text>
</g>
<!-- node9->node8 -->
<g
id=
"edge7"
class=
"edge"
>
<title>
node9
->
node8
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M173.69,-231.88C156.8,-222.64 135.75,-211.13 117.62,-201.21"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"118.89,-197.92 108.43,-196.19 115.53,-204.06 118.89,-197.92"
/>
</g>
<!-- node2 -->
<g
id=
"node4"
class=
"node"
>
<title>
node2
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"296.03,-124 201.97,-124 201.97,-88 296.03,-88 296.03,-124"
/>
<text
text-anchor=
"middle"
x=
"249"
y=
"-101.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
ValueObjectC
</text>
</g>
<!-- node9->node2 -->
<g
id=
"edge2"
class=
"edge"
>
<title>
node9
->
node2
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M210.31,-231.87C217.84,-207.56 231.7,-162.82 240.63,-134.01"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"244.06,-134.78 243.67,-124.19 237.37,-132.71 244.06,-134.78"
/>
</g>
<!-- node10 -->
<g
id=
"node7"
class=
"node"
>
<title>
node10
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"373.1,-196 318.9,-196 318.9,-160 373.1,-160 373.1,-196"
/>
<text
text-anchor=
"middle"
x=
"346"
y=
"-173.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
Router
</text>
</g>
<!-- node9->node10 -->
<g
id=
"edge12"
class=
"edge"
>
<title>
node9
->
node10
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M239.49,-231.88C260.8,-221.3 288.1,-207.74 309.73,-197.01"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"311.52,-200.03 318.92,-192.44 308.41,-193.76 311.52,-200.03"
/>
</g>
<!-- node6 -->
<g
id=
"node10"
class=
"node"
>
<title>
node6
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"205.56,-196 146.44,-196 146.44,-160 205.56,-160 205.56,-196"
/>
<text
text-anchor=
"middle"
x=
"176"
y=
"-173.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
EntityB
</text>
</g>
<!-- node9->node6 -->
<g
id=
"edge6"
class=
"edge"
>
<title>
node9
->
node6
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M197.83,-231.7C194.57,-223.81 190.63,-214.3 187,-205.55"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"190.15,-204 183.09,-196.1 183.68,-206.68 190.15,-204"
/>
</g>
<!-- node7 -->
<g
id=
"node5"
class=
"node"
>
<title>
node7
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"234.69,-52 149.31,-52 149.31,-16 234.69,-16 234.69,-52"
/>
<text
text-anchor=
"middle"
x=
"192"
y=
"-29.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
ValueObject
</text>
</g>
<!-- node2->node7 -->
<g
id=
"edge3"
class=
"edge"
>
<title>
node2
->
node7
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M234.91,-87.7C228.08,-79.3 219.74,-69.07 212.24,-59.86"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"214.96,-57.65 205.93,-52.1 209.53,-62.07 214.96,-57.65"
/>
</g>
<!-- node11 -->
<g
id=
"node6"
class=
"node"
>
<title>
node11
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"649.82,-268 568.18,-268 568.18,-232 649.82,-232 649.82,-268"
/>
<text
text-anchor=
"middle"
x=
"609"
y=
"-245.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
FakeRouter
</text>
</g>
<!-- node11->node10 -->
<g
id=
"edge4"
class=
"edge"
>
<title>
node11
->
node10
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M575.84,-231.94C569.37,-229.02 562.55,-226.22 556,-224 497.1,-204.09 425.83,-191.03 383.3,-184.34"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"383.8,-180.87 373.39,-182.81 382.74,-187.79 383.8,-180.87"
/>
</g>
<!-- node1 -->
<g
id=
"node13"
class=
"node"
>
<title>
node1
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"378.21,-124 313.79,-124 313.79,-88 378.21,-88 378.21,-124"
/>
<text
text-anchor=
"middle"
x=
"346"
y=
"-101.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
Provider
</text>
</g>
<!-- node10->node1 -->
<g
id=
"edge11"
class=
"edge"
>
<title>
node10
->
node1
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M346,-159.7C346,-151.98 346,-142.71 346,-134.11"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"349.5,-134.1 346,-124.1 342.5,-134.1 349.5,-134.1"
/>
</g>
<!-- node12 -->
<g
id=
"node8"
class=
"node"
>
<title>
node12
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"543.69,-342 402.31,-342 402.31,-306 543.69,-306 543.69,-342"
/>
<text
text-anchor=
"middle"
x=
"473"
y=
"-319.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
AggregateRootARepo
</text>
</g>
<!-- node12->node9 -->
<g
id=
"edge15"
class=
"edge"
>
<title>
node12
->
node9
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M409.49,-305.94C367.64,-294.7 312.98,-280.01 270.7,-268.65"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"271.35,-265.2 260.78,-265.99 269.53,-271.96 271.35,-265.2"
/>
</g>
<!-- node13 -->
<g
id=
"node9"
class=
"node"
>
<title>
node13
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"511.94,-268 434.06,-268 434.06,-232 511.94,-232 511.94,-268"
/>
<text
text-anchor=
"middle"
x=
"473"
y=
"-245.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
Repository
</text>
</g>
<!-- node12->node13 -->
<g
id=
"edge5"
class=
"edge"
>
<title>
node12
->
node13
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M473,-305.94C473,-297.81 473,-287.88 473,-278.7"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"476.5,-278.44 473,-268.44 469.5,-278.44 476.5,-278.44"
/>
</g>
<!-- node6->node5 -->
<g
id=
"edge10"
class=
"edge"
>
<title>
node6
->
node5
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M146.15,-161.29C126.27,-150.83 100.03,-137.02 79,-125.95"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"80.52,-122.79 70.04,-121.23 77.26,-128.98 80.52,-122.79"
/>
</g>
<!-- node3 -->
<g
id=
"node12"
class=
"node"
>
<title>
node3
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"183.8,-124 88.2,-124 88.2,-88 183.8,-88 183.8,-124"
/>
<text
text-anchor=
"middle"
x=
"136"
y=
"-101.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
ValueObjectD
</text>
</g>
<!-- node6->node3 -->
<g
id=
"edge9"
class=
"edge"
>
<title>
node6
->
node3
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M166.11,-159.7C161.51,-151.64 155.94,-141.89 150.85,-132.98"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"153.77,-131.05 145.77,-124.1 147.7,-134.52 153.77,-131.05"
/>
</g>
<!-- node4 -->
<g
id=
"node11"
class=
"node"
>
<title>
node4
</title>
<polygon
fill=
"none"
stroke=
"black"
points=
"193.37,-342 82.63,-342 82.63,-306 193.37,-306 193.37,-342"
/>
<text
text-anchor=
"middle"
x=
"138"
y=
"-319.8"
font-family=
"Times,serif"
font-size=
"14.00"
>
AggregateRootB
</text>
</g>
<!-- node4->node8 -->
<g
id=
"edge8"
class=
"edge"
>
<title>
node4
->
node8
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M130.76,-305.92C120.22,-281.02 100.53,-234.54 88.13,-205.27"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"91.35,-203.9 84.23,-196.06 84.91,-206.64 91.35,-203.9"
/>
</g>
<!-- node4->node9 -->
<g
id=
"edge13"
class=
"edge"
>
<title>
node4
->
node9
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M153.88,-305.94C162.18,-297.01 172.51,-285.92 181.7,-276.04"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"184.52,-278.15 188.77,-268.44 179.4,-273.38 184.52,-278.15"
/>
</g>
<!-- node3->node7 -->
<g
id=
"edge14"
class=
"edge"
>
<title>
node3
->
node7
</title>
<path
fill=
"none"
stroke=
"black"
d=
"M149.84,-87.7C156.49,-79.39 164.58,-69.28 171.89,-60.14"
/>
<polygon
fill=
"black"
stroke=
"black"
points=
"174.8,-62.1 178.32,-52.1 169.34,-57.73 174.8,-62.1"
/>
</g>
</g>
</svg>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录