F
PlatformCập nhật 2026-06-30 · platform/PLATFORM-INTEGRATIONS.md

Platform Integrations — Bản đồ tích hợp

Tích hợp nội bộ (giữa module ↔ spine ↔ engine) và ngoài (3rd-party). Mọi tích hợp đi qua port/adapter, không rò rỉ vào domain.

Tích hợp NỘI BỘ

TừTớiQuaMục đích
Mọi moduleIdentityport/SDKAuth, RBAC
Mọi moduleTenantportBrand/theme/domain, RLS
Booking, F&B, Tour, MedicalPaymentport + webhookThu tiền, đối soát
AffiliatePaymentportPayout hoa hồng
Mọi moduleNotificationport + queueEmail/SMS/Zalo, xác nhận
Booking, CRM, SearchSearchportTìm kiếm/filter
AI Concierge, Medical, TourTravel IntelligenceAPI/portRecommendation, trust, MedicalTravelStrategy
Medical TourismBooking + Tourdomain reuseLưu trú + di chuyển cho gói điều trị

Tích hợp NGOÀI (3rd-party)

Hệ ngoàiModule dùngAdapterPhase
VNPay / Momo / ZaloPayPaymentPaymentGateway2
Email (Resend/SMTP) · Zalo OA · SMSNotificationNotifierPort2
S3 / Cloudflare R2 / MinIOMediaStoragePort2
Google Places · review sourcesTravel IntelligenceReviewSourceGateway (đã định nghĩa)4
LLM (narrative/extraction)Travel IntelligenceLLMReportGateway (đã định nghĩa)4
OTA channel (Agoda/Booking)BookingChannelManagerPort6
Health provider / hồ sơ y tếMedical TourismProviderDirectoryPort5
Maps / geocodingSearch, TourMapPort3-4

Nguyên tắc

  • Seam-first: port định nghĩa trước, mock trước, 3rd-party thật khi có consumer.
  • 1 adapter cho 1 hệ ngoài, có fallback + rate-limit + cache (theo external-data-integration của Travel Intelligence).
  • Travel Intelligence là API nội bộ quan trọng nhất — mọi module cần trí tuệ gọi qua đây, không tự nhúng LLM.