添加文件夹,包含更换背景功能详细设计。

remotes/checkIfPRContentChanged-1685692663648837377/develop
Mccranky83 2 years ago
parent 91af267372
commit b1bf78809c

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

@ -0,0 +1,20 @@
@startuml
start
:打开小米便签;
:请求获取任务列表;
if (获取成功?) then (yes)
:显示任务列表;
else (no)
:提示获取失败;
endif
:点击更换背景;
:请求获取背景菜单;
if (获取成功?) then (yes)
:显示背景菜单;
else (no)
:提示获取失败;
endif
:选择背景;
:设置背景;
stop
@enduml

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

@ -0,0 +1,16 @@
@startuml
[*] --> 关闭
关闭 --> 打开 : 打开小米便签
打开 --> 显示任务列表 : 请求获取任务列表成功
显示任务列表 --> 关闭 : 关闭小米便签
请求获取任务列表成功 --> 显示任务列表 : 显示任务列表
请求获取任务列表失败 --> 关闭 : 提示获取失败
显示任务列表 --> 更换背景 : 点击更换背景
更换背景 --> 显示背景菜单 : 请求获取背景菜单成功
显示背景菜单 --> 关闭 : 关闭背景菜单
请求获取背景菜单成功 --> 显示背景菜单 : 显示背景菜单
请求获取背景菜单失败 --> 更换背景 : 提示获取失败
显示背景菜单 --> 选择背景 : 选择背景
选择背景 --> 设置背景 : 确定
设置背景 --> 关闭 : 关闭小米便签
@enduml

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

@ -0,0 +1,61 @@
@startuml
class 任务 {
-ID: int
-标题: string
-描述: string
-截止日期: date
-状态: string
-便签文本: string
-便签颜色: string
-便签背景: string
' +获取ID(): int
' +获取标题(): string
' +获取描述(): string
' +获取截止日期(): date
' +获取状态(): string
' +设置标题(标题: string): void
' +设置描述(描述: string): void
' +设置截止日期(截止日期: date): void
' +设置状态(状态: string): void
' +设置文本(text: string): void
' +设置颜色(color: string): void
+设置背景(background: string): void
}
interface 任务服务 {
+创建任务(任务: 任务): 任务
+更新任务(任务: 任务): 任务
+删除任务(任务ID: int): void
+根据ID获取任务(任务ID: int): 任务
+获取所有任务(): List<任务>
}
interface 任务数据访问对象 {
+创建任务(任务: 任务): 任务
+更新任务(任务: 任务): 任务
+删除任务(任务ID: int): void
+根据ID获取任务(任务ID: int): 任务
+获取所有任务(): List<任务>
}
interface 便签菜单 {
+显示菜单(): void
+设置背景颜色(background: string): void
}
class 熔岩背景 {
+颜色: string
+设置背景颜色(): void
}
class 草原背景 {
+颜色: string
+设置背景颜色(): void
}
任务 -> 便签菜单
便签菜单 -> 熔岩背景
便签菜单 -> 草原背景
任务服务 ..> "数据层" : 使用
任务数据访问对象 ..> "数据层" : 使用
@enduml

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

@ -0,0 +1,22 @@
@startuml
actor 用户
participant 界面层
participant 业务层
participant 模型层
participant 数据层
用户 -> 界面层 : 打开小米便签
界面层 -> 业务层 : 请求获取任务列表
业务层 -> 数据层 : 请求获取任务列表
数据层 -> 数据库 : 查询任务列表
数据库 -> 数据层 : 返回任务列表
数据层 -> 业务层 : 返回任务列表
业务层 -> 界面层 : 返回任务列表
用户 -> 界面层 : 点击更换背景
界面层 -> 业务层 : 请求获取背景菜单
业务层 -> 模型层 : 创建便签菜单
模型层 -> 熔岩背景 : 创建熔岩背景
熔岩背景 -> 便签菜单 : 返回熔岩背景
模型层 -> 草原背景 : 创建草原背景
草原背景 -> 便签菜单 : 返回草原背景
业务层 -> 界面层 : 返回背景菜单
@enduml

Binary file not shown.
Loading…
Cancel
Save