typings.d.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // @ts-ignore
  2. /* eslint-disable */
  3. declare namespace API {
  4. type CurrentUser = {
  5. name?: string;
  6. avatar?: string;
  7. userid?: string;
  8. email?: string;
  9. signature?: string;
  10. title?: string;
  11. group?: string;
  12. tags?: { key?: string; label?: string }[];
  13. notifyCount?: number;
  14. unreadCount?: number;
  15. country?: string;
  16. access?: string;
  17. geographic?: {
  18. province?: { label?: string; key?: string };
  19. city?: { label?: string; key?: string };
  20. };
  21. address?: string;
  22. phone?: string;
  23. };
  24. type LoginResult = {
  25. status?: string;
  26. type?: string;
  27. currentAuthority?: string;
  28. };
  29. type PageParams = {
  30. current?: number;
  31. pageSize?: number;
  32. };
  33. type RuleListItem = {
  34. key?: number;
  35. disabled?: boolean;
  36. href?: string;
  37. avatar?: string;
  38. name?: string;
  39. owner?: string;
  40. desc?: string;
  41. callNo?: number;
  42. status?: number;
  43. updatedAt?: string;
  44. createdAt?: string;
  45. progress?: number;
  46. };
  47. type RuleList = {
  48. data?: RuleListItem[];
  49. /** 列表的内容总数 */
  50. total?: number;
  51. success?: boolean;
  52. };
  53. type FakeCaptcha = {
  54. code?: number;
  55. status?: string;
  56. };
  57. type LoginParams = {
  58. username?: string;
  59. password?: string;
  60. autoLogin?: boolean;
  61. type?: string;
  62. };
  63. type ErrorResponse = {
  64. /** 业务约定的错误码 */
  65. errorCode: string;
  66. /** 业务上的错误信息 */
  67. errorMessage?: string;
  68. /** 业务上的请求是否成功 */
  69. success?: boolean;
  70. };
  71. type NoticeIconList = {
  72. data?: NoticeIconItem[];
  73. /** 列表的内容总数 */
  74. total?: number;
  75. success?: boolean;
  76. };
  77. type NoticeIconItemType = 'notification' | 'message' | 'event';
  78. type NoticeIconItem = {
  79. id?: string;
  80. extra?: string;
  81. key?: string;
  82. read?: boolean;
  83. avatar?: string;
  84. title?: string;
  85. status?: string;
  86. datetime?: string;
  87. description?: string;
  88. type?: NoticeIconItemType;
  89. };
  90. type MapInfo = {
  91. left?: number;
  92. top?: number;
  93. width?: number;
  94. height?: number;
  95. value?: number;
  96. name?: string;
  97. type?: string;
  98. [key: string]: any;
  99. };
  100. type MapInfoRes = {
  101. data?: {
  102. height?: number;
  103. width?: number;
  104. spaceList?: MapInfo[];
  105. };
  106. result?: string;
  107. };
  108. //楼层建筑都是这种类型
  109. type BuildFloorItem = {
  110. name: string;
  111. id: string;
  112. localName: string;
  113. [key: string]: any;
  114. };
  115. type BuildFloorList = {
  116. content?: BuildFloorItem[];
  117. result?: string;
  118. count?: number;
  119. };
  120. type DeviceTimeType = {
  121. content?: any[];
  122. result?: string;
  123. [key: string]: any;
  124. };
  125. type EnvironmentParam = {
  126. data?: any;
  127. result?: string;
  128. [key: string]: any;
  129. };
  130. }