dtgateway.api 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. syntax = "v1"
  2. import (
  3. "dtgateway/dtgateway.api"
  4. )
  5. @server(
  6. prefix: api/dtgateway/v1
  7. group: dtgateway
  8. middleware: DataSign
  9. )
  10. service dtgateway {
  11. @doc "查询working uf信息"
  12. @handler WorkingUf
  13. get /working-uf/info (DcWorkingReq) returns (CommonResponse)
  14. @doc "查询working uf信息"
  15. @handler WorkingUfByCycle
  16. get /working-uf/cycle (WorkingUfByCycleReq) returns (CommonResponse)
  17. @doc "查询working ro信息"
  18. @handler WorkingRo
  19. get /working-ro/info (DcWorkingReq) returns (CommonResponse)
  20. @doc "查询working chest信息"
  21. @handler WorkingChest
  22. get /working-chest/info (DcWorkingReq) returns (CommonResponse)
  23. @doc "查询working pump信息"
  24. @handler WorkingPump
  25. get /working-pump/info (DcWorkingReq) returns (CommonResponse)
  26. @doc "查询working valve信息"
  27. @handler WorkingValve
  28. get /working-valve/info (DcWorkingReq) returns (CommonResponse)
  29. @doc "秒级单点数据批量入库"
  30. @handler ItemHistoryDataMultiAdd
  31. post /item-history/multi-add (MultiAddItemHistoryDataReq) returns (CommonResponse)
  32. @doc "点位历史数据查询"
  33. @handler ItemHistoryDataList
  34. get /item-history/list (ItemHistoryDataListReq) returns (CommonResponse)
  35. @doc "按时间点位历史数据查询"
  36. @handler ItemHistoryDataInfo
  37. get /item-history/info (ItemHistoryDataByTimeReq) returns (CommonResponse)
  38. @doc "按时间点位历史数据最大值最小值查询"
  39. @handler ItemHistoryDataMaxMin
  40. get /item-history/max-min (ItemHistoryDataMaxMinByTimeReq) returns (CommonResponse)
  41. @doc "点位查询时间内第一个和最后一个值"
  42. @handler ItemHistoryDataFirstLast
  43. get /item-history/first-last (ItemHistoryDataByTimeReq) returns (CommonResponse)
  44. @doc "最新变化值点位数据"
  45. @handler ChangeTypeItemData
  46. get /item-change/info (ItemHistoryDataByTimeReq) returns (CommonResponse)
  47. }