| | |
| | | * @author Lion Li |
| | | */ |
| | | @Validated |
| | | @Tag(name ="系统访问记录", description = "系统访问记录管理") |
| | | @Tag(name = "系统访问记录", description = "系统访问记录管理") |
| | | @RequiredArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/monitor/logininfor") |
| | |
| | | |
| | | private final ISysLogininforService logininforService; |
| | | |
| | | /** |
| | | * 获取系统访问记录列表 |
| | | */ |
| | | @SaCheckPermission("monitor:logininfor:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo<SysLogininfor> list(SysLogininfor logininfor, PageQuery pageQuery) { |
| | | return logininforService.selectPageLogininforList(logininfor, pageQuery); |
| | | } |
| | | |
| | | /** |
| | | * 导出系统访问记录列表 |
| | | */ |
| | | @Log(title = "登录日志", businessType = BusinessType.EXPORT) |
| | | @SaCheckPermission("monitor:logininfor:export") |
| | | @PostMapping("/export") |
| | |
| | | ExcelUtil.exportExcel(list, "登录日志", SysLogininfor.class, response); |
| | | } |
| | | |
| | | /** |
| | | * 获取系统访问记录详情 |
| | | */ |
| | | @SaCheckPermission("monitor:logininfor:remove") |
| | | @Log(title = "登录日志", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{infoIds}") |
| | |
| | | return toAjax(logininforService.deleteLogininforByIds(infoIds)); |
| | | } |
| | | |
| | | /** |
| | | * 清理系统访问记录 |
| | | */ |
| | | @SaCheckPermission("monitor:logininfor:remove") |
| | | @Log(title = "登录日志", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/clean") |