How gz-yami/mall4j works
Main System Components
The system is a B2C e-commerce platform with these key components:
a) Backend Services (Java):
• Admin Service (yami-shop-admin)
• API Service (yami-shop-api)
• Core Services (yami-shop-service)
• Security Module (yami-shop-security)
• System Management (yami-shop-sys)
b) Frontend Applications:
• Admin Dashboard (mall4v - Vue)
• Mobile Mini Program (mall4m - WeChat Mini Program)
• Universal App (mall4uni - Uni-app)
c) Infrastructure:
• Database (MySQL)
• Cache (Redis)
• File Storage
• Security Layer
┌─ Client Layer ─────────────────────────┐
• Mall4v (Admin) │ Mall4m │ Mall4uni │
• ┴────────┴──────────────┘
• ↓ ↓ ↓
┌─ Gateway/Security Layer ───────────────┐
• SA-Token Authentication & Authorization │
• ┘
• ↓ ↓
┌─ Application Layer ──────────────────────────────┐
• ┌─────────────┐ ┌──────────┐ ┌────────────────┐ │
• Admin Service│ │API Service│ │Security Service│ │
• ┘ └──────────┘ └────────────────┘ │
• ┘
• ↓ ↓
┌─ Service Layer ────────────────────────────────┐
• Order│Product│User│System│Payment│Delivery │
• ┘
• ↓ ↓
┌─ Infrastructure Layer ────────────────────────┐
• MySQL │ Redis │ File Storage │ Message Queue │
• ┘
Key Interactions to Highlight
• Authentication flow using SA-Token
• Order processing pipeline
• Product management workflow
• User session management
• Cache interaction patterns
• File upload/download paths
Additional Elements
Components:
• Distributed lock mechanism (Redisson)
• XSS protection layer
• Validation framework
• Swagger/Knife4j API documentation
• MyBatis Plus data access
• Logging system (Logback)
Technical Details
• Spring Boot 3.0.4 framework
• SA-Token 1.34.0 security
• MyBatis Plus 3.5.3.1
• Redis/Redisson integration
• Validation framework
• Distributed architecture support