dtgateway.api 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. syntax = "v1"
  2. import (
  3. "dtgateway/common.api"
  4. "dtgateway/dtgateway.api"
  5. "dtgateway/appinfo.api"
  6. )
  7. @server(
  8. prefix: api/dtgateway/v1
  9. group: dtgateway
  10. middleware: DataSign
  11. )
  12. service dtgateway {
  13. @doc "查询working uf信息"
  14. @handler WorkingUf
  15. get /working-uf/info (DcWorkingReq) returns (CommonResponse)
  16. @doc "查询working uf信息"
  17. @handler WorkingUfByCycle
  18. get /working-uf/cycle (WorkingUfByCycleReq) returns (CommonResponse)
  19. @doc "查询working ro信息"
  20. @handler WorkingRo
  21. get /working-ro/info (DcWorkingReq) returns (CommonResponse)
  22. @doc "查询working chest信息"
  23. @handler WorkingChest
  24. get /working-chest/info (DcWorkingReq) returns (CommonResponse)
  25. @doc "查询working pump信息"
  26. @handler WorkingPump
  27. get /working-pump/info (DcWorkingReq) returns (CommonResponse)
  28. @doc "查询working valve信息"
  29. @handler WorkingValve
  30. get /working-valve/info (DcWorkingReq) returns (CommonResponse)
  31. @doc "秒级单点数据批量入库"
  32. @handler ItemHistoryDataMultiAdd
  33. post /item-history/multi-add (MultiAddItemHistoryDataReq) returns (CommonResponse)
  34. @doc "点位历史数据查询"
  35. @handler ItemHistoryDataList
  36. get /item-history/list (ItemHistoryDataListReq) returns (CommonResponse)
  37. @doc "按时间点位历史数据查询"
  38. @handler ItemHistoryDataInfo
  39. get /item-history/info (ItemHistoryDataByTimeReq) returns (CommonResponse)
  40. @doc "按时间点位历史数据最大值最小值查询"
  41. @handler ItemHistoryDataMaxMin
  42. get /item-history/max-min (ItemHistoryDataMaxMinByTimeReq) returns (CommonResponse)
  43. @doc "点位查询时间内第一个和最后一个值"
  44. @handler ItemHistoryDataFirstLast
  45. get /item-history/first-last (ItemHistoryDataByTimeReq) returns (CommonResponse)
  46. @doc "最新变化值点位数据"
  47. @handler ChangeTypeItemData
  48. get /item-change/info (ItemHistoryDataByTimeReq) returns (CommonResponse)
  49. @doc "appSecret -> 查询列表"
  50. @handler FindAppList
  51. get /app/list (FindAppListReq) returns (CommonResponse)
  52. @doc "appSecret -> 单个APP信息"
  53. @handler GetAppInfo
  54. get /app/info (GetAppInfoReq) returns (CommonResponse)
  55. @doc "appSecret -> 创建一个新的记录"
  56. @handler CreateAppInfo
  57. post /app/create (CreateAppInfoReq) returns (CommonResponse)
  58. @doc "appSecret -> 删除记录"
  59. @handler RemoveAppInfo
  60. post /app/remove (RemoveAppInfoReq) returns (CommonResponse)
  61. @doc "appSecret -> 禁用"
  62. @handler DisableAppInfo
  63. post /app/disable (DisableAppInfoReq) returns (CommonResponse)
  64. @doc "appSecret -> 启用"
  65. @handler EnableAppInfo
  66. post /app/enable (EnableAppInfoReq) returns (CommonResponse)
  67. @doc "appSecret -> 重置secret"
  68. @handler ResetAppSecret
  69. post /app/secret/reset (ResetAppSecretReq) returns (CommonResponse)
  70. @doc "appSecret -> 有效期设置"
  71. @handler ExpireAppSecret
  72. post /app/secret/expire (ExpireAppSecretReq) returns (CommonResponse)
  73. @doc "appSecret -> 设置可管理的项目列表"
  74. @handler ResetAppProject
  75. post /app/project/reset (ResetAppProjectReq) returns (CommonResponse)
  76. }