mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:25:49 +00:00
Update UserService.java
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
a3b9c39b86
commit
4463e5fa34
1 changed files with 7 additions and 3 deletions
|
@ -1,14 +1,18 @@
|
|||
// File: UserService.java
|
||||
public class UserService {
|
||||
public String getUserName(int userId) {
|
||||
return "User" + userId;
|
||||
return "FeatureBranch_User_" + userId; // Changed logic
|
||||
}
|
||||
|
||||
public boolean isUserActive(int userId) {
|
||||
return true;
|
||||
return false; // Changed logic
|
||||
}
|
||||
|
||||
public void updateUserStatus(int userId, boolean isActive) {
|
||||
// update logic here
|
||||
System.out.println("Feature Branch: Updating user " + userId + " to " + (isActive ? "active" : "inactive"));
|
||||
}
|
||||
|
||||
public void deactivateUser(int userId) {
|
||||
System.out.println("Feature Branch: Deactivating user " + userId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue