支持接口鉴权,支持修改密码,

This commit is contained in:
panlinlin
2021-04-14 16:33:10 +08:00
parent 123ce171d2
commit cb5849d8a1
20 changed files with 752 additions and 16 deletions

View File

@@ -8,5 +8,5 @@ public interface IUserService {
boolean changePassword(int id, String password);
User getUserByUsername(String username);
}

View File

@@ -24,4 +24,9 @@ public class UserServiceImpl implements IUserService {
user.setPassword(password);
return userMapper.update(user) > 0;
}
@Override
public User getUserByUsername(String username) {
return userMapper.getUserByUsername(username);
}
}