| | |
| | | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得登录日志") |
| | | @PreAuthorize("@ss.hasPermission('system:login-log:query')") |
| | | public CommonResult<LoginLogRespVO> getLoginLog(Long id) { |
| | | LoginLogDO loginLog = loginLogService.getLoginLog(id); |
| | | return success(BeanUtils.toBean(loginLog, LoginLogRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得登录日志分页列表") |
| | | @PreAuthorize("@ss.hasPermission('system:login-log:query')") |
| | | public CommonResult<PageResult<LoginLogRespVO>> getLoginLogPage(@Valid LoginLogPageReqVO pageReqVO) { |
| | | PageResult<LoginLogDO> pageResult = loginLogService.getLoginLogPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, LoginLogRespVO.class)); |