Compare commits
12 Commits
Author | SHA1 | Date |
---|---|---|
|
c571ff0e94 | 1 month ago |
|
81198b24bb | 1 month ago |
|
9af08eb0c5 | 1 month ago |
|
4c61e0b797 | 1 month ago |
|
15d95a17ad | 1 month ago |
|
44505a49ac | 1 month ago |
|
7ece4566fc | 1 month ago |
|
60e7a8e3d3 | 1 month ago |
|
76f2269982 | 1 month ago |
|
54570fe521 | 1 month ago |
|
b1c9aad133 | 1 month ago |
|
a491ca3927 | 1 month ago |
@ -0,0 +1,75 @@
|
|||||||
|
设计图示(类图与时序图)
|
||||||
|
|
||||||
|
1. 类关系图(简化)
|
||||||
|
```mermaid
|
||||||
|
classDiagram
|
||||||
|
class DeptController
|
||||||
|
class EmployeeController
|
||||||
|
class EmployeeKpiController
|
||||||
|
class HireNumController
|
||||||
|
class SalaryLevelController
|
||||||
|
class LoginController
|
||||||
|
class CaptchaController
|
||||||
|
|
||||||
|
class IDeptService
|
||||||
|
class IEmployeeService
|
||||||
|
class IEmployeeKpiService
|
||||||
|
class IHireNumService
|
||||||
|
class ISalaryLevelService
|
||||||
|
|
||||||
|
class Dept
|
||||||
|
class Employee
|
||||||
|
class EmployeeKpi
|
||||||
|
class HireNum
|
||||||
|
class SalaryLevel
|
||||||
|
|
||||||
|
DeptController --> IDeptService
|
||||||
|
EmployeeController --> IEmployeeService
|
||||||
|
EmployeeKpiController --> IEmployeeKpiService
|
||||||
|
HireNumController --> IHireNumService
|
||||||
|
SalaryLevelController --> ISalaryLevelService
|
||||||
|
|
||||||
|
IDeptService --> Dept
|
||||||
|
IEmployeeService --> Employee
|
||||||
|
IEmployeeKpiService --> EmployeeKpi
|
||||||
|
IHireNumService --> HireNum
|
||||||
|
ISalaryLevelService --> SalaryLevel
|
||||||
|
```
|
||||||
|
|
||||||
|
2. 登录时序图
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant U as User
|
||||||
|
participant FE as Frontend(Vue)
|
||||||
|
participant BE as Backend(Spring Boot)
|
||||||
|
participant REDIS as Redis
|
||||||
|
|
||||||
|
U->>FE: 打开登录页
|
||||||
|
FE->>BE: GET /captchaImage
|
||||||
|
BE->>REDIS: 保存(uuid -> code)
|
||||||
|
BE-->>FE: uuid, img(Base64)
|
||||||
|
U->>FE: 输入 username/password/code
|
||||||
|
FE->>BE: POST /login {username,password,code,uuid}
|
||||||
|
BE->>REDIS: 校验 code
|
||||||
|
BE-->>FE: token
|
||||||
|
FE->>FE: 保存 Admin-Token(Cookie)
|
||||||
|
```
|
||||||
|
|
||||||
|
3. 分页查询时序图
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant FE as Frontend
|
||||||
|
participant CTRL as Controller
|
||||||
|
participant SVC as Service
|
||||||
|
participant DAO as Mapper/Repo
|
||||||
|
|
||||||
|
FE->>CTRL: GET /<module>/list?query
|
||||||
|
CTRL->>CTRL: startPage()
|
||||||
|
CTRL->>SVC: select*List(query)
|
||||||
|
SVC->>DAO: 查询
|
||||||
|
DAO-->>SVC: 列表数据
|
||||||
|
SVC-->>CTRL: 列表数据
|
||||||
|
CTRL-->>FE: TableDataInfo
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue