|
1 |
| -<mxfile host="app.diagrams.net" modified="2022-05-03T05:21:46.907Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36" etag="MeiFSIXrkcG95QkgFjvA" version="17.5.0" type="github" pages="2"> |
| 1 | +<mxfile host="app.diagrams.net" modified="2022-05-03T07:50:06.372Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36" etag="BFPJyH3Pg9iCLq6BCyj3" version="17.5.0" type="github" pages="2"> |
2 | 2 | <diagram id="kgpKYQtTHZ0yAKxKKP6v" name="Page-1">
|
3 | 3 | <mxGraphModel dx="1038" dy="548" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
|
4 | 4 | <root>
|
|
89 | 89 | </mxGraphModel>
|
90 | 90 | </diagram>
|
91 | 91 | <diagram id="dDXLnDIDMlXIPd4TQTFl" name="Page-2">
|
92 |
| - <mxGraphModel dx="865" dy="457" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> |
| 92 | + <mxGraphModel dx="643" dy="459" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> |
93 | 93 | <root>
|
94 | 94 | <mxCell id="0" />
|
95 | 95 | <mxCell id="1" parent="0" />
|
96 |
| - <mxCell id="JzrpeoS1DyY5In2C1RfW-1" value=": WEB前端
如Vue" style="shape=umlLifeline;perimeter=lifelinePerimeter;container=1;collapsible=0;recursiveResize=0;rounded=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;fontColor=#ffffff;strokeColor=#006EAF;" vertex="1" parent="1"> |
| 96 | + <mxCell id="JzrpeoS1DyY5In2C1RfW-1" value=": WEB前端
如Vue" style="shape=umlLifeline;perimeter=lifelinePerimeter;container=1;collapsible=0;recursiveResize=0;rounded=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;fontColor=#ffffff;strokeColor=#006EAF;" parent="1" vertex="1"> |
97 | 97 | <mxGeometry x="120" y="80" width="100" height="439" as="geometry" />
|
98 | 98 | </mxCell>
|
99 |
| - <mxCell id="JzrpeoS1DyY5In2C1RfW-2" value="" style="points=[];perimeter=orthogonalPerimeter;rounded=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;fontColor=#ffffff;strokeColor=#006EAF;" vertex="1" parent="JzrpeoS1DyY5In2C1RfW-1"> |
| 99 | + <mxCell id="JzrpeoS1DyY5In2C1RfW-2" value="" style="points=[];perimeter=orthogonalPerimeter;rounded=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;fontColor=#ffffff;strokeColor=#006EAF;" parent="JzrpeoS1DyY5In2C1RfW-1" vertex="1"> |
100 | 100 | <mxGeometry x="45" y="70" width="10" height="369" as="geometry" />
|
101 | 101 | </mxCell>
|
102 |
| - <mxCell id="JzrpeoS1DyY5In2C1RfW-4" value=":Web Server
如Tomcat" style="shape=umlLifeline;perimeter=lifelinePerimeter;container=1;collapsible=0;recursiveResize=0;rounded=0;shadow=0;strokeWidth=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1"> |
| 102 | + <mxCell id="JzrpeoS1DyY5In2C1RfW-4" value=":Web Server
如Tomcat" style="shape=umlLifeline;perimeter=lifelinePerimeter;container=1;collapsible=0;recursiveResize=0;rounded=0;shadow=0;strokeWidth=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" parent="1" vertex="1"> |
103 | 103 | <mxGeometry x="450" y="70" width="100" height="441" as="geometry" />
|
104 | 104 | </mxCell>
|
105 |
| - <mxCell id="JzrpeoS1DyY5In2C1RfW-5" value="" style="points=[];perimeter=orthogonalPerimeter;rounded=0;shadow=0;strokeWidth=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="JzrpeoS1DyY5In2C1RfW-4"> |
| 105 | + <mxCell id="JzrpeoS1DyY5In2C1RfW-5" value="" style="points=[];perimeter=orthogonalPerimeter;rounded=0;shadow=0;strokeWidth=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" parent="JzrpeoS1DyY5In2C1RfW-4" vertex="1"> |
106 | 106 | <mxGeometry x="45" y="80" width="10" height="361" as="geometry" />
|
107 | 107 | </mxCell>
|
108 |
| - <mxCell id="w-kv396jZH2R6bxmsxN8-1" value="<font color="#cc0000">2 与数据库中的用户信息进行校验</font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" edge="1" parent="JzrpeoS1DyY5In2C1RfW-4"> |
| 108 | + <mxCell id="w-kv396jZH2R6bxmsxN8-1" value="<font color="#cc0000">2 与数据库中的用户信息进行校验</font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" parent="JzrpeoS1DyY5In2C1RfW-4" edge="1"> |
109 | 109 | <mxGeometry relative="1" as="geometry">
|
110 | 110 | <mxPoint x="56" y="103" as="sourcePoint" />
|
111 | 111 | <Array as="points">
|
|
114 | 114 | <mxPoint x="61" y="122.99999999999989" as="targetPoint" />
|
115 | 115 | </mxGeometry>
|
116 | 116 | </mxCell>
|
117 |
| - <mxCell id="JzrpeoS1DyY5In2C1RfW-6" value="1 携带用户名、密码访问登录接口" style="verticalAlign=bottom;endArrow=block;entryX=0;entryY=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;strokeColor=#006EAF;" edge="1" parent="1"> |
| 117 | + <mxCell id="JzrpeoS1DyY5In2C1RfW-6" value="1 携带用户名、密码访问登录接口" style="verticalAlign=bottom;endArrow=block;entryX=0;entryY=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;strokeColor=#006EAF;" parent="1" edge="1"> |
118 | 118 | <mxGeometry relative="1" as="geometry">
|
119 | 119 | <mxPoint x="175" y="160.00000000000045" as="sourcePoint" />
|
120 | 120 | <mxPoint x="495" y="160.00000000000045" as="targetPoint" />
|
121 | 121 | </mxGeometry>
|
122 | 122 | </mxCell>
|
123 |
| - <mxCell id="JzrpeoS1DyY5In2C1RfW-7" value="4 把JWT响应给WEB前端" style="verticalAlign=bottom;endArrow=block;entryX=1;entryY=0;shadow=0;strokeWidth=1;fillColor=#008a00;strokeColor=#005700;" edge="1" parent="1"> |
| 123 | + <mxCell id="JzrpeoS1DyY5In2C1RfW-7" value="4 把JWT响应给WEB前端" style="verticalAlign=bottom;endArrow=block;entryX=1;entryY=0;shadow=0;strokeWidth=1;fillColor=#008a00;strokeColor=#005700;" parent="1" edge="1"> |
124 | 124 | <mxGeometry relative="1" as="geometry">
|
125 | 125 | <mxPoint x="493" y="276" as="sourcePoint" />
|
126 | 126 | <mxPoint x="178" y="276" as="targetPoint" />
|
127 | 127 | </mxGeometry>
|
128 | 128 | </mxCell>
|
129 |
| - <mxCell id="w-kv396jZH2R6bxmsxN8-2" value="<font color="#cc0000">3 如果正确,使用用户名/用户ID,产生一个JWT</font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" edge="1" parent="1"> |
| 129 | + <mxCell id="w-kv396jZH2R6bxmsxN8-2" value="<font color="#cc0000">3 如果正确,使用用户名/用户ID,产生一个JWT</font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" parent="1" edge="1"> |
130 | 130 | <mxGeometry relative="1" as="geometry">
|
131 | 131 | <mxPoint x="506" y="211" as="sourcePoint" />
|
132 | 132 | <Array as="points">
|
|
135 | 135 | <mxPoint x="511" y="230.9999999999999" as="targetPoint" />
|
136 | 136 | </mxGeometry>
|
137 | 137 | </mxCell>
|
138 |
| - <mxCell id="w-kv396jZH2R6bxmsxN8-3" value="登录后访问其它资源,
需要在请求header中携带token" style="verticalAlign=bottom;endArrow=block;entryX=0;entryY=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;strokeColor=#006EAF;" edge="1" parent="1"> |
| 138 | + <mxCell id="w-kv396jZH2R6bxmsxN8-3" value="登录后访问其它资源,
需要在请求header中携带token" style="verticalAlign=bottom;endArrow=block;entryX=0;entryY=0;shadow=0;strokeWidth=1;fillColor=#1ba1e2;strokeColor=#006EAF;" parent="1" edge="1"> |
139 | 139 | <mxGeometry relative="1" as="geometry">
|
140 | 140 | <mxPoint x="177" y="337.00000000000045" as="sourcePoint" />
|
141 | 141 | <mxPoint x="497" y="337.00000000000045" as="targetPoint" />
|
142 | 142 | </mxGeometry>
|
143 | 143 | </mxCell>
|
144 |
| - <mxCell id="w-kv396jZH2R6bxmsxN8-4" value="<font color="#cc0000">&nbsp;获取请求header中的tocken并进行解析<br>获取userID<br></font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" edge="1" parent="1"> |
| 144 | + <mxCell id="w-kv396jZH2R6bxmsxN8-4" value="<font color="#cc0000">&nbsp;获取请求header中的tocken并进行解析<br>获取userID<br></font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" parent="1" edge="1"> |
145 | 145 | <mxGeometry relative="1" as="geometry">
|
146 | 146 | <mxPoint x="506" y="350" as="sourcePoint" />
|
147 | 147 | <Array as="points">
|
|
150 | 150 | <mxPoint x="511" y="369.9999999999999" as="targetPoint" />
|
151 | 151 | </mxGeometry>
|
152 | 152 | </mxCell>
|
153 |
| - <mxCell id="w-kv396jZH2R6bxmsxN8-5" value="<font color="#cc0000">根据userID获取用户相关信息,如果有权限<br>则允许访问相关资源<br></font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" edge="1" parent="1"> |
| 153 | + <mxCell id="w-kv396jZH2R6bxmsxN8-5" value="<font color="#cc0000">根据userID获取用户相关信息,如果有权限<br>则允许访问相关资源<br></font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" parent="1" edge="1"> |
154 | 154 | <mxGeometry relative="1" as="geometry">
|
155 | 155 | <mxPoint x="506" y="388" as="sourcePoint" />
|
156 | 156 | <Array as="points">
|
|
159 | 159 | <mxPoint x="511" y="407.9999999999999" as="targetPoint" />
|
160 | 160 | </mxGeometry>
|
161 | 161 | </mxCell>
|
162 |
| - <mxCell id="w-kv396jZH2R6bxmsxN8-6" value="<font color="#cc0000">访问目标资源,响应给WEB前端<br></font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" edge="1" parent="1"> |
| 162 | + <mxCell id="w-kv396jZH2R6bxmsxN8-6" value="<font color="#cc0000">访问目标资源,响应给WEB前端<br></font>" style="edgeStyle=orthogonalEdgeStyle;html=1;align=left;spacingLeft=2;endArrow=block;rounded=0;entryX=1;entryY=0;fontColor=#0000FF;" parent="1" edge="1"> |
163 | 163 | <mxGeometry relative="1" as="geometry">
|
164 | 164 | <mxPoint x="507" y="428" as="sourcePoint" />
|
165 | 165 | <Array as="points">
|
|
168 | 168 | <mxPoint x="512" y="447.9999999999999" as="targetPoint" />
|
169 | 169 | </mxGeometry>
|
170 | 170 | </mxCell>
|
171 |
| - <mxCell id="w-kv396jZH2R6bxmsxN8-7" value="响应信息" style="verticalAlign=bottom;endArrow=block;entryX=1;entryY=0;shadow=0;strokeWidth=1;fillColor=#008a00;strokeColor=#005700;" edge="1" parent="1"> |
| 171 | + <mxCell id="w-kv396jZH2R6bxmsxN8-7" value="响应信息" style="verticalAlign=bottom;endArrow=block;entryX=1;entryY=0;shadow=0;strokeWidth=1;fillColor=#008a00;strokeColor=#005700;" parent="1" edge="1"> |
172 | 172 | <mxGeometry relative="1" as="geometry">
|
173 | 173 | <mxPoint x="494" y="460" as="sourcePoint" />
|
174 | 174 | <mxPoint x="179" y="460" as="targetPoint" />
|
|
0 commit comments