This commit is contained in:
chenp 2021-10-07 21:06:12 +08:00
commit dccb340737
2 changed files with 50 additions and 7 deletions

View File

@ -9,6 +9,16 @@ export_on_save:
[TOC]
# Plantuml
```plantuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
```
# 时序图
```plantuml
@ -26,6 +36,23 @@ export_on_save:
其他服务 -> 用户: 信息test
@enduml
```
# 时序图1
```uml
@startuml
!include https://deep-tek.com/puml/core.puml
用户 -> 认证中心: 登录操作
认证中心 -> 缓存: 存放(key=token+ip,value=token)token
用户 <- 认证中心 : 认证成功返回token
用户 -> 认证中心: 下次访问头部携带token认证
认证中心 <- 缓存: key=token+ip获取token
其他服务 <- 认证中心: 存在且校验成功则跳转到用户请求的其他服务
其他服务 -> 用户: 信息test
@enduml
```
# 时序图-相对路径1
```plantuml

View File

@ -1,9 +1,7 @@
---
puppeteer:
landscape: false
format: "A4"
timeout: 3000
export_on_save:
landscape: false format: "A4"
timeout: 3000 export_on_save:
puppeteer: true
---
@ -20,3 +18,21 @@ Tomcat -> GitLab: Nice to meet you.
Tomcat <-- GitLab: Nice to meet you too.
@enduml
```
# 引入模块
```plantuml
@startuml
!include <C4/C4_Container>
Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")
System_Ext(extSystemAlias, "Label", "Optional Description")
Rel(personAlias, containerAlias, "Label", "Optional Technology")
Rel_U(systemAlias, extSystemAlias, "Label", "Optional Technology")
@enduml
```