mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2026-06-13 01:49:10 +00:00
add sequence
This commit is contained in:
@@ -88,10 +88,10 @@ OwnerFE -> Owner: 추첨 확인 다이얼로그 표시\n"당첨자를 추첨하
|
||||
|
||||
Owner -> OwnerFE: 확인 버튼 클릭
|
||||
|
||||
OwnerFE -> Gateway: POST /api/v1/participations/draw\n{eventId, 당첨인원, 매장방문가산점옵션}
|
||||
OwnerFE -> Gateway: POST /api/v1/events/{eventId}/draw-winners\n{당첨인원, 매장방문가산점옵션}
|
||||
activate Gateway
|
||||
|
||||
Gateway -> PartService: POST /participations/draw-winners\n{eventId, winnerCount, visitBonus}
|
||||
Gateway -> PartService: POST /events/{eventId}/draw-winners\n{winnerCount, visitBonus}
|
||||
activate PartService
|
||||
|
||||
PartService -> PartDB: SELECT * FROM participants\nWHERE event_id = ? AND is_winner = false
|
||||
@@ -118,26 +118,6 @@ end note
|
||||
PartDB --> PartService: 로그 저장 완료
|
||||
deactivate PartDB
|
||||
|
||||
PartService -> Kafka: Publish Event\n"WinnerSelected"\n{eventId, winners[], timestamp}
|
||||
activate Kafka
|
||||
note right of Kafka
|
||||
Topic: participant-events
|
||||
Event: WinnerSelected
|
||||
Data: {
|
||||
eventId: UUID,
|
||||
winners: [
|
||||
{participantId, name, phone}
|
||||
],
|
||||
timestamp: datetime
|
||||
}
|
||||
end note
|
||||
|
||||
Kafka --> Analytics: Subscribe Event\n"WinnerSelected"
|
||||
activate Analytics
|
||||
Analytics -> Analytics: 당첨자 통계 업데이트\n- 당첨자 수 집계\n- 채널별 당첨 분포
|
||||
deactivate Analytics
|
||||
deactivate Kafka
|
||||
|
||||
PartService --> Gateway: 200 OK\n{당첨자목록, 추첨로그ID}
|
||||
deactivate PartService
|
||||
|
||||
|
||||
Reference in New Issue
Block a user