dtgateway.api 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 ro信息"
  15. @handler WorkingRo
  16. get /working-ro/info (DcWorkingReq) returns (CommonResponse)
  17. @doc "查询working chest信息"
  18. @handler WorkingChest
  19. get /working-chest/info (DcWorkingReq) returns (CommonResponse)
  20. @doc "查询working pump信息"
  21. @handler WorkingPump
  22. get /working-pump/info (DcWorkingReq) returns (CommonResponse)
  23. @doc "查询working valve信息"
  24. @handler WorkingValve
  25. get /working-valve/info (DcWorkingReq) returns (CommonResponse)
  26. @doc "秒级单点数据批量入库"
  27. @handler ItemHistoryDataMultiAdd
  28. post /item-history/multi-add (MultiAddItemHistoryDataReq) returns (CommonResponse)
  29. @doc "点位历史数据查询"
  30. @handler ItemHistoryDataList
  31. get /item-history/list (ItemHistoryDataListReq) returns (CommonResponse)
  32. @doc "按时间点位历史数据查询"
  33. @handler ItemHistoryDataInfo
  34. get /item-history/info (ItemHistoryDataByTimeReq) returns (CommonResponse)
  35. @doc "按时间点位历史数据最大值最小值查询"
  36. @handler ItemHistoryDataMaxMin
  37. get /item-history/max-min (ItemHistoryDataMaxMinByTimeReq) returns (CommonResponse)
  38. @doc "点位查询时间内第一个和最后一个值"
  39. @handler ItemHistoryDataFirstLast
  40. get /item-history/first-last (ItemHistoryDataByTimeReq) returns (CommonResponse)
  41. @doc "最新变化值点位数据"
  42. @handler ChangeTypeItemData
  43. get /item-change/info (ItemHistoryDataByTimeReq) returns (CommonResponse)
  44. }