You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HospitalSystem/diagrams/admin_sequence.puml

42 lines
1.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

@startuml
' 管理员顺序图:登录 → 管理用户 → 发布公告 → 查看/处理消息
actor 管理员
participant "前端Admin页面" as Front
participant "AdminServlet/Controller" as Controller
participant "AdminService" as Service
participant "AdminDao/DB" as DB
管理员 -> Front : 打开Admin登录页
Front -> Controller : 提交登录信息
Controller -> Service : 校验管理员账号
Service -> DB : 查询 admin 表
DB --> Service : 返回 admin 记录
Service --> Controller : 登录成功/失败
Controller --> Front : 返回登录结果
== 发布公告 ==
管理员 -> Front : 打开公告管理页面
Front -> Controller : 提交公告内容
Controller -> Service : 调用 AnnouncmentService.addAnnouncement()
Service -> DB : 插入 announcement 表
DB --> Service : 返回结果
Service --> Controller : 返回插入结果
Controller --> Front : 显示发布结果
== 管理用户(增删改) ==
管理员 -> Front : 进入用户管理
Front -> Controller : 请求用户列表
Controller -> Service : 调用 AdminService 获取用户数据
Service -> DB : 查询 user/doctor/client 表
DB --> Service : 返回列表
Service --> Controller : 返回数据
Controller --> Front : 渲染用户列表
== 处理留言/消息 ==
Front -> Controller : 请求未处理留言/消息
Controller -> Service : 查询 Message/MessageBoard
Service -> DB : 查询对应表
DB --> Service : 返回消息
Service --> Controller : 返回结果
Controller --> Front : 展示并可操作(删除/回复)
@enduml