mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:25:49 +00:00
Create UserService.java
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
c9481d6edf
commit
297c5f474d
1 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
// File: UserService.java
|
||||
public class UserService {
|
||||
public String getUserName(int userId) {
|
||||
return "User" + userId;
|
||||
}
|
||||
|
||||
public boolean isUserActive(int userId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void updateUserStatus(int userId, boolean isActive) {
|
||||
// update logic here
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue