chore: 修复 import 路径为 xiaomihome/miot,补充 README 项目文档

go.mod 模块名为 xiaomihome,将所有内部 import 从 "miot" 更新为
"xiaomihome/miot",涉及所有测试文件和示例文件。新增 README.md 项目
介绍文档(架构概览、模块说明、移植进度等)。新增 ARCH_PLAN.md 架构
设计文档。
This commit is contained in:
2026-06-28 23:21:18 +08:00
parent 3a44cb9e6a
commit 35efed7d15
21 changed files with 1264 additions and 81 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"os"
"miot"
"miot/examples/config"
"xiaomihome/miot"
"xiaomihome/miot/examples/config"
)
func main() {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"encoding/json"
"fmt"
"miot"
"miot/examples/config"
"xiaomihome/miot"
"xiaomihome/miot/examples/config"
)
func main() {
+5 -5
View File
@@ -9,7 +9,7 @@ import (
"os"
"time"
"miot"
"xiaomihome/miot"
)
// AuthInfo mirrors the OAuth token stored in Python miot_config/{uid}_{cloud_server}.dict.
@@ -36,10 +36,10 @@ type Config struct {
RedirectURL string `json:"redirect_url"` // OAuth callback URL
// === entry_data optional fields ===
Language string `json:"language"` // integration_language: en/zh-Hans/de etc.
CtrlMode string `json:"ctrl_mode"` // auto/cloud/lan
StoragePath string `json:"storage_path"` // data directory for miot_storage
NickName string `json:"nick_name"` // display name in Xiaomi Home
Language string `json:"language"` // integration_language: en/zh-Hans/de etc.
CtrlMode string `json:"ctrl_mode"` // auto/cloud/lan
StoragePath string `json:"storage_path"` // data directory for miot_storage
NickName string `json:"nick_name"` // display name in Xiaomi Home
// internal
configPath string // path to this config file
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"os/signal"
"time"
"miot"
"miot/examples/config"
"xiaomihome/miot"
"xiaomihome/miot/examples/config"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"time"
"miot"
"xiaomihome/miot"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"time"
"miot"
"xiaomihome/miot"
)
func main() {
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"os"
"time"
"miot"
"miot/examples/config"
"xiaomihome/miot"
"xiaomihome/miot/examples/config"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"time"
"miot"
"xiaomihome/miot"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ package main
import (
"fmt"
"miot"
"xiaomihome/miot"
)
func main() {
+2 -2
View File
@@ -5,8 +5,8 @@ package main
import (
"fmt"
"miot"
"miot/examples/config"
"xiaomihome/miot"
"xiaomihome/miot/examples/config"
)
func main() {