mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-03 04:47:29 +08:00
standardize device operation responses with codes and richer local simulations
This commit is contained in:
@@ -36,6 +36,7 @@ type Request struct {
|
||||
// Envelope for node responses.
|
||||
type Response struct {
|
||||
OK bool `json:"ok"`
|
||||
Code string `json:"code,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
Node string `json:"node,omitempty"`
|
||||
Action string `json:"action,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user