84 lines
7.2 KiB
Plaintext
84 lines
7.2 KiB
Plaintext
<mxfile>
|
|
<diagram name="用户登录序列图" id="seq-login">
|
|
<mxGraphModel dx="900" dy="750" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="900" pageHeight="750" math="0" shadow="0">
|
|
<root>
|
|
<mxCell id="0"/>
|
|
<mxCell id="1" parent="0"/>
|
|
<!-- 参与者 -->
|
|
<mxCell id="a1" value="用户" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;fontSize=12;" vertex="1" parent="1">
|
|
<mxGeometry x="80" y="30" width="30" height="50" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="a2" value="前端系统" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;shadow=1;" vertex="1" parent="1">
|
|
<mxGeometry x="250" y="40" width="100" height="35" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="a3" value="后台系统" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;shadow=1;" vertex="1" parent="1">
|
|
<mxGeometry x="470" y="40" width="100" height="35" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="a4" value="数据库" style="rounded=0;whiteSpace=wrap;html=1;fontSize=12;fillColor=#ffffff;strokeColor=#000000;shadow=1;" vertex="1" parent="1">
|
|
<mxGeometry x="700" y="40" width="80" height="35" as="geometry"/>
|
|
</mxCell>
|
|
<!-- 生命线 -->
|
|
<mxCell id="l1" style="endArrow=none;dashed=1;strokeColor=#999999;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="95" y="90" as="sourcePoint"/><mxPoint x="95" y="700" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="l2" style="endArrow=none;dashed=1;strokeColor=#999999;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="300" y="90" as="sourcePoint"/><mxPoint x="300" y="700" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="l3" style="endArrow=none;dashed=1;strokeColor=#999999;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="520" y="90" as="sourcePoint"/><mxPoint x="520" y="700" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="l4" style="endArrow=none;dashed=1;strokeColor=#999999;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="740" y="90" as="sourcePoint"/><mxPoint x="740" y="700" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<!-- 激活条 -->
|
|
<mxCell id="act1" style="rounded=0;fillColor=#ffffff;strokeColor=#000000;" vertex="1" parent="1">
|
|
<mxGeometry x="90" y="100" width="10" height="580" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="act2" style="rounded=0;fillColor=#ffffff;strokeColor=#000000;" vertex="1" parent="1">
|
|
<mxGeometry x="295" y="130" width="10" height="520" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="act3" style="rounded=0;fillColor=#ffffff;strokeColor=#000000;" vertex="1" parent="1">
|
|
<mxGeometry x="515" y="230" width="10" height="330" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="act4" style="rounded=0;fillColor=#ffffff;strokeColor=#000000;" vertex="1" parent="1">
|
|
<mxGeometry x="735" y="290" width="10" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<!-- 消息 -->
|
|
<mxCell id="m1" value="打开系统" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;curved=1;" edge="1" parent="1">
|
|
<mxGeometry x="-0.5" relative="1" as="geometry"><mxPoint x="90" y="120" as="sourcePoint"/><mxPoint x="60" y="140" as="targetPoint"/><Array as="points"><mxPoint x="50" y="120"/><mxPoint x="50" y="140"/></Array><mxPoint as="offset" x="0" y="-10"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m2" value="进入登录页面" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="100" y="170" as="sourcePoint"/><mxPoint x="295" y="170" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m3" value="输入用户名和密码" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="100" y="220" as="sourcePoint"/><mxPoint x="295" y="220" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m4" value="提交登录请求 /api/auth/login" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="305" y="270" as="sourcePoint"/><mxPoint x="515" y="270" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m5" value="查询用户信息" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="525" y="310" as="sourcePoint"/><mxPoint x="735" y="310" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m6" value="返回用户数据" style="dashed=1;endArrow=open;endFill=0;strokeColor=#000000;fontSize=10;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="735" y="350" as="sourcePoint"/><mxPoint x="525" y="350" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m7" value="验证密码(BCrypt)" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;curved=1;" edge="1" parent="1">
|
|
<mxGeometry x="-0.5" relative="1" as="geometry"><mxPoint x="525" y="390" as="sourcePoint"/><mxPoint x="560" y="410" as="targetPoint"/><Array as="points"><mxPoint x="570" y="390"/><mxPoint x="570" y="410"/></Array><mxPoint as="offset" x="0" y="-10"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m8" value="生成Sa-Token令牌" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;curved=1;" edge="1" parent="1">
|
|
<mxGeometry x="-0.5" relative="1" as="geometry"><mxPoint x="525" y="440" as="sourcePoint"/><mxPoint x="560" y="460" as="targetPoint"/><Array as="points"><mxPoint x="570" y="440"/><mxPoint x="570" y="460"/></Array><mxPoint as="offset" x="0" y="-10"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m9" value="返回token和用户信息" style="dashed=1;endArrow=open;endFill=0;strokeColor=#000000;fontSize=10;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="515" y="500" as="sourcePoint"/><mxPoint x="305" y="500" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m10" value="存储token到localStorage" style="endArrow=block;endFill=1;strokeColor=#000000;fontSize=10;curved=1;" edge="1" parent="1">
|
|
<mxGeometry x="-0.5" relative="1" as="geometry"><mxPoint x="305" y="550" as="sourcePoint"/><mxPoint x="340" y="570" as="targetPoint"/><Array as="points"><mxPoint x="350" y="550"/><mxPoint x="350" y="570"/></Array><mxPoint as="offset" x="0" y="-10"/></mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="m11" value="跳转到对应角色首页" style="dashed=1;endArrow=open;endFill=0;strokeColor=#000000;fontSize=10;" edge="1" parent="1">
|
|
<mxGeometry relative="1" as="geometry"><mxPoint x="295" y="620" as="sourcePoint"/><mxPoint x="100" y="620" as="targetPoint"/></mxGeometry>
|
|
</mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile>
|