How thaitu-cmd/workgo works
WorkGo appears to be a services marketplace with identity/provider onboarding and a service catalog, alongside Android and website frontends and an API gateway. The likely user journey is to authenticate, discover services, and proceed toward booking, but the README is empty and the sampled frontend code does not establish its API wiring. The graph therefore emphasizes evidenced identity and catalog internals; order and payment directories contain only application entry-point files in the supplied tree, so their runtime behavior is unclear.
Main entry points: AuthenticationService.java Authentication · IdentityService.java Identity client service · ProviderProfileService.java Provider profiles · CategoryService.java Category management
Components 23
Client applications
- Android app
android-frontend/src/app/index.tsx - Website
website-frontend/src/app/page.tsx
API gateway
- Gateway application
api-gateway/src/main/java/com/workgo/ApiGatewayApplication.java - Authentication filter
api-gateway/src/main/java/com/workgo/gateway/configuration/AuthenticationFilter.java - Identity client service
api-gateway/src/main/java/com/workgo/gateway/service/IdentityService.java - Identity HTTP client
api-gateway/src/main/java/com/workgo/gateway/repository/IdentityClient.java
Identity and providers
- Identity API
identity-service/src/main/java/com/workgo/identity/controller/AuthenticationController.java - Authentication
identity-service/src/main/java/com/workgo/identity/service/AuthenticationService.java - User repository
identity-service/src/main/java/com/workgo/identity/repository/UserRepository.java - Invalidated token repository
identity-service/src/main/java/com/workgo/identity/repository/InvalidatedTokenRepository.java - Provider profile API
identity-service/src/main/java/com/workgo/identity/controller/ProviderProfileController.java - Provider profiles
identity-service/src/main/java/com/workgo/identity/service/ProviderProfileService.java - Provider verification
identity-service/src/main/java/com/workgo/identity/service/ProviderVerificationService.java - Provider profile repository
identity-service/src/main/java/com/workgo/identity/repository/ProviderProfileRepository.java
Service catalog
- Catalog application
catalog-service/src/main/java/com/workgo/catalog/CategoryServiceApplication.java - Category management
catalog-service/src/main/java/com/workgo/catalog/service/CategoryService.java - Category repository
catalog-service/src/main/java/com/workgo/catalog/repository/CategoryRepository.java - Service listings
catalog-service/src/main/java/com/workgo/catalog/service/ServiceService.java - Service repository
catalog-service/src/main/java/com/workgo/catalog/repository/ServiceRepository.java - Service media
catalog-service/src/main/java/com/workgo/catalog/service/ServiceMediaService.java - Media repository
catalog-service/src/main/java/com/workgo/catalog/repository/ServiceMediaRepository.java - Service packages
catalog-service/src/main/java/com/workgo/catalog/service/PackageService.java
Other components
- Marketplace user
Connections 14
- Marketplace user → Android app: uses
- Marketplace user → Website: uses
- Authentication filter → Identity client service: checks tokens
- Identity client service → Identity HTTP client: delegates to
api-gateway/src/main/java/com/workgo/gateway/service/IdentityService.java - Identity API → Authentication: delegates to
- Authentication → User repository: reads users
identity-service/src/main/java/com/workgo/identity/service/AuthenticationService.java - Authentication → Invalidated token repository: checks invalidations
identity-service/src/main/java/com/workgo/identity/service/AuthenticationService.java - Provider profile API → Provider profiles: delegates to
identity-service/src/main/java/com/workgo/identity/controller/ProviderProfileController.java - Provider profiles → Provider profile repository: reads and saves
identity-service/src/main/java/com/workgo/identity/service/ProviderProfileService.java - Provider verification → Provider profile repository: loads profiles
identity-service/src/main/java/com/workgo/identity/service/ProviderVerificationService.java - Catalog application → Category management: hosts
- Category management → Category repository: reads and saves
catalog-service/src/main/java/com/workgo/catalog/service/CategoryService.java - Service listings → Service repository: reads and saves
catalog-service/src/main/java/com/workgo/catalog/service/ServiceService.java - Service media → Media repository: reads and saves
catalog-service/src/main/java/com/workgo/catalog/service/ServiceMediaService.java