Update UserService.java

Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
jeet041 2025-04-24 01:11:54 +05:30 committed by GitHub
parent 9a3e4c308a
commit 201baee320
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
} }
} }