CSDN Markdown流程图示例

CSDN Markdown流程图示例

  • 示例1
  • 示例2
  • 示例3
  • 示例4

示例1

```mermaid
flowchat
st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?

st->op->cond
cond(yes)->e
cond(no)->op
```
Created with Raphaël 2.2.0 开始 我的操作 确认? 结束 yes no

示例2

```mermaid
flowchat
start=>start: 开始
end=>end: 结束
login=>operation: 用户登录
is_login_sucess=>condition: 登录是否成功?
buy=>operation: 抢购
Is_the_stock_sufficient=>condition: 库存是否充足?
lock_inventory=>operation: 锁定库存
prompt=>operation: 给出提示
pay=>operation: 支付
whether_to_pay_successfully=>condition: 支付是否成功?
reduce_inventory=>operation: 减库存
whether_it_is_more_than_two_hours=>condition: 是否超过两个小时?
release_inventory=>operation: 释放库存

start->login
login->is_login_sucess
is_login_sucess(yes)->buy
is_login_sucess(no)->login
buy->Is_the_stock_sufficient
Is_the_stock_sufficient(yes)->lock_inventory
Is_the_stock_sufficient(no)->prompt->end
lock_inventory->pay->whether_to_pay_successfully
whether_to_pay_successfully(yes)->reduce_inventory->end
whether_to_pay_successfully(no)->whether_it_is_more_than_two_hours
whether_it_is_more_than_two_hours(yes)->release_inventory->end
whether_it_is_more_than_two_hours(no)->lock_inventory
```
Created with Raphaël 2.2.0 开始 用户登录 登录是否成功? 抢购 库存是否充足? 锁定库存 支付 支付是否成功? 减库存 结束 是否超过两个小时? 释放库存 给出提示 yes no yes no yes no yes no

示例3

```mermaid
flowchat
start=>start: 开始
end=>end: 结束

login_with_username=>operation: 用户名密码登录
login_with_weixin=>operation: 微信登录
login_with_alipay=>operation: 支付宝登录
login_with_third=>operation: 用第三方登录
whether_login_is_successful=>condition: 登录是否成功?
whether_to_login_by_username=>condition: 是否以用户方式登录?
is_login_with_weixin=>condition: 是否以微信方式登录?
buy=>operation: 抢购
login=>operation: 登录

start->whether_to_login_by_username
whether_to_login_by_username(yes)->login_with_username
whether_to_login_by_username(no)->login_with_third
login_with_username->login
login_with_third->is_login_with_weixin
is_login_with_weixin(yes)->login_with_weixin->login
is_login_with_weixin(no)->login_with_alipay->login
login->whether_login_is_successful
whether_login_is_successful(yes)->buy
whether_login_is_successful(no)->whether_to_login_by_username
buy->end
```
Created with Raphaël 2.2.0 开始 是否以用户方式登录? 用户名密码登录 登录 登录是否成功? 抢购 结束 注册 注册是否成功? 用第三方登录 是否以微信方式登录? 微信登录 支付宝登录 yes no yes no yes no yes no

示例4

```mermaid
flowchat
start=>start: 开始
end=>end: 结束

login_with_username=>operation: 用户名密码登录
login_with_weixin=>operation: 微信登录
login_with_alipay=>operation: 支付宝登录
login_with_third=>operation: 用第三方登录
whether_login_is_successful=>condition: 登录是否成功?
whether_to_login_by_username=>condition: 是否以用户方式登录?
is_login_with_weixin=>condition: 是否以微信方式登录?
login=>operation: 用户登录
sigin_up=>operation: 注册
whether_sigin_up_is_successful=>condition: 注册是否成功?

buy=>operation: 抢购
Is_the_stock_sufficient=>condition: 库存是否充足?
lock_inventory=>operation: 锁定库存
prompt=>operation: 给出提示
pay=>operation: 支付
whether_to_pay_successfully=>condition: 支付是否成功?
reduce_inventory=>operation: 减库存
whether_it_is_more_than_two_hours=>condition: 是否超过两个小时?
release_inventory=>operation: 释放库存

start->whether_to_login_by_username
whether_to_login_by_username(yes)->login_with_username->login
whether_to_login_by_username(no)->is_login_with_weixin
is_login_with_weixin(yes)->login_with_weixin->login
is_login_with_weixin(no)->login_with_alipay->login
login->whether_login_is_successful
whether_login_is_successful(yes)->buy
whether_login_is_successful(no)->sigin_up
sigin_up->whether_sigin_up_is_successful
whether_sigin_up_is_successful(yes)->whether_to_login_by_username
whether_sigin_up_is_successful(no)->end
buy->Is_the_stock_sufficient
Is_the_stock_sufficient(yes)->lock_inventory
Is_the_stock_sufficient(no)->prompt->end
lock_inventory->pay->whether_to_pay_successfully
whether_to_pay_successfully(yes)->reduce_inventory->end
whether_to_pay_successfully(no)->whether_it_is_more_than_two_hours
whether_it_is_more_than_two_hours(yes)->release_inventory->end
whether_it_is_more_than_two_hours(no)->lock_inventory
```
Created with Raphaël 2.2.0 开始 是否以用户方式登录? 用户名密码登录 用户登录 登录是否成功? 抢购 库存是否充足? 锁定库存 支付 支付是否成功? 减库存 结束 是否超过两个小时? 释放库存 给出提示 注册 注册是否成功? 是否以微信方式登录? 微信登录 支付宝登录 yes no yes no yes no yes no yes no yes no yes no

你可能感兴趣的:(Design)