From 971df3b6ab8c2cbd0af830c738ff60c41c054ec4 Mon Sep 17 00:00:00 2001 From: chenp Date: Wed, 30 Jun 2021 09:32:13 +0800 Subject: [PATCH 1/3] Plantuml --- samples/demo01.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/samples/demo01.md b/samples/demo01.md index 847c94a..4603c5c 100644 --- a/samples/demo01.md +++ b/samples/demo01.md @@ -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 @@ -168,4 +178,4 @@ mindmapDiagram { --- test -- test2 @endmindmap -``` \ No newline at end of file +``` From d5573d6c5cee69c2c501004682c1a86f704d67db Mon Sep 17 00:00:00 2001 From: chenp Date: Wed, 25 Aug 2021 23:04:35 +0800 Subject: [PATCH 2/3] update --- samples/demo01.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/samples/demo01.md b/samples/demo01.md index 847c94a..bb61718 100644 --- a/samples/demo01.md +++ b/samples/demo01.md @@ -26,6 +26,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 From a5a0b094a39f317809898a8236c5272081b3a44c Mon Sep 17 00:00:00 2001 From: chenp Date: Fri, 3 Sep 2021 15:03:22 +0800 Subject: [PATCH 3/3] demo02 --- samples/demo02.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/samples/demo02.md b/samples/demo02.md index 7d79c83..266bd38 100644 --- a/samples/demo02.md +++ b/samples/demo02.md @@ -1,10 +1,8 @@ --- puppeteer: - landscape: false - format: "A4" - timeout: 3000 -export_on_save: - puppeteer: true +landscape: false format: "A4" +timeout: 3000 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 too. @enduml - ``` \ No newline at end of file + ``` + +# 引入模块 + +```plantuml +@startuml +!include + +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 +```