How giangnd99/hotel_management works
This repository is a hotel-management platform organized as independently named services for gateway/security, bookings, rooms, payments, customers, staff, inventory, restaurant and other hotel operations, plus an AI service. The likely user workflow is to send a request through the gateway to a domain service and receive a result; the tree suggests booking and room operations are distinct stages, but does not establish their runtime wiring. The only directly shown call is file upload from the AI controller to its ingestion port. Most inter-service links and persistence wiring are therefore omitted or marked unverified.
Main entry points: AuthenticationController.java Auth endpoints · AuthenticationServiceImpl.java Authentication service · BookingController.java Booking API · BookingService.java Booking services
Components 27
Gateway and auth
- Auth endpoints
api-gateway/authentication-service/authentication-application/src/main/java/com/poly/authentication/service/application/rest/controller/authen/AuthenticationController.java - Authentication service
api-gateway/authentication-service/authentication-domain/authen-application-service/src/main/java/com/poly/authentication/service/domain/implement/AuthenticationServiceImpl.java - Auth repositories
api-gateway/authentication-service/authentication-data-access/src/main/java/com/poly/authentication/service/dao - Gateway security
api-gateway/security/src/main/java/com/poly/security/domain/config/SecurityConfig.java - Service registry
api-gateway/eureka-server/src/main/java/com/poly/api/gateway/EurekaServerApplication.java
Hotel operations
- Booking API
booking-management/booking-application/src/main/java/com/poly/booking/management/application/controller/rest/BookingController.java - Booking services
booking-management/booking-domain/booking-application-service/src/main/java/com/poly/booking/management/domain/service/BookingService.java - Booking data
booking-management/booking-data-access/src/main/java/com/poly/booking/management/dao/booking - Room endpoints
room-management/room-application/src/main/java/com/poly/room/management/application/controller/rest/RoomController.java - Room queries
room-management/room-domain/room-domain-core/src/main/java/com/poly/room/management/domain/service/impl/RoomQueryServiceImpl.java - Reception endpoints
room-management/room-application/src/main/java/com/poly/room/management/application/controller/rest/ReceptionController.java - Inventory API
inventory-management/inventory-application/src/main/java/com/poly/inventory/controller/TransactionController.java - Restaurant orders
restaurant-management/restaurant-application/src/main/java/com/poly/restaurant/controller/OrderController.java
Commerce services
- Payment endpoints
payment-management/payment-application/src/main/java/com/poly/payment/management/application/rest/controller/PaymentController.java - Voucher endpoints
promotion-management/promotion-application/src/main/java/com/poly/promotion/application/controller/VoucherController.java
Customer and staff
- Customer endpoints
customer-management/customer-container/src/main/java/com/poly/customercontainer/controller/CustomerController.java - Loyalty service
customer-management/customer-application-service/src/main/java/com/poly/customerapplicationservice/service/LoyaltyApplicationService.java - Staff operations
staff-management/src/main/java/com/poly/staff/controller/StaffController.java - Payroll operations
staff-management/src/main/java/com/poly/staff/controller/PayrollController.java - Notifications and QR
notification-management/notification-domain/src/main/java/com/poly/notification/management/controller/NotificationController.java - QR code service
notification-management/notification-domain/src/main/java/com/poly/notification/management/service/QrCodeService.java
AI and reporting
- File ingestion API
spring-ai-management/ai-application/src/main/java/com/poly/ai/management/application/web/rest/FileIngestionController.java - Ingestion service port
spring-ai-management/ai-domain/ai-application-service/src/main/java/com/poly/ai/management/domain/port/input/service/DataIngestionService.java - Embedding service
spring-ai-management/ai-domain/ai-application-service/src/main/java/com/poly/ai/management/domain/service/rag/EmbeddingServiceImpl.java - Embedding repository
spring-ai-management/ai-dao/src/main/java/com/poly/ai/management/dao/ai/adapter/EmbeddingRepositoryImpl.java - Reports and logs
reporting-management/src/main/java/com/poly/report/controller/ReportController.java
Other components
- API client
Connections 12
- API client → Auth endpoints: requests
- API client → Booking API: requests
- API client → Room endpoints: requests
- API client → File ingestion API: uploads
- File ingestion API → Ingestion service port: calls
spring-ai-management/ai-application/src/main/java/com/poly/ai/management/application/web/rest/FileIngestionController.java - Auth endpoints → Authentication service: delegates
- Authentication service → Auth repositories: persists
- Booking API → Booking services: delegates
- Booking services → Booking data: persists
- Room endpoints → Room queries: queries
- Ingestion service port → Embedding service: processes
- Embedding service → Embedding repository: stores embeddings