access.go 432 B

12345678910111213141516171819202122232425
  1. package rpcs
  2. import (
  3. "sparrow/pkg/protocol"
  4. )
  5. type ArgsSetStatus struct {
  6. DeviceId string
  7. Status []protocol.SubData
  8. }
  9. type ReplySetStatus ReplyEmptyResult
  10. type ArgsGetStatus ArgsDeviceId
  11. type ReplyGetStatus struct {
  12. Status []protocol.SubData
  13. }
  14. type ArgsSendCommand struct {
  15. DeviceId string
  16. SubDevice string
  17. Cmd string
  18. WaitTime uint32
  19. Params map[string]interface{}
  20. }
  21. type ReplySendCommand ReplyEmptyResult