How 274056675/springboot-openai-chatgpt works
Main System Components
a) Backend Services (Microservices Architecture):
• Gateway Service (GatewayApplication)
• Authentication Service (AuthApplication)
• System Service (SystemApplication)
• User Service (UserApplication)
• MJKJ Service (MjkjApplication)
• Middleware Services:
• Nacos (Service Discovery/Config)
• MySQL Database
• Redis Cache
b) Frontend Applications:
• PC Web Application (chatgpt_pc)
• Management Web Application (mng_web)
• HTTP Service (chatgpt_http)
Client Layer
• PC Web Interface
• Management Interface
• Mobile Apps (Android/iOS)
API Gateway Layer
• Gateway Service
Application Services Layer
• Auth Service
• System Service
• User Service
• MJKJ Service
Infrastructure Layer
• Nacos
• Redis
• MySQL
Key Design Elements
• Rectangles: Frontend applications
• Hexagons: Microservices
• Clouds: External services/APIs
• Blue: Frontend components
• Green: Core services
• Yellow: Infrastructure services
• Gray: External services
c) Connection types:
Special Features to Highlight
a) AI Integration:
• ChatGPT integration
• Image generation capabilities
• AI toolbox features
b) Security Layer:
• Authentication flow
• Authorization mechanisms
• Token management
c) Data Flow:
• User interaction paths
• Service communication patterns
• Cache utilization
Implementation Details
• Frontend-Backend communication through Gateway
• Service discovery via Nacos
• Database relationships
• Cache interaction patterns
• Authentication flow
• File storage system