mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 18:06:23 +00:00
33 lines
2.8 KiB
Plaintext
33 lines
2.8 KiB
Plaintext
[From string (line 45) ]
|
|
|
|
@startuml user-프로필수정
|
|
|
|
|
|
|
|
|
|
...
|
|
... ( skipping 191 lines )
|
|
...
|
|
|
|
Controller -> Controller: @Valid 어노테이션 검증\n(이메일 형식, 필드 길이 등)
|
|
|
|
Controller -> Service: updateProfile(userId, UpdateProfileRequest)
|
|
activate Service
|
|
|
|
== 1단계: 기존 사용자 정보 조회 ==
|
|
|
|
Service -> UserRepo: findById(userId)
|
|
activate UserRepo
|
|
UserRepo -> UserDB: SELECT * FROM users\nWHERE user_id = ?
|
|
activate UserDB
|
|
UserDB --> UserRepo: 사용자 정보
|
|
deactivate UserDB
|
|
UserRepo --> Service: User 엔티티
|
|
deactivate UserRepo
|
|
|
|
alt 사용자 없음
|
|
Service --> Controller: throw UserNotFoundException\n("사용자를 찾을 수 없습니다")
|
|
Controller --> [: 404 Not Found\n{"error": "사용자를 찾을 수 없습니다"}
|
|
^^^^^
|
|
Syntax Error? (Assumed diagram type: sequence)
|