add log api & mock
parent
fbaedaad0e
commit
166c8b6319
12
doc/api.md
12
doc/api.md
|
|
@ -227,6 +227,16 @@ data:
|
|||
"op": "宇航员",
|
||||
"time": "2024-03-07T19:52:48.523303",
|
||||
"operation": 2,
|
||||
"target": {}, //TODO
|
||||
"target": 1,
|
||||
"prev": {
|
||||
"id": 114,
|
||||
"info": "马嘉祺"
|
||||
},
|
||||
"curr": {
|
||||
"id": 514,
|
||||
"info": "何君琳"
|
||||
}
|
||||
},
|
||||
```
|
||||
|
||||
前端显示的信息:"{op} 于 {time} {operation} 了 {target}:{prev.info} -> {curr.info}"
|
||||
|
|
|
|||
10
mock/api.ts
10
mock/api.ts
|
|
@ -47,7 +47,15 @@ const api = {
|
|||
op: '宇航员',
|
||||
time: '2024-03-07T19:52:48.523303',
|
||||
operation: 2,
|
||||
target: {}, //TODO
|
||||
target: 1,
|
||||
prev: {
|
||||
id: 114,
|
||||
info: '马嘉祺',
|
||||
},
|
||||
curr: {
|
||||
id: 514,
|
||||
info: '何君琳',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,13 +14,7 @@ const data = [
|
|||
].map((item) => ({
|
||||
title: item,
|
||||
subTitle: <Tag color='#5BD8A6'>语雀专栏</Tag>,
|
||||
actions: [
|
||||
<a key='invite'>邀请</a>,
|
||||
<a key='operate'>操作</a>,
|
||||
<a key='rest'>
|
||||
<EllipsisOutlined />
|
||||
</a>,
|
||||
],
|
||||
actions: [<EllipsisOutlined />],
|
||||
avatar:
|
||||
'https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg',
|
||||
content: (
|
||||
|
|
|
|||
Loading…
Reference in New Issue