GetFileHistory
查询面板文件管理的操作历史记录,支持分页和关键词搜索。
- 路由:
POST /files - action:
GetFileHistory
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 GetFileHistory |
| p | 否 | Integer | 页码,默认 1 |
| limit | 否 | Integer | 每页条数,默认 20 |
| content | 否 | String | 搜索关键词,匹配时间和日志内容 |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| page | String | 分页 HTML |
| data | Array | 操作日志列表 |
示例
请求
POST /files HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=GetFileHistory&p=1&limit=10
响应
{"page": "<div>...</div>", "data": []}