How charliexbr/cremed works
1. A Java-based backend – found under the “CareMed” folder – that is built using a framework like Spring Boot. This module follows a clear MVC pattern with controllers (e.g., HospitalsController, OrderController, etc.), services, DAO/mappers, entities, and DTOs. It is responsible for handling order management, hospital information, payment interfacing, SMS functionality, and even AI consultation services by interfacing with an AI module.
2. A WeChat mini program frontend – under “peizhengproject-main” – which uses Vue/uni-app conventions (with .vue files, pages, and uni_modules). This side handles user interfaces such as the homepage, order filling, payment, chat, and user profiles. The frontend code also includes various components for navigation, interactive selectors, drag-drop features, and resembles a typical mini program structure.
Main components
• Backend Service: Represent the “CareMed” Java backend as a separate service or group. Inside this, include sub-components such as:
– Controllers (e.g., HospitalsController, OrderController, IndexController, etc.)
– Services (the business logic for order management, user info, hospitals)
– DAOs/Mappers (responsible for database operations)
– Entities & DTOs (data structures for orders, users, hospitals, etc.)
– Utility classes (e.g., JwtUtil for authentication/authorization)
• Database: Use the accompanycaredb.sql as an indicator of the relational database structure that holds user data, order records, hospital listings, etc.
• External Services/Integrations: Include payment gateways (likely integrated through WeChat Pay), SMS service, and any AI consultation module (as per the README’s “AI咨询助手” mention).
Relationships and interactions
– Order placement (代跑取药, 上门助浴, etc.)
– Payment processes
– AI consultation interactions
– User login (via SMS verification) and profile management.
• Backend interacting with the database (CRUD operations for orders, users, hospitals).
• SMS and payment integrations as external systems interacting with the backend.
Architectural patterns
• MVC design on the backend. Optionally, group components into a “Controller Layer”, “Service Layer”, and “Data Access Layer.”
• For the frontend, indicate that it is a uni-app or Vue-based mini program with clearly separated pages and reusable components (such as NavBar, dtPicker, share, etc.)
Technology and framework labels
• For the backend, mark “Java”, “Spring Boot,” “Maven” (pom.xml) and list MyBatis (if that is used in DAO implementations).
• For the frontend, add “uni-app”, “Vue”, and note that it integrates with WeChat’s mini program ecosystem.
• Payment service integration and AI services, as described in the README.