add log component: prolist

This commit is contained in:
Dawn1Ocean
2024-04-02 02:55:09 +08:00
parent 0d1665f609
commit 2cb4684130
17 changed files with 350 additions and 604 deletions
+31 -13
View File
@@ -220,23 +220,41 @@ request:
### 获取日志列表 `GET /admin/loglist`
request:
```json
{
"pageIndex": 1,
"size": 10,
}
```
data:
```json
{
"op": "宇航员",
"time": "2024-03-07T19:52:48.523303",
"operation": 2,
"target": 1,
"prev": {
"id": 114,
"info": "马嘉祺"
},
"curr": {
"id": 514,
"info": "何君琳"
}
},
"page": 1,
"total": 24,
"success": true,
"data": [
{
"op": "宇航员",
"avatar": "https://...",
"time": "2024-03-07T19:52:48.523303",
"operation": 2,
"target": 1,
"prev": {
"id": 114,
"info": "马嘉祺"
},
"curr": {
"id": 514,
"info": "何君琳"
}
},
// ...
]
}
```
前端显示的信息:"{op} 于 {time} {operation} 了 {target}:{prev.info} -> {curr.info}"