access.go 644 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. FileSize int64
  33. }