|
| 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 。通过&nbsp;MongooseModule.forRoot()<br>类似&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="<span style="color: rgb(51 , 51 , 51) ; font-family: &#34;menlo&#34; , &#34;monaco&#34; , &#34;consolas&#34; , &#34;courier new&#34; , monospace ; background-color: rgb(248 , 248 , 248)">定义mongodb的数据模型。</span>" 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="<span style="color: rgb(51 , 51 , 51) ; font-family: &#34;menlo&#34; , &#34;monaco&#34; , &#34;consolas&#34; , &#34;courier new&#34; , monospace ; background-color: rgb(248 , 248 , 248)">定义 article 业务模块。</span><font color="#333333" face="menlo, monaco, consolas, courier new, monospace">MongooseModule.forFeature()<br></font>模型负责从底层MongoDB数据库创建和读取文档。<font color="#333333" face="menlo, monaco, consolas, courier new, monospace"><br></font>" 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="<span style="color: rgb(51 , 51 , 51) ; font-family: &#34;menlo&#34; , &#34;monaco&#34; , &#34;consolas&#34; , &#34;courier new&#34; , monospace ; background-color: rgb(248 , 248 , 248)">定义 article 业务服务,将涉及数据库操作都写到 service 中。</span>" 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="<span style="color: rgb(51 , 51 , 51) ; font-family: &#34;menlo&#34; , &#34;monaco&#34; , &#34;consolas&#34; , &#34;courier new&#34; , monospace ; background-color: rgb(248 , 248 , 248)">定义 article 业务控制器,将涉及业务逻辑处理的操作写在这里,调用 service。</span>" 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