device_config.go 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package rpcs
  2. import (
  3. "sparrow/pkg/models"
  4. )
  5. // ArgsDeviceCommandQuery 设备指令查询参数
  6. type ArgsDeviceCommandQuery struct {
  7. DeviceTypeId string
  8. Pi int
  9. Ps int
  10. Name string
  11. }
  12. // ReplyDeviceCommandList 设备指令列表响应
  13. type ReplyDeviceCommandList struct {
  14. Total int
  15. List []models.DeviceCommand
  16. }
  17. // ArgsDeviceStatusQuery 设备状态查询参数
  18. type ArgsDeviceStatusQuery struct {
  19. DeviceTypeId string
  20. Pi int
  21. Ps int
  22. Name string
  23. }
  24. // ReplyDeviceStatusList 设备状态列表响应
  25. type ReplyDeviceStatusList struct {
  26. Total int
  27. List []models.DeviceStatus
  28. }
  29. // ArgsSceneHisQuery 场景执行历史查询参数
  30. type ArgsSceneHisQuery struct {
  31. SceneId string
  32. Pi int
  33. Ps int
  34. }
  35. // ReplySceneHisList 场景执行历史列表响应
  36. type ReplySceneHisList struct {
  37. Total int
  38. List []models.SceneHis
  39. }