iotsaas/docs/uniapp.md
2995840376 0ce191c448 chore: 初始化 iotsaas 版本库基线
纳入范围:
- backend/  Spring Boot 多模块后端(iot-common/device/rule/data/alarm/auth)
- frontend/admin/  Vue3 + Element Plus 管理后台
- Android/   涂鸦原生 APP (com.xhai.iot)
- backend/sql/  Flyway 风格迁移脚本(V2~V21)
- docs/       对接文档与设计文档

排除范围:
- 构建产物: node_modules/ target/ build/ dist/ .gradle/
- 签名密钥: *.jks *.keystore (严禁入库)
- 本机配置: Android/local.properties
- 运行日志: logs/ *.log
- AI 协作本地数据 .codebuddy/ 与第三方 demo tuya-demo/

.gitattributes 统一以 LF 存储, Windows 批处理保留 CRLF
2026-10-27 12:00:41 +08:00

31 lines
1001 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

uniapp App
│
├── 涂鸦设备 → 涂鸦OpenAPI → 涂鸦云
│
├── Google设备 → 你的后端 → Google Cloud API
│
├── Alexa设备 → 你的后端 → AWS Lambda → Alexa
│
└── 自有设备 → 你的后端 → IoT平台
最终建议
针对你的IoT平台,推荐使用 uniapp + 云端API 方案:
优先级 平台 uniapp支持方式 工期
1️⃣ 涂鸦 OpenAPI + 小程序SDK 3-4天
2️⃣ Google Home Cloud-to-Cloud API 3-4天
3️⃣ Alexa Lambda + OAuth 5-6天
4️⃣ HomeKit 原生iOS插件(可选) 8天
各服务依赖情况:
服务 端口 外部依赖
iot-device 9081 MySQL, Redis, RabbitMQ, MQTT
iot-data 9082 MySQL, Redis, RabbitMQ, InfluxDB, MQTT
iot-rule 9083 MySQL, Redis, RabbitMQ
iot-alarm 9084 MySQL, Redis, RabbitMQ
→ "添加设备" → "涂鸦智能" → "去绑定涂鸦账号"
→ 跳转涂鸦授权页登录 → 回调后自动绑定
→ 选择家庭 → 勾选设备 → 确认绑定