mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Update UserService.java
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
201baee320
commit
1e7674896c
1 changed files with 5 additions and 5 deletions
|
@ -1,21 +1,21 @@
|
||||||
public class UserService {
|
public class UserService {
|
||||||
public String getUserName(int userId) {
|
public String getUserName(int userId) {
|
||||||
return "User" + userId;
|
return "Feature: User#" + userId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUserActive(int userId) {
|
public boolean isUserActive(int userId) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateUserStatus(int userId, boolean isActive) {
|
public void updateUserStatus(int userId, boolean isActive) {
|
||||||
// Update user status in DB
|
System.out.println("Feature branch: updating status to " + isActive);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void notifyUser(int userId) {
|
public void notifyUser(int userId) {
|
||||||
// Send notification
|
System.out.println("Feature branch: notifying user " + userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deleteUser(int userId) {
|
public void deleteUser(int userId) {
|
||||||
// Delete user logic
|
System.out.println("Feature branch: deleting user " + userId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue