fix: preserve batch result compatibility

This commit is contained in:
2026-07-22 11:51:45 +08:00
parent a22457ce5f
commit 6d7f08bedd
3 changed files with 37 additions and 30 deletions
+8 -1
View File
@@ -5,9 +5,17 @@ import (
"encoding/json"
"fmt"
"io"
"math"
"time"
)
const (
// PropertyResultCodeMissing classifies a missing GetMany result locally and is never returned by upstream.
PropertyResultCodeMissing int = math.MinInt32
// PropertyResultCodeDuplicate classifies duplicate GetMany results locally and is never returned by upstream.
PropertyResultCodeDuplicate int = math.MinInt32 + 1
)
type Home struct {
ID string `json:"id"`
Name string `json:"name"`
@@ -163,7 +171,6 @@ type DevicePropertyResult struct {
Name string
Value any
Code int
Err error `json:"-"`
}
type ActionRequest struct {