POST history
This commit is contained in:
20
README.md
20
README.md
@@ -120,8 +120,8 @@ WS /api/search
|
||||
|
||||
|
||||
## 浏览记录
|
||||
GET /api/history
|
||||
|
||||
GET /api/history
|
||||
```javascript
|
||||
{
|
||||
page: 1,
|
||||
@@ -129,8 +129,8 @@ GET /api/history
|
||||
next: true,
|
||||
list: [
|
||||
{
|
||||
time: '2021-12-12 09:24:33',
|
||||
type: 'image'
|
||||
date: '2021-12-12 09:24:33',
|
||||
data: {
|
||||
id: 1234,
|
||||
width: 512,
|
||||
@@ -138,8 +138,8 @@ GET /api/history
|
||||
}
|
||||
},
|
||||
{
|
||||
time: '2021-12-12 09:24:33',
|
||||
type: 'article'
|
||||
date: '2021-12-12 09:24:33',
|
||||
data: {
|
||||
id: 1234,
|
||||
title: '文章标题'
|
||||
@@ -149,6 +149,20 @@ GET /api/history
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
POST /api/history
|
||||
```javascript
|
||||
[
|
||||
{
|
||||
type: 'image', // 浏览类型
|
||||
time: '2021-12-12 09:24:33', // 浏览时间
|
||||
data: {
|
||||
id: 1234
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
筛选
|
||||
1. 按类型筛选(type=image)
|
||||
2. 按时间区间筛选(date=20210203~20220102||20210203+||20210203-)
|
||||
|
Reference in New Issue
Block a user