# API 文档 ## OpenAPI/Swagger 文档 ### 生成 Swagger 文档 项目使用 SpringDoc OpenAPI 自动生成 API 文档。 #### 快速启动 1. 确保所有服务都已启动 2. 访问以下地址查看 API 文档: - 主服务: http://localhost:8080/swagger-ui.html - 收入服务: http://localhost:8081/swagger-ui.html - 生产服务: http://localhost:8082/swagger-ui.html - 数据引擎: http://localhost:8083/swagger-ui.html - DMA 服务: http://localhost:8084/swagger-ui.html - 移动应用: http://localhost:8085/swagger-ui.html ### 主要 API 端点 #### 收费服务 (wm-revenue) - **用户管理**: `/api/revenue/users` - **账单管理**: `/api/revenue/bills` - **支付管理**: `/api/revenue/payments` #### 生产服务 (wm-production) - **设备管理**: `/api/production/equipment` - **生产计划**: `/api/production/plans` - **质量监控**: `/api/production/quality` #### DMA服务 (wm-dma) - **区域管理**: `/api/dma/areas` - **流量监控**: `/api/dma/monitoring` - **报警管理**: `/api/dma/alarms` #### 数据引擎 (wm-data-engine) - **数据采集**: `/api/data/collect` - **数据处理**: `/api/data/process` - **数据分析**: `/api/data/analyze` --- *自动生成于 2026-06-16*