api-service-class.plantuml 796 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @startuml
  2. skinparam style strictuml
  3. class UserController {
  4. +getUser(userId: Long): User
  5. +createUser(user: User): User
  6. +updateUser(userId: Long, user: User): User
  7. +deleteUser(userId: Long): void
  8. }
  9. class UserService {
  10. +findUserById(userId: Long): User
  11. +saveUser(user: User): User
  12. +updateUser(userId: Long, user: User): User
  13. +removeUser(userId: Long): void
  14. }
  15. class UserRepository {
  16. +findById(userId: Long): User
  17. +save(user: User): User
  18. +deleteById(userId: Long): void
  19. }
  20. class User {
  21. -id: Long
  22. -name: String
  23. -email: String
  24. +getId(): Long
  25. +setId(id: Long): void
  26. +getName(): String
  27. +setName(name: String): void
  28. +getEmail(): String
  29. +setEmail(email: String): void
  30. }
  31. UserController --> UserService
  32. UserService --> UserRepository
  33. UserRepository --> User
  34. @enduml