Merge branch 'master' of https://git.deep-tek.com/blog/blog
This commit is contained in:
commit
dccb340737
@ -9,6 +9,16 @@ export_on_save:
|
|||||||
|
|
||||||
[TOC]
|
[TOC]
|
||||||
|
|
||||||
|
# Plantuml
|
||||||
|
|
||||||
|
```plantuml
|
||||||
|
Alice -> Bob: Authentication Request
|
||||||
|
Bob --> Alice: Authentication Response
|
||||||
|
|
||||||
|
Alice -> Bob: Another authentication Request
|
||||||
|
Alice <-- Bob: Another authentication Response
|
||||||
|
```
|
||||||
|
|
||||||
# 时序图
|
# 时序图
|
||||||
|
|
||||||
```plantuml
|
```plantuml
|
||||||
@ -26,6 +36,23 @@ export_on_save:
|
|||||||
其他服务 -> 用户: 信息test
|
其他服务 -> 用户: 信息test
|
||||||
@enduml
|
@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
|
# 时序图-相对路径1
|
||||||
|
|
||||||
```plantuml
|
```plantuml
|
||||||
@ -168,4 +195,4 @@ mindmapDiagram {
|
|||||||
--- test
|
--- test
|
||||||
-- test2
|
-- test2
|
||||||
@endmindmap
|
@endmindmap
|
||||||
```
|
```
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
---
|
---
|
||||||
puppeteer:
|
puppeteer:
|
||||||
landscape: false
|
landscape: false format: "A4"
|
||||||
format: "A4"
|
timeout: 3000 export_on_save:
|
||||||
timeout: 3000
|
puppeteer: true
|
||||||
export_on_save:
|
|
||||||
puppeteer: true
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# 时序图
|
# 时序图
|
||||||
@ -19,4 +17,22 @@ GitLab -> Tomcat: Hello, my name is GitLab
|
|||||||
Tomcat -> GitLab: Nice to meet you.
|
Tomcat -> GitLab: Nice to meet you.
|
||||||
Tomcat <-- GitLab: Nice to meet you too.
|
Tomcat <-- GitLab: Nice to meet you too.
|
||||||
@enduml
|
@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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user