mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 20:06:23 +00:00
33 lines
3.5 KiB
Plaintext
33 lines
3.5 KiB
Plaintext
[From string (line 49) ]
|
|
|
|
@startuml user-로그인
|
|
|
|
|
|
|
|
|
|
...
|
|
... ( skipping 195 lines )
|
|
...
|
|
activate AuthService
|
|
|
|
== 1단계: 사용자 조회 ==
|
|
|
|
AuthService -> Service: findByPhoneNumber(phoneNumber)
|
|
activate Service
|
|
Service -> UserRepo: findByPhoneNumber(phoneNumber)
|
|
activate UserRepo
|
|
UserRepo -> UserDB: SELECT user_id, password_hash,\nrole, name, email\nFROM users\nWHERE phone_number = ?
|
|
activate UserDB
|
|
UserDB --> UserRepo: 사용자 정보 또는 NULL
|
|
deactivate UserDB
|
|
UserRepo --> Service: Optional<User>
|
|
deactivate UserRepo
|
|
Service --> AuthService: Optional<User>
|
|
deactivate Service
|
|
|
|
alt 사용자 없음
|
|
AuthService --> Controller: throw AuthenticationFailedException\n("전화번호 또는 비밀번호를 확인해주세요")
|
|
Controller --> [: 401 Unauthorized\n{"error": "전화번호 또는 비밀번호를\n확인해주세요"}
|
|
^^^^^
|
|
Syntax Error? (Assumed diagram type: sequence)
|