add outer/inner sequence
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
[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)
|
||||
Reference in New Issue
Block a user