类 LoginLogController
java.lang.Object
net.sohelp.boot.admin.core.base.BaseController
net.sohelp.boot.dev.web.system.log.LoginLogController
@RestController("dev-system-login-log")
@RequestMapping("/dev/system/login/log")
public class LoginLogController
extends BaseController
登录日志控制器
提供登录日志的分页查询和清空功能
-
字段概要
从类继承的字段 net.sohelp.boot.admin.core.base.BaseController
request, response -
构造器概要
构造器 -
方法概要
从类继承的方法 net.sohelp.boot.admin.core.base.BaseController
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, response, responseStream, success, success, success, success, validateToken
-
构造器详细资料
-
LoginLogController
public LoginLogController()
-
-
方法详细资料
-
page
@GetMapping("/page") @Permission("ADMIN") public ApiResult<Pager<Map<String,Object>>> page(@RequestParam Map<String, Object> paramMap) throws EntityException, EntityEventException分页查询登录日志 根据传入的参数进行分页查询,返回登录日志列表- 参数:
paramMap- 分页查询参数,包含页码、每页条数等分页信息- 返回:
- ApiResult无效输入:'<'Pager无效输入:'<'Map无效输入:'<'String, Object>>> 返回分页结果,包含登录日志数据列表
- 抛出:
EntityException- 实体操作异常EntityEventException- 实体事件异常
-
removeAll
@PostMapping("/removeAll") @Permission("ADMIN") public ApiResult<String> removeAll() throws Exception清空所有登录日志 删除pb_login_record表中的所有记录- 返回:
- ApiResult
操作结果,成功时返回提示信息 - 抛出:
Exception- 数据库操作异常
-