How chowa/ejyy works
High-Level Architecture Overview
[Client Layer]
• WeChat Mini Programs (业主端/owner-mp, 物业端/property-mp)
• Web Console (console-web)
• WeChat Public Account
• IoT Devices
[API Layer]
• API Server (api-server)
• WebSocket Server (wss)
• Notification Services
[Infrastructure Layer]
• Database
• Redis Cache
• File Storage (OSS)
• WeChat Services
Detailed Component Breakdown
[API Modules]
• User Management (/module/pc/controller/user)
• Community Management (/module/pc/controller/community_manage)
• Property Management
• Repair Service
• Complaint Handling
• Payment Processing
• Access Control
• IoT Integration
• Elevator Control
• Energy Management
• Entrance Systems
• Parking Systems
Data Flow Representation
[Client Apps] ←→ [API Gateway]
• ↕
[Authentication] ←→ [Core Services] ←→ [External Services]
• ↕
• [Data Storage]
Key Technical Elements to Highlight
• Authentication & Authorization System
• Real-time Communication (WebSocket)
• File Storage System
• Payment Integration
• IoT Device Management
• Notification System
Specific Implementation Details
Technical stack information:
• Backend: Koa + TypeScript
• Frontend: Vue + View Design
• Database: MySQL
• Cache: Redis
• File Storage: OSS
• Real-time: WebSocket
Security Layer
Security implementations:
• Authentication middleware
• Role-based access control
• API security
• Data encryption
Integration Points
External service integrations:
• WeChat API
• Payment gateways
• IoT platforms
• SMS services
Data flow between components
Remember to:
• Use consistent notation
• Brief descriptions for complex components
• Both synchronous and asynchronous communication paths
This will provide a comprehensive view of the system while maintaining clarity and usefulness for technical discussions.