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
9a3e4c308a
commit
201baee320
1 changed files with 8 additions and 11 deletions
|
@ -1,24 +1,21 @@
|
|||
public class UserService {
|
||||
public String getUserName(int userId) {
|
||||
return "[Feature] User: " + userId;
|
||||
return "User" + userId;
|
||||
}
|
||||
|
||||
public boolean isUserActive(int userId) {
|
||||
System.out.println("Checking user activity in Feature branch");
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void updateUserStatus(int userId, boolean isActive) {
|
||||
System.out.println("Feature branch updating user status");
|
||||
// Extra logic here
|
||||
// Update user status in DB
|
||||
}
|
||||
|
||||
public void notifyUser(int userId) {
|
||||
// Send notification
|
||||
}
|
||||
|
||||
public void deleteUser(int userId) {
|
||||
System.out.println("Feature branch: deleting user " + userId);
|
||||
}
|
||||
|
||||
public void notifyUser(int userId, String message) {
|
||||
System.out.println("[Feature] Notifying user: " + message);
|
||||
// Extra feature logic
|
||||
// Delete user logic
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue