access.go 464 B

12345678910111213141516171819202122232425262728
  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 struct {
  11. Id string
  12. VendorId string
  13. }
  14. type ReplyGetStatus struct {
  15. Status []protocol.SubData
  16. }
  17. type ArgsSendCommand struct {
  18. DeviceId string
  19. SubDevice string
  20. Cmd string
  21. WaitTime uint32
  22. Params map[string]interface{}
  23. }
  24. type ReplySendCommand ReplyEmptyResult