获取操作日志列表
POST
/myauth/web/getOperationLogList仅账号为admin的用户可以使用此接口
请求参数
Header 参数
token
string
必需
登录成功后返回的token
示例值:
123456
Body 参数application/json
id
string
ID
operationUser
string
账号
operationUa
string
浏览器UA
operationIp
string
IP
operationTime
integer
操作时间
operationType
string
操作类型
pageIndex
integer
必需
pageSize
integer
必需
orders
array [object {2}]
必需
column
string
字段名
必须严格遵守系统返回的字段名,即原样的驼峰命名法
asc
boolean
是否正序排序
示例
{
"pageIndex": 1,
"pageSize": 10,
"orders": [
{
"column": null,
"asc": false
}
],
"operationUser": null,
"operationUa": null,
"operationTime": null,
"operationIp": null,
"id": null,
"operationType": null
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {6}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array [object {2}]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例成功示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 1,
"operationUser": "admin",
"operationUa": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.62",
"operationIp": "192.168.1.3",
"operationTime": 1658151268,
"operationType": "登录后台"
},
{
"id": 2,
"operationUser": "admin",
"operationUa": "apifox/1.0.0 (https://www.apifox.cn)",
"operationIp": "192.168.1.3",
"operationTime": 1658153842,
"operationType": "登录后台"
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [
{
"column": "",
"asc": false
}
],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1658153850985
}
最后修改时间: 2 年前