tower.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package v1
  4. import (
  5. "smart-site-management-gateway/param/base"
  6. "smart-site-management-gateway/pb/v1"
  7. )
  8. type LatestTowerMonitorQuery struct {
  9. Sn string `form:"sn" json:"sn"`
  10. }
  11. type LatestTowerMonitorDataRequest struct {
  12. base.Header
  13. LatestTowerMonitorQuery
  14. }
  15. type LatestTowerMonitorDataResponse struct {
  16. base.Result
  17. Data v1.TowerMonitorData `json:"data"`
  18. }
  19. type TowerMonitorHistoryQuery struct {
  20. Sn string `form:"sn" json:"sn"`
  21. Start int64 `form:"start" json:"start"`
  22. End int64 `form:"end" json:"end"`
  23. Page int32 `form:"page" json:"page"`
  24. PageSize int32 `form:"page_size" json:"page_size"`
  25. }
  26. type TowerMonitorHistoryRequest struct {
  27. base.Header
  28. TowerMonitorHistoryQuery
  29. }
  30. type TowerMonitorHistoryResponse struct {
  31. base.Result
  32. Data v1.TowerMonitorHistoryReply `json:"data"`
  33. }
  34. type IotListQuery struct {
  35. Page int32 `form:"page"`
  36. PageSize int32 `form:"page_size"`
  37. DeviceCode int32 `form:"device_code"`
  38. }
  39. type IotListRequest struct {
  40. base.Header
  41. IotListQuery
  42. }
  43. type IotListResponse struct {
  44. base.Result
  45. Data v1.IotListReply `json:"data"`
  46. }
  47. type IotTypeListRequest struct {
  48. base.Header
  49. }
  50. type IotTypeListResponse struct {
  51. base.Result
  52. Data v1.IotTypeListReply `json:"data"`
  53. }
  54. type IotLastQuery struct {
  55. Sn string `form:"sn" json:"sn"`
  56. DeviceCode int32 `form:"device_code"`
  57. }
  58. type IotLastRequest struct {
  59. base.Header
  60. IotLastQuery
  61. }
  62. type IotLastResponse struct {
  63. base.Result
  64. Data v1.IotLastReply `json:"data"`
  65. }