123456789101112131415161718192021222324252627282930313233343536373839 |
- @startuml
- skinparam style strictuml
- class UserController {
- +getUser(userId: Long): User
- +createUser(user: User): User
- +updateUser(userId: Long, user: User): User
- +deleteUser(userId: Long): void
- }
- class UserService {
- +findUserById(userId: Long): User
- +saveUser(user: User): User
- +updateUser(userId: Long, user: User): User
- +removeUser(userId: Long): void
- }
- class UserRepository {
- +findById(userId: Long): User
- +save(user: User): User
- +deleteById(userId: Long): void
- }
- class User {
- -id: Long
- -name: String
- -email: String
- +getId(): Long
- +setId(id: Long): void
- +getName(): String
- +setName(name: String): void
- +getEmail(): String
- +setEmail(email: String): void
- }
- UserController --> UserService
- UserService --> UserRepository
- UserRepository --> User
- @enduml
|