GetLoginLog
≥4.8.1
接口功能
获取指定用户的访问数据
请求参数
参数 | 类型 | 必须 | 默认值 | 说明 |
---|---|---|---|---|
StaffCode | string | fasle | 访问用户的StaffCode | |
Start | string | false | 访问时间下限 | |
End | string | false | 访问时间上限 | |
Index | int | false | 0 | 分页页码 |
Size | int | false | 10 | 每页数据量 |
[info] 提示
- 返回记录按照登录时间正序排列
- 不传任何参数时将返回当前Application的所有访问日志的前10条
返回数据类型
参考返回示例
输入示例
{
"StaffCode": "##190111031015539",
"Start":"2019-11-12T09:35:39.659Z"
}
返回示例
{
"StatusCode": 0,
"Info": null,
"Data": {
"total": 4,
"rows": [
{
"_id": "5dca7d41cb52aba4d4712dcf",
"TenantId": "DemoTenant",
"AppCode": "DemoApp",
"StaffCode": "##190111031015539",
"StaffName": "DemoUser",
"RequestUrl": "/DemoTenant/DemoApp",
"LoginTime": "2019-11-12T09:36:51.299Z"
},
{
"_id": "5dca7dafcb52aba4d4713c70",
"TenantId": "DemoTenant",
"AppCode": "DemoApp",
"StaffCode": "##190111031015539",
"StaffName": "DemoUser",
"RequestUrl": "/DemoTenant/DemoApp?rviceTicket=cTR1N2t5Vk5sQjVDaklqbnZlamgydlRPNnNJK3EzZERLRzNUUJMHVmZkF0MEFaV1hDS3NXa2Z4MlJYVk5NVA==",
"LoginTime": "2019-11-12T09:38:54.984Z"
},
{
"_id": "5dca7e66cb52aba4d4715663",
"TenantId": "DemoTenant",
"AppCode": "DemoApp",
"StaffCode": "##190111031015539",
"StaffName": "DemoUser",
"RequestUrl": "/DemoTenant/DemoApp",
"LoginTime": "2019-11-12T09:41:58.82Z"
},
{
"_id": "5dca81e0cb52aba4d47205a0",
"TenantId": "DemoTenant",
"AppCode": "DemoApp",
"StaffCode": "##190111031015539",
"StaffName": "DemoUser",
"RequestUrl": "/DemoTenant/DemoApp",
"LoginTime": "2019-11-12T09:56:47.3Z"
}
],
"ErrorMessage": null
}
}