access.go 625 B

12345678910111213141516171819202122232425262728293031323334353637
  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. SubDeviceId string
  14. }
  15. type ReplyGetStatus struct {
  16. Status []protocol.SubData
  17. }
  18. type ArgsSendCommand struct {
  19. DeviceId string
  20. SubDevice string
  21. Cmd string
  22. WaitTime uint32
  23. Params map[string]interface{}
  24. }
  25. type ReplySendCommand ReplyEmptyResult
  26. type ArgsDeviceUpgrade struct {
  27. DeviceId string
  28. SudDeviceId string
  29. Url string
  30. Md5 string
  31. Version string
  32. }