优化代码

This commit is contained in:
RuoYi
2025-08-27 16:01:28 +08:00
parent 7919af54da
commit e6a3415a71
5 changed files with 32 additions and 1 deletions

View File

@@ -161,6 +161,14 @@ public interface ISysUserService
*/
public boolean updateUserAvatar(Long userId, String avatar);
/**
* 更新用户登录信息IP和登录时间
*
* @param user 用户信息
* @return 结果
*/
public boolean updateLoginInfo(SysUser user);
/**
* 重置用户密码
*

View File

@@ -354,6 +354,17 @@ public class SysUserServiceImpl implements ISysUserService
return userMapper.updateUserAvatar(userId, avatar) > 0;
}
/**
* 更新用户登录信息IP和登录时间
*
* @param user 用户信息
* @return 结果
*/
public boolean updateLoginInfo(SysUser user)
{
return userMapper.updateLoginInfo(user) > 0;
}
/**
* 重置用户密码
*