Compare commits

...

2 Commits

2 changed files with 15 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -75,6 +75,12 @@ package "③ Facade Pattern [Structural]" #FFF8E1 {
class "LocationService\n<<Service>>" as LocationService <<Subsystem>>
class "ActivityLogService\n<<Service>>" as ActivityService <<Subsystem>>
class "SosService\n<<Service>>" as SosServiceFacade <<Subsystem>>
class "NotificationService\n<<Service>>" as NotifServiceFacade <<Subsystem>>
class "GuardianDashboardController\n<<Client>>" as GuardianDashboardController {
+ getDashboard(guardianId) : ResponseEntity
' GET /api/v1/guardian/dashboard
}
WalkGuideBlocFacade --> VoiceCommandHandler : processText()
VoiceCommandHandler --> SttServiceFacade : delegates
@ -82,9 +88,11 @@ package "③ Facade Pattern [Structural]" #FFF8E1 {
VoiceCommandHandler --> GoRouterFacade : delegates
VoiceCommandHandler --> SosBlocFacade : delegates
GuardianDashboardController --> GuardianDashboardService : getDashboard()
GuardianDashboardService --> LocationService : aggregates
GuardianDashboardService --> ActivityService : aggregates
GuardianDashboardService --> SosServiceFacade : aggregates
GuardianDashboardService --> NotifServiceFacade : aggregates
}
note right of VoiceCommandHandler
@ -94,4 +102,11 @@ note right of VoiceCommandHandler
→ route navigation → BLoC event dispatch
end note
note right of GuardianDashboardService
Client (Controller) hanya panggil getDashboard(guardianId)
Facade mengagregasi 4 service sekaligus:
location + activity + SOS + notification
→ satu response, satu request dari Flutter
end note
@enduml