mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 06:15:50 +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 class UserService {
|
||||||
public String getUserName(int userId) {
|
public String getUserName(int userId) {
|
||||||
return "[Feature] User: " + userId;
|
return "User" + userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUserActive(int userId) {
|
public boolean isUserActive(int userId) {
|
||||||
System.out.println("Checking user activity in Feature branch");
|
return true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateUserStatus(int userId, boolean isActive) {
|
public void updateUserStatus(int userId, boolean isActive) {
|
||||||
System.out.println("Feature branch updating user status");
|
// Update user status in DB
|
||||||
// Extra logic here
|
}
|
||||||
|
|
||||||
|
public void notifyUser(int userId) {
|
||||||
|
// Send notification
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deleteUser(int userId) {
|
public void deleteUser(int userId) {
|
||||||
System.out.println("Feature branch: deleting user " + userId);
|
// Delete user logic
|
||||||
}
|
|
||||||
|
|
||||||
public void notifyUser(int userId, String message) {
|
|
||||||
System.out.println("[Feature] Notifying user: " + message);
|
|
||||||
// Extra feature logic
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue