datacenter.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /**
  2. * 数据中台通用接口文档
  3. */
  4. import httputils from "@/api/httputils";
  5. const baseApi = "/datacenter";
  6. // 创建项目
  7. export function projectCreate(postParams: any): any {
  8. return httputils.postJson(`${ baseApi }/object/project/create`, postParams);
  9. }
  10. // 查询项目信息
  11. export function projectQuery(postParams: any): any {
  12. return httputils.postJson(`${ baseApi }/object/project/query`, postParams);
  13. }
  14. // 更新项目信息
  15. export function projectUpdate(postParams: any): any {
  16. return httputils.postJson(`${ baseApi }/object/project/update`, postParams);
  17. }
  18. // 查询建筑信息
  19. export function buildingQuery(postParams: any): any {
  20. return httputils.postJson(`${ baseApi }/object/building/query`, postParams);
  21. }
  22. // 查询建筑信息
  23. export function floorQuery(postParams: any): any {
  24. return httputils.postJson(`${ baseApi }/object/floor/query`, postParams);
  25. }
  26. // 字典查询
  27. export function dictCategoryQuery(postParams: any): any {
  28. return httputils.postJson(`${ baseApi }/dict/category`, postParams);
  29. }
  30. // 查询项目下类型的信息点-->编辑器 空间功能类型 列表-->自己转成树
  31. export function dictQuery(postParams: any): any {
  32. // postParams:{
  33. // "filters": "code='roomFuncType'",
  34. // "type": "GeneralZone"
  35. // }
  36. return httputils.postJson(`${ baseApi }/dict/query`, postParams);
  37. }
  38. // 查询空间实例
  39. export function PartiInstancQuery(postParams: any): any {
  40. // postParams:{
  41. // "filters": "code='roomFuncType'",
  42. // "type": "GeneralZone"
  43. // }
  44. return httputils.postJson(`${ baseApi }/object/zone/query`, postParams);
  45. }
  46. // 查询设备信息
  47. export function queryEquip(postParams: any): any {
  48. return httputils.postJson(`${ baseApi }/object/equip/query`, postParams)
  49. }
  50. // 创建设备信息
  51. export function createEquip(postParams: any): any {
  52. return httputils.postJson(`${ baseApi }/object/equip/create`, postParams)
  53. }
  54. // 更新设备信息
  55. export function updateEquip(postParams: any): any {
  56. return httputils.postJson(`${ baseApi }/object/equip/update`, postParams)
  57. }
  58. // 查询系统信息
  59. export function querySystem(postParams: any): any {
  60. return httputils.postJson(`${ baseApi }/object/system/query`, postParams)
  61. }
  62. // 查询空间信息
  63. export function queryZone(postParams: any): any {
  64. return httputils.postJson(`${ baseApi }/object/zone/query`, postParams)
  65. }
  66. // 查询元空间信息
  67. export function queryIspace(postParams: any): any {
  68. return httputils.postJson(`${ baseApi }/object/ispace/query`, postParams)
  69. }
  70. // 创建空间
  71. export function createZone(postParams: any): any {
  72. return httputils.postJson(`${ baseApi }/object/zone/create`, postParams)
  73. }
  74. // 更新空间
  75. export function updateZone(postParams: any): any {
  76. return httputils.postJson(`${ baseApi }/object/zone/update`, postParams)
  77. }
  78. // 查询设备统计
  79. export function queryCount(postParams: any): any {
  80. return httputils.postJson(`${ baseApi }/object/equip/count`, postParams)
  81. }
  82. // 查询系统统计
  83. export function queryCountSystem(postParams: any): any {
  84. return httputils.postJson(`${ baseApi }/object/system/count`, postParams)
  85. }
  86. // 查询空间统计
  87. export function queryCountSpace(postParams: any): any {
  88. return httputils.postJson(`${ baseApi }/object/zone/count`, postParams)
  89. }
  90. // 查询关系总览
  91. export function relationshipOverview(postParams: any): any {
  92. return httputils.postJson(`${ baseApi }/rel/graphic/overview`, postParams)
  93. }
  94. // 查询关系数量
  95. export function relationshipCount(postParams: any): any {
  96. return httputils.postJson(`${ baseApi }/rel/graphic/query/count`, postParams)
  97. }