Skip to content

Commit db279df

Browse files
committed
2 parents da1dc24 + e205b57 commit db279df

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Cute-Gist/nestjs 学习总结

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<mxfile host="app.diagrams.net" modified="2020-10-02T12:55:58.402Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36" etag="mGeqwPbexWSCZVs4cqhG" version="13.7.5" type="github">
2+
<diagram id="ox7XyotuZas1yregG2CC" name="第 1 页">
3+
<mxGraphModel dx="784" dy="711" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0" />
6+
<mxCell id="1" parent="0" />
7+
<mxCell id="JR-R5kCgJeJBISafG5D2-1" value="app.module.ts" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
8+
<mxGeometry x="60" y="40" width="120" height="50" as="geometry" />
9+
</mxCell>
10+
<mxCell id="JR-R5kCgJeJBISafG5D2-2" value="article.schema.ts" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
11+
<mxGeometry x="60" y="130" width="120" height="50" as="geometry" />
12+
</mxCell>
13+
<mxCell id="JR-R5kCgJeJBISafG5D2-3" value="article.module.ts" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
14+
<mxGeometry x="60" y="220" width="120" height="50" as="geometry" />
15+
</mxCell>
16+
<mxCell id="JR-R5kCgJeJBISafG5D2-4" value="article-item.dto.ts" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
17+
<mxGeometry x="60" y="400" width="120" height="50" as="geometry" />
18+
</mxCell>
19+
<mxCell id="JR-R5kCgJeJBISafG5D2-5" value="article.service.ts" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
20+
<mxGeometry x="60" y="500" width="120" height="50" as="geometry" />
21+
</mxCell>
22+
<mxCell id="JR-R5kCgJeJBISafG5D2-6" value="article.controller.ts" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
23+
<mxGeometry x="60" y="590" width="120" height="50" as="geometry" />
24+
</mxCell>
25+
<mxCell id="JR-R5kCgJeJBISafG5D2-7" value="article.interface.ts" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
26+
<mxGeometry x="60" y="310" width="120" height="50" as="geometry" />
27+
</mxCell>
28+
<mxCell id="JR-R5kCgJeJBISafG5D2-8" value="全局模块 app.module 中导入业务模块,并连接 mongodb 。通过&amp;nbsp;MongooseModule.forRoot()&lt;br&gt;类似&amp;nbsp;mongoose.connect()" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
29+
<mxGeometry x="220" y="40" width="210" height="50" as="geometry" />
30+
</mxCell>
31+
<mxCell id="JR-R5kCgJeJBISafG5D2-10" value="&lt;span style=&quot;color: rgb(51 , 51 , 51) ; font-family: &amp;#34;menlo&amp;#34; , &amp;#34;monaco&amp;#34; , &amp;#34;consolas&amp;#34; , &amp;#34;courier new&amp;#34; , monospace ; background-color: rgb(248 , 248 , 248)&quot;&gt;定义mongodb的数据模型。&lt;/span&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
32+
<mxGeometry x="220" y="130" width="210" height="50" as="geometry" />
33+
</mxCell>
34+
<mxCell id="JR-R5kCgJeJBISafG5D2-11" value="&lt;span style=&quot;color: rgb(51 , 51 , 51) ; font-family: &amp;#34;menlo&amp;#34; , &amp;#34;monaco&amp;#34; , &amp;#34;consolas&amp;#34; , &amp;#34;courier new&amp;#34; , monospace ; background-color: rgb(248 , 248 , 248)&quot;&gt;定义 article 业务模块。&lt;/span&gt;&lt;font color=&quot;#333333&quot; face=&quot;menlo, monaco, consolas, courier new, monospace&quot;&gt;MongooseModule.forFeature()&lt;br&gt;&lt;/font&gt;模型负责从底层MongoDB数据库创建和读取文档。&lt;font color=&quot;#333333&quot; face=&quot;menlo, monaco, consolas, courier new, monospace&quot;&gt;&lt;br&gt;&lt;/font&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
35+
<mxGeometry x="220" y="220" width="210" height="50" as="geometry" />
36+
</mxCell>
37+
<mxCell id="JR-R5kCgJeJBISafG5D2-12" value="定义业务参数,方法等数据类型。" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
38+
<mxGeometry x="220" y="310" width="210" height="50" as="geometry" />
39+
</mxCell>
40+
<mxCell id="JR-R5kCgJeJBISafG5D2-13" value="定义业务参数,方法等数据类型。" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
41+
<mxGeometry x="220" y="400" width="210" height="50" as="geometry" />
42+
</mxCell>
43+
<mxCell id="JR-R5kCgJeJBISafG5D2-14" value="&lt;span style=&quot;color: rgb(51 , 51 , 51) ; font-family: &amp;#34;menlo&amp;#34; , &amp;#34;monaco&amp;#34; , &amp;#34;consolas&amp;#34; , &amp;#34;courier new&amp;#34; , monospace ; background-color: rgb(248 , 248 , 248)&quot;&gt;定义 article 业务服务,将涉及数据库操作都写到 service 中。&lt;/span&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
44+
<mxGeometry x="220" y="500" width="210" height="50" as="geometry" />
45+
</mxCell>
46+
<mxCell id="JR-R5kCgJeJBISafG5D2-15" value="&lt;span style=&quot;color: rgb(51 , 51 , 51) ; font-family: &amp;#34;menlo&amp;#34; , &amp;#34;monaco&amp;#34; , &amp;#34;consolas&amp;#34; , &amp;#34;courier new&amp;#34; , monospace ; background-color: rgb(248 , 248 , 248)&quot;&gt;定义 article 业务控制器,将涉及业务逻辑处理的操作写在这里,调用 service。&lt;/span&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
47+
<mxGeometry x="220" y="590" width="210" height="50" as="geometry" />
48+
</mxCell>
49+
</root>
50+
</mxGraphModel>
51+
</diagram>
52+
</mxfile>

0 commit comments

Comments
 (0)