mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-28 04:57:17 +08:00
新增:新增系统监控/登录日志功能,优化日志表结构,并新增记录错误信息(非未知异常不记录异常详情,只记录错误信息)
This commit is contained in:
@@ -79,4 +79,13 @@ public interface UserService {
|
||||
* 用户ID
|
||||
*/
|
||||
void updateEmail(String newEmail, String currentPassword, Long userId);
|
||||
|
||||
/**
|
||||
* 根据 ID 查询
|
||||
*
|
||||
* @param userId
|
||||
* 用户ID
|
||||
* @return 用户信息
|
||||
*/
|
||||
SysUser getById(Long userId);
|
||||
}
|
||||
|
||||
@@ -141,14 +141,8 @@ public class UserServiceImpl implements UserService {
|
||||
LoginHelper.updateLoginUser(loginUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 ID 查询
|
||||
*
|
||||
* @param userId
|
||||
* 用户 ID
|
||||
* @return 用户信息
|
||||
*/
|
||||
private SysUser getById(Long userId) {
|
||||
@Override
|
||||
public SysUser getById(Long userId) {
|
||||
ValidationUtils.exIfNull(userId, "用户不存在");
|
||||
SysUser sysUser = userMapper.selectById(userId);
|
||||
ValidationUtils.exIfNull(sysUser, String.format("ID为 [%s] 的用户已不存在", userId));
|
||||
|
||||
Reference in New Issue
Block a user