index.ts 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338
  1. import { DictCode } from '@/constants';
  2. import type { IconfontIcon } from '@/icons/fonts/iconfont';
  3. import type { Component, ComponentPublicInstance } from 'vue';
  4. import type { StepProps, UploadProps } from 'ant-design-vue';
  5. import type { Rule, RuleObject } from 'ant-design-vue/es/form';
  6. import type { FormLabelAlign } from 'ant-design-vue/es/form/interface';
  7. import type { Dayjs } from 'dayjs';
  8. import type {
  9. CoolingDataType,
  10. CtrlCabinetStartType,
  11. DeviceRunningStatus,
  12. ProtocolConfigMethod,
  13. TimeScaleType,
  14. VisualModuleType,
  15. } from '@/constants';
  16. export interface ApiResponse<T> {
  17. data: T;
  18. code: number;
  19. msg: string;
  20. }
  21. export interface PageData<T> {
  22. records: T[];
  23. total: number;
  24. pageIndex: number;
  25. pageSize: number;
  26. pageNum: number;
  27. }
  28. export interface PageParams {
  29. pageIndex: number;
  30. pageSize: number;
  31. pageSorts?: PageSorts[];
  32. }
  33. export interface PageSorts {
  34. column: string;
  35. asc: boolean;
  36. }
  37. export interface OptionItem<T> {
  38. value: T;
  39. label: string;
  40. }
  41. export type CheckedType = boolean | string | number;
  42. export interface IconObject {
  43. name: IconfontIcon;
  44. size?: number;
  45. color?: string;
  46. }
  47. export interface IframeMsg {
  48. msgType: string;
  49. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  50. [key: string]: any;
  51. }
  52. export type FormRules<T> = {
  53. [K in keyof T]?: Rule[];
  54. } & {
  55. [key: string]: Rule[];
  56. };
  57. export type RuleValidator<T> = (rule: RuleObject, value: T, callback: (error?: string) => void) => Promise<void>;
  58. export type RangeValue = [Dayjs, Dayjs];
  59. export interface DictTypeDataParams {
  60. id?: number;
  61. dictCode?: DictCode;
  62. }
  63. export interface DictTypeData {
  64. dictId: number;
  65. dictCode: string;
  66. dictName: string;
  67. dictEngName: string;
  68. dictOrderNum: number | null;
  69. dictTypeDataList: DictValue[];
  70. }
  71. export interface DictValue {
  72. dictValueId: number;
  73. dictValue: string;
  74. dictEngValue: string;
  75. dictValueOrderNum: number;
  76. isDefault: boolean | null;
  77. }
  78. export interface TabComponent {
  79. key: string;
  80. name: string;
  81. component: Component;
  82. }
  83. export interface DevGroupTabCompProps {
  84. deviceGroupId: number;
  85. }
  86. export interface UseGuideStepItem extends StepProps {
  87. title: string;
  88. stepTitle?: string;
  89. stepDescription?: string;
  90. hideHeader?: boolean;
  91. hideHeaderDivider?: boolean;
  92. headerMargin?: number;
  93. component: Component;
  94. contentOffset?: number;
  95. formLayout?: 'horizontal' | 'vertical' | 'inline';
  96. labelAlign?: FormLabelAlign;
  97. labelCol?: { span?: string | number };
  98. wrapperCol?: { span?: string | number };
  99. isLastStep?: boolean;
  100. exportButtonShow?: boolean;
  101. prevStepButtonHide?: boolean;
  102. nextStepButtonHide?: boolean;
  103. nextStepButtonText?: string;
  104. nextStepButtonDisabled?: boolean;
  105. }
  106. export interface UseGuideStepItemProps<T> {
  107. form: T;
  108. steps: UseGuideStepItem[];
  109. stepIndex: number;
  110. goToStep: (index: number) => void;
  111. }
  112. export type UseGuideStepItemExpose = {
  113. exportData?: () => void | Promise<void>;
  114. /**
  115. * 在当前步骤点击返回时预先执行某些操作
  116. * @returns 是否已经返回之前的步骤
  117. */
  118. goBack?: () => boolean | Promise<boolean>;
  119. finish?: () => void | Promise<void>;
  120. };
  121. export type UseGuideStepItemInstance = ComponentPublicInstance<unknown, UseGuideStepItemExpose>;
  122. export interface SetupProtocolForm {
  123. protocolType?: string;
  124. protocolInfo: Partial<ProtocolBaseInfo>;
  125. protocolFile: UploadProps['fileList'];
  126. configMethod: ProtocolConfigMethod;
  127. deviceType?: string;
  128. }
  129. export interface CustomParamsForm {
  130. gatewayParamName: string;
  131. gatewayParamCode: string;
  132. unit: string;
  133. module: string;
  134. readWriteType: string;
  135. parsingType: string;
  136. writeFunctionCode: string;
  137. readFunctionCode: string;
  138. addressLength: number;
  139. registerAddress: number;
  140. coefficient: number;
  141. isHighFrequencyParameter: string;
  142. readCalculationFormula: string;
  143. writeCalculationFormula: string;
  144. decimalPlaces: number;
  145. contiguousAddressingRange: number;
  146. }
  147. export type ProtocolListData = PageData<ProtocolBaseInfo>;
  148. export interface ProtocolBaseInfo {
  149. id: number;
  150. protocolName: string;
  151. protocolType: string;
  152. deviceType: string;
  153. deviceTypeId: number | null;
  154. dataBit: 5 | 6 | 7 | 8;
  155. parityBit: 'N' | 'O' | 'E';
  156. stopBit: '1' | '1.5' | '2';
  157. baudRate: number;
  158. dataSendInterval: number;
  159. highFreqSendInterval: number;
  160. readTimeout: number;
  161. nextDataReadDelay: number;
  162. nextRoundDataReadDelay: number;
  163. readContinuousAddr: string;
  164. readContinuousAddrCode: number;
  165. readContinuousAddrLength: number;
  166. byteOrder: string;
  167. byteOrderCode: string;
  168. addrOrder: string;
  169. addrOrderCode: string;
  170. }
  171. export interface ProtocolListQuery extends PageParams {
  172. searchContent: string;
  173. isDraft: 0 | 1;
  174. }
  175. export type ProtocolParamData = PageData<ProtocolParamInfo>;
  176. export interface ProtocolParamInfo {
  177. id: number;
  178. createTime: string;
  179. updateTime: string;
  180. createUserId: number;
  181. updateUserId: number;
  182. baseInfoId: number;
  183. platformParamCode: string;
  184. platformParamName: string;
  185. gatewayParamCode: string;
  186. gatewayParamName: string;
  187. gatewayParamExt: string | null;
  188. paramCode: string;
  189. paramName: string;
  190. unit: string;
  191. module: string;
  192. groupType: string;
  193. readWriteType: string;
  194. readWriteTypeCode: string;
  195. readFuncCode: string;
  196. writeFuncCode: string;
  197. registerAddr: string;
  198. addrNumber: string;
  199. registerType: string;
  200. registerTypeCode: string;
  201. parsingType: string;
  202. parsingTypeCode: string;
  203. addrLength: number;
  204. wordLength: number;
  205. wordLengthCode: string;
  206. quantity: number;
  207. coefficient: number;
  208. isHighFreqParam: string;
  209. isHighFreqParamCode: string;
  210. readCalcFormula: string;
  211. writeCalcFormula: string;
  212. decimalPlace: number;
  213. recognizeResult: string | null;
  214. candidateResults: string | null;
  215. platformProtocolInfoId?: number;
  216. [key: string]: unknown;
  217. }
  218. export interface ProtocolCandidateResult {
  219. platformProtocolId: number;
  220. platformProtocolGatewayParamName: string;
  221. }
  222. export interface ProtocolParamSearchParams extends PageParams {
  223. baseInfoId: number;
  224. paramCode?: string;
  225. paramName?: string;
  226. recognizeResult?: string[];
  227. }
  228. export type ProtocolStandardParamData = PageData<ProtocolStandardParam>;
  229. export interface ProtocolStandardParam {
  230. id: number;
  231. createTime: string;
  232. updateTime: string;
  233. createUserId: number;
  234. updateUserId: number;
  235. platformParamCode: string;
  236. platformParamName: string;
  237. unit: string;
  238. module: string;
  239. deviceTypeId: number;
  240. deviceType: string;
  241. enabled: number;
  242. [key: string]: unknown;
  243. }
  244. export interface ProtocolStandardParamQuery extends PageParams {
  245. platformParamCode?: string;
  246. platformParamName?: string;
  247. }
  248. export interface RegisterGatewayForm extends EquipmentInformation {
  249. snCode: string;
  250. password: string;
  251. modelId: number;
  252. linkType: string;
  253. id: number;
  254. interfaceId?: number;
  255. protocolId?: number;
  256. linkName: string;
  257. protocolName: string;
  258. }
  259. export interface VerificationEquipment {
  260. snCode: string;
  261. password: string;
  262. }
  263. export interface GatewayInformation {
  264. createTime: string;
  265. createUserId: string;
  266. deleted: number;
  267. id: number;
  268. isRegister: number;
  269. modelId: number;
  270. password: string;
  271. snCode: string;
  272. state: number;
  273. updateTime: string;
  274. updateUserId: number;
  275. }
  276. export interface GatewayModelInfo {
  277. createTime: string;
  278. createUserId: string;
  279. deleted: number;
  280. docUrl: string;
  281. iconUrl: string;
  282. id: number;
  283. interfaceId: string;
  284. interfaceNum: string;
  285. modelName: string;
  286. surfMode: string;
  287. surfModeEn: string;
  288. updateTime: string;
  289. updateUserId: string;
  290. }
  291. export interface InterfaceNum {
  292. COM: number;
  293. DI: number;
  294. DO: number;
  295. LAN: number;
  296. WAN: number;
  297. }
  298. export interface EquipmentInformation {
  299. state: number;
  300. docUrl: string;
  301. iconUrl: string;
  302. interfaceNum: string;
  303. modelName: string;
  304. surfMode: string | string[];
  305. surfModeEn: string | string[];
  306. show: boolean;
  307. judgmentRegistration: boolean;
  308. }
  309. export interface GatewayInterface {
  310. comment: string;
  311. createTime: string;
  312. createUserId: string;
  313. deleted: number;
  314. dictCode: string;
  315. dictEngValue: string;
  316. dictValue: string;
  317. enabled: number;
  318. id: number;
  319. isDefault: string;
  320. orderNum: number;
  321. tag: string;
  322. updateTime: string;
  323. updateUserId: string;
  324. }
  325. export interface AddInterface {
  326. interfaceId?: number;
  327. linkName: string;
  328. gatewayId: number;
  329. protocolType: string;
  330. }
  331. export interface InterfaceList {
  332. value: string;
  333. label: string;
  334. }
  335. export interface InterfaceData {
  336. id: number;
  337. createTime: string;
  338. updateTime: string;
  339. createUserId: number;
  340. updateUserId: number;
  341. linkName: string;
  342. gatewayId: number;
  343. interfaceId: number;
  344. protocolType: string;
  345. bindState: number;
  346. dataBit: number;
  347. parityBit: string;
  348. stopBit: string;
  349. baudRate: number;
  350. readTimeout: number;
  351. nextDataReadDelay: number;
  352. nextRoundDataReadDelay: number;
  353. interfaceType: string;
  354. }
  355. export interface AgreementUpdate {
  356. id: number;
  357. linkName: string;
  358. gatewayId: number;
  359. interfaceId: number;
  360. bindState: number;
  361. dataBit: string;
  362. parityBit: string;
  363. stopBit: string;
  364. baudRate?: string;
  365. readTimeout: number;
  366. nextDataReadDelay: number;
  367. nextRoundDataReadDelay: number;
  368. protocolType?: string;
  369. }
  370. export interface AgreementData {
  371. protocolType: string;
  372. station: string;
  373. name: string;
  374. protocolName: string;
  375. dataSendInterval: number;
  376. highFreqSendInterval: number;
  377. protocolId?: number;
  378. isStandard: string;
  379. deviceName: string;
  380. }
  381. export interface AgreementForm {
  382. baudRate?: string;
  383. dataBit: string;
  384. parityBit: string;
  385. stopBit: string;
  386. readTimeout: number;
  387. nextDataReadDelay: number;
  388. nextRoundDataReadDelay: number;
  389. }
  390. export interface EquipmentGroup {
  391. pageIndex: number;
  392. pageSize: number;
  393. content: string;
  394. }
  395. export interface DeviceGroupItem {
  396. id: number;
  397. createTime: Date | null;
  398. updateTime: Date | null;
  399. createUserId: number | null;
  400. updateUserId: number | null;
  401. groupName: string;
  402. comment: string | null;
  403. parentId: number;
  404. userId: number;
  405. deleted: boolean | null;
  406. deviceGroupChilds: DeviceGroupChild[];
  407. }
  408. export interface DeviceGroupChild {
  409. id: number;
  410. groupName: string;
  411. comment: string | null;
  412. parentId: number;
  413. userId: number;
  414. }
  415. export interface DeviceGroupTree extends DeviceGroupItem {
  416. label: string;
  417. children: DeviceGroupTreeChild[];
  418. }
  419. export interface DeviceGroupTreeChild extends DeviceGroupChild {
  420. label: string;
  421. children: (AllDevicesList & { label: string })[];
  422. }
  423. export interface ListInfo {
  424. dataType: number;
  425. }
  426. export interface ProtocolList {
  427. pageIndex: number;
  428. pageSize: number;
  429. searchContent: string;
  430. protocolType: string;
  431. }
  432. export interface EquipmentDetailsForm {
  433. id?: number;
  434. deviceName: string;
  435. groupId?: number;
  436. deviceType?: number;
  437. brand?: string;
  438. model?: string;
  439. productionDate: string;
  440. deviceDetail: string;
  441. }
  442. export interface EquipmentInformationForm {
  443. groupId: number;
  444. deviceData: number[];
  445. deviceType?: number;
  446. deviceName: string;
  447. brand?: string;
  448. model?: string;
  449. chillerType?: string;
  450. productionDate?: Dayjs;
  451. powerRating: string;
  452. refrigerantType?: string;
  453. refrigerantDosage?: string;
  454. nominalCoolingcapacity?: string;
  455. nominalcalorificvalue?: string;
  456. nominalCopRefrigeration?: string;
  457. nominalCopHeating?: string;
  458. chilledWaterRatedFlow?: string;
  459. coolingWaterRatedFlow?: string;
  460. motorCoolingMethod?: string;
  461. copCorrectionFactor?: string;
  462. numberUnitCircuits?: string;
  463. singleLoopCompressor?: string;
  464. frequencyConversion?: string;
  465. ratedVoltage?: string;
  466. inflowTemperature?: string;
  467. waterOutletTemperature?: string;
  468. relativeHumidityTemperature?: string;
  469. fanNumber?: string;
  470. waterFlowRate?: string;
  471. coolingCapacity?: string;
  472. inletPipeDiameter?: string;
  473. outletPipeDiameter?: string;
  474. ratedFlow?: string;
  475. ratedHead?: string;
  476. ratedCurrent?: string;
  477. revolutions?: string;
  478. status: string;
  479. remarks: string;
  480. devId: number;
  481. imgUrl: string;
  482. id?: number;
  483. }
  484. export interface EquipmentTypeItem {
  485. id: number;
  486. createTime: string;
  487. updateTime: string;
  488. createUserId: number;
  489. updateUserId: number;
  490. dataType: number;
  491. dataName: string;
  492. }
  493. export type ProtocolItemData = PageData<ProtocolItem>;
  494. export interface ProtocolItem {
  495. id: number;
  496. createTime: string;
  497. updateTime: string;
  498. createUserId: number;
  499. updateUserId: number;
  500. protocolName: string;
  501. protocolType: string;
  502. deviceTypeId: number | null;
  503. deviceType: string;
  504. dataBit: number;
  505. parityBit: string;
  506. stopBit: string;
  507. baudRate: number;
  508. dataSendInterval: number;
  509. highFreqSendInterval: number;
  510. readTimeout: number | null;
  511. nextDataReadDelay: number;
  512. nextRoundDataReadDelay: number;
  513. addrOrder: string;
  514. addrOrderCode: string;
  515. byteOrder: string;
  516. byteOrderCode: string;
  517. attachment: string;
  518. readContinuousAddr: string;
  519. readContinuousAddrCode: number;
  520. readContinuousAddrLength: number;
  521. }
  522. export interface ProtocolsItem {
  523. /*协议ID */
  524. protocolId?: number;
  525. /*从站号 */
  526. station: string;
  527. /*是否平台标准协议 */
  528. isStandard: string;
  529. /*普通数据上报频率 */
  530. dataSendInterval: number;
  531. /*高频发送间隔 */
  532. highFreqSendInterval: number;
  533. }
  534. export interface ProtocolReset {
  535. linkId: number;
  536. protocols: ProtocolsItem[];
  537. }
  538. export interface VerificationAgreement {
  539. id: number;
  540. createTime: string;
  541. updateTime: string;
  542. createUserId: number;
  543. updateUserId: number;
  544. linkId: number;
  545. protocolId: number;
  546. station: number;
  547. isStandard: number;
  548. dataSendInterval: number;
  549. highFreqSendInterval: number;
  550. protocolName: string;
  551. protocolType: string;
  552. deviceName: string;
  553. }
  554. export interface ProtocolListItem {
  555. pageIndex: number;
  556. pageSize: number;
  557. id?: number;
  558. linkId?: number;
  559. readWriteTypeCode?: string;
  560. monitorType?: string;
  561. searchContent?: string;
  562. }
  563. export type ProtocolListPageItemData = PageData<ProtocolListPageItem>;
  564. export interface ProtocolListPageItem {
  565. id: number;
  566. createTime: string | null;
  567. updateTime: string | null;
  568. createUserId: number | null;
  569. updateUserId: number | null;
  570. baseInfoId: number | null;
  571. platformParamCode: string | null;
  572. platformParamName: string | null;
  573. gatewayParamCode: string;
  574. gatewayParamName: string;
  575. paramCode: string;
  576. paramName: string;
  577. unit: string | null;
  578. module: number;
  579. readWriteType: string | null;
  580. readWriteTypeCode: string | null;
  581. readFuncCode: string | null;
  582. writeFuncCode: string | null;
  583. registerAddr: string | null;
  584. addrNumber: number | null;
  585. registerType: string | null;
  586. registerTypeCode: string | null;
  587. parsingType: string | null;
  588. parsingTypeCode: string | null;
  589. addrLength: number | null;
  590. wordLength: number | null;
  591. wordLengthCode: string | null;
  592. quantity: number | null;
  593. coefficient: number;
  594. isHighFreqParam: boolean | null;
  595. isHighFreqParamCode: string | null;
  596. readCalcFormula: string | null;
  597. writeCalcFormula: string | null;
  598. decimalPlace: number | null;
  599. }
  600. export type SerialNumberItemData = PageData<SerialNumberItem>;
  601. export interface SerialNumberItem {
  602. id: number;
  603. createTime: string;
  604. updateTime: string;
  605. createUserId: number;
  606. updateUserId: number;
  607. snCode: string;
  608. password: string;
  609. modelId: number;
  610. isRegister: number;
  611. state: number;
  612. deleted: number;
  613. modelName: string;
  614. links: PhysicalInterfaceList[];
  615. }
  616. export interface PhysicalInterfaceList {
  617. linkId: number;
  618. linkName: string;
  619. groups: GroupItem[];
  620. }
  621. export interface GroupItem {
  622. id: number;
  623. linkName: string;
  624. station: number;
  625. protocolId: number;
  626. protocolName: string;
  627. group: string;
  628. }
  629. export type ListEquipmentParametersItemData = PageData<ListEquipmentParametersItem>;
  630. export interface ListEquipmentParametersItem {
  631. gatewayParamCode: string;
  632. gatewayParamName: string;
  633. id: number;
  634. parsingType?: number;
  635. readWriteType?: string;
  636. readWriteTypeCode?: string;
  637. unit: string;
  638. groupId?: number;
  639. groupSerialNum?: number;
  640. groupParamSerialNum?: number;
  641. isProcessData: boolean;
  642. gatewayId: number;
  643. deviceParamCode: string;
  644. deviceParamName: string;
  645. groupName: string;
  646. groupIdShow: boolean;
  647. linkId: number;
  648. gatewayLinkProtocolId: number;
  649. }
  650. export interface GatewayDataItem extends ListEquipmentParametersItem {
  651. id: number;
  652. platformParamCode: string;
  653. platformParamName: string;
  654. gatewayParamCode: string;
  655. gatewayParamName: string;
  656. unit: string;
  657. readWriteType: string;
  658. readWriteTypeCode: string;
  659. parsingType?: number;
  660. paramGroupName: string;
  661. }
  662. export interface EquipmentUpdateForm {
  663. deviceId: number;
  664. gatewayId: number;
  665. gatewayProtocolId: number;
  666. linkId?: number;
  667. }
  668. export interface GetListItem {
  669. deviceId: number;
  670. monitorType: string;
  671. pageIndex: number;
  672. pageSize: number;
  673. gatewayId?: number;
  674. createUserId?: number;
  675. }
  676. export interface PostProtocolPage {
  677. pageIndex: number;
  678. pageSize: number;
  679. deviceIds: number[];
  680. gatewayIds: number[];
  681. }
  682. export type PostProtocolPageItemData = PageData<PostProtocolPageItem>;
  683. export interface PostProtocolPageItem {
  684. id: number;
  685. createTime: string;
  686. updateTime: string;
  687. createUserId: number;
  688. updateUserId: number;
  689. baseInfoId: number;
  690. platformParamCode?: string;
  691. platformParamName?: string;
  692. gatewayParamCode?: string;
  693. gatewayParamName?: string;
  694. paramCode: string;
  695. paramName: string;
  696. unit?: string;
  697. module: string;
  698. readWriteType: string;
  699. readWriteTypeCode: string;
  700. readFuncCode: string;
  701. writeFuncCode?: string;
  702. registerAddr: string;
  703. addrNumber?: string;
  704. registerType: string;
  705. registerTypeCode?: string;
  706. parsingType: string;
  707. parsingTypeCode: string;
  708. addrLength: number;
  709. wordLength?: string;
  710. wordLengthCode?: string;
  711. quantity?: string;
  712. coefficient: number;
  713. isHighFreqParam: string;
  714. isHighFreqParamCode: string;
  715. readCalcFormula?: string;
  716. writeCalcFormula?: string;
  717. decimalPlace?: number;
  718. deviceName: string;
  719. deviceNum: string;
  720. groupSerialNum: number;
  721. groupParamSerialNum: number;
  722. deviceId: number;
  723. isProcessData: boolean;
  724. gatewayId: number;
  725. deviceParamCode: string;
  726. deviceParamName: string;
  727. groupId?: number;
  728. deviceParamCodeShow: boolean;
  729. deviceParamNameShow: boolean;
  730. groupIdShow: boolean;
  731. groupParamSerialNumShow: boolean;
  732. }
  733. export interface ProtocolGatewayListListItem {
  734. pageIndex: number;
  735. pageSize: number;
  736. snCode?: number;
  737. gatewayId?: number;
  738. searchContent: string;
  739. monitorType: string;
  740. }
  741. export interface ParameterVerification {
  742. id: number;
  743. deviceParamGroupName: string;
  744. valueVos: ParameterVerificationList[];
  745. }
  746. export interface ParameterVerificationList {
  747. baseInfoId: number;
  748. platformParamCode: string;
  749. platformParamName: string;
  750. gatewayParamCode: string;
  751. gatewayParamName: string;
  752. paramCode: string;
  753. paramName: string;
  754. unit: string;
  755. module: string;
  756. readWriteType: string;
  757. readWriteTypeCode: string;
  758. readFuncCode: string;
  759. writeFuncCode: string;
  760. registerAddr: string;
  761. addrNumber: string;
  762. registerType: string;
  763. registerTypeCode: string;
  764. parsingType: string;
  765. parsingTypeCode: string;
  766. addrLength: number;
  767. wordLength: string;
  768. wordLengthCode: string;
  769. quantity: number;
  770. coefficient: number;
  771. isHighFreqParam: string;
  772. isHighFreqParamCode: string;
  773. readCalcFormula: string;
  774. writeCalcFormula: string;
  775. decimalPlace: number;
  776. valueId: number;
  777. value: number | string;
  778. }
  779. export interface GroupingList {
  780. groupName: string;
  781. serialNum?: number;
  782. id: number;
  783. }
  784. export interface GroupingListData {
  785. id: number;
  786. createTime: string;
  787. updateTime: string;
  788. createUserId: number;
  789. updateUserId: number;
  790. groupName: string;
  791. deviceId: number;
  792. serialNum: number;
  793. }
  794. export interface DevicesList {
  795. pageIndex: number;
  796. pageSize: number;
  797. groupId?: number;
  798. deviceType?: number;
  799. searchContent?: string;
  800. brandName?: string;
  801. modelName?: string;
  802. gatewaySnCode?: string;
  803. deviceName?: string;
  804. runningStatus?: number;
  805. runningStatusList?: DeviceRunningStatus[] | null;
  806. errorStatus?: number;
  807. }
  808. export interface ListInterfaces {
  809. id: number;
  810. createTime: string;
  811. updateTime: string;
  812. createUserId: number;
  813. updateUserId: number;
  814. modelId: number;
  815. interfaceType: string;
  816. name: string;
  817. }
  818. export interface ListPhysicalInterfaces {
  819. id: number;
  820. createTime: string;
  821. updateTime: string;
  822. createUserId: number;
  823. updateUserId: number;
  824. interfaceId: number;
  825. protocolName: string;
  826. orderNum: number;
  827. }
  828. export interface CustomizationData {
  829. deviceParamCode: string;
  830. paramNumShow: boolean;
  831. deviceParamName: string;
  832. paramNameShow: boolean;
  833. customFormula: string;
  834. customFormulaShow: boolean;
  835. unit: string;
  836. unitShow: boolean;
  837. decimalDigits?: number;
  838. decimalDigitsShow: boolean;
  839. paramGroupId?: number;
  840. paramGroupName: string;
  841. paramGroupIdShow: boolean;
  842. groupSerialNum?: number;
  843. groupSerialNumShow: boolean;
  844. groupParamSerialNum?: number;
  845. isProcessData: boolean;
  846. }
  847. export interface CustomParameters {
  848. customFormula: string;
  849. unit: string;
  850. decimalDigits?: number;
  851. deviceId: number;
  852. isProcessData: boolean;
  853. paramGroupId?: number;
  854. groupParamSerialNum?: number;
  855. paramType?: number;
  856. deviceParamCode: string;
  857. deviceParamName: string;
  858. paramGroupName: string;
  859. }
  860. export interface SubmitSorting {
  861. protocolParamId?: number;
  862. paramGroupId?: number;
  863. serialNum?: number;
  864. paramType?: number;
  865. isProcessData?: boolean;
  866. deviceParamName?: string;
  867. deviceParamCode?: string;
  868. groupId?: number;
  869. }
  870. export type DevicesListItemData = PageData<DevicesListItem>;
  871. export interface DevicesListItem {
  872. id: number;
  873. deviceName: string;
  874. deviceDetail: string;
  875. groupId: number;
  876. deviceType: number;
  877. userId: number;
  878. brand: number;
  879. model: number;
  880. modelType: number;
  881. controlType: number;
  882. compressionLevel: number;
  883. voltageLevel: number;
  884. powerRating: number;
  885. powerUnload: number;
  886. maximumFlow: number;
  887. pressure: number;
  888. pressureMax: number;
  889. productionDate: string;
  890. productionNum: string;
  891. mainTechData: string;
  892. mountedPosition: string;
  893. department: string;
  894. respPerson: string;
  895. phone: string;
  896. serviceLife: number;
  897. status: number;
  898. runningStatus: number;
  899. remarks: string;
  900. deviceNum: string;
  901. deleted: boolean;
  902. deviceGroup: DeviceGroup;
  903. gatewayInfos: GatewayInfos[];
  904. protocolParamInfos: ProtocolParamInfos[];
  905. groupName: string;
  906. deviceTypeName: string;
  907. brandName: string;
  908. modelName: string;
  909. modelTypeName: string;
  910. controlTypeName: string;
  911. compressionLevelName: string;
  912. voltageLevelName: string;
  913. }
  914. export interface DeviceGroup {
  915. id: number;
  916. createTime: string;
  917. updateTime: string;
  918. createUserId: number;
  919. updateUserId: number;
  920. groupName: string;
  921. comment: string;
  922. parentId: number;
  923. userId: number;
  924. deleted: string;
  925. orgId: number;
  926. }
  927. export interface SubmitDeviceGroup {
  928. id?: number;
  929. groupName: string;
  930. parentId?: number;
  931. }
  932. export interface DeviceParamGroup {
  933. id: number;
  934. deviceParamGroupName: string;
  935. valueVos: DeviceParamItem[];
  936. }
  937. export interface DeviceParamItem {
  938. value: string;
  939. valueId: number;
  940. serialNum: number | null;
  941. paramName: string;
  942. unit: string | null;
  943. time: string;
  944. deviceParamName: string;
  945. deviceParamCode: string;
  946. }
  947. export interface DeviceTypeCount {
  948. deviceType: number;
  949. deviceTypeName: string;
  950. count: number;
  951. }
  952. export interface DevWorkCardProps<T extends string> {
  953. realTimeData?: Partial<Record<T, number | string>>;
  954. deviceDetail: Partial<Record<string, number>>;
  955. }
  956. export interface DevWorkRealTimeData {
  957. deviceId: number;
  958. deviceParamMapList: {
  959. time: string;
  960. [key: string]: string | number;
  961. }[];
  962. }
  963. export interface DevWorkHisDataQuery {
  964. deviceIds: number[];
  965. deviceParamCode: string[];
  966. startTime?: string;
  967. endTime?: string;
  968. }
  969. export interface DevWorkHistoryData {
  970. deviceId: number;
  971. hisVOS: DevWorkHistoryDataItem[];
  972. }
  973. export interface DevWorkHistoryDataItem {
  974. deviceParamCode: string;
  975. deviceParamName: string;
  976. unit: string;
  977. value: {
  978. time: string;
  979. value: string | number;
  980. }[];
  981. }
  982. export interface GatewayInfos {
  983. id: number;
  984. createTime: string;
  985. updateTime: string;
  986. createUserId: number;
  987. updateUserId: number;
  988. snCode: string;
  989. password: string;
  990. modelId: number;
  991. isRegister: string;
  992. state: string;
  993. deleted: string;
  994. }
  995. export interface ProtocolParamInfos {
  996. id: number;
  997. createTime: string;
  998. updateTime: string;
  999. createUserId: number;
  1000. updateUserId: number;
  1001. baseInfoId: number;
  1002. orgId: number;
  1003. recognizeResult: string;
  1004. candidateResults: string;
  1005. platformParamCode: string;
  1006. platformParamName: string;
  1007. gatewayParamCode: string;
  1008. gatewayParamName: string;
  1009. paramCode: string;
  1010. paramName: string;
  1011. unit: string;
  1012. module: string;
  1013. readWriteType: string;
  1014. readWriteTypeCode: string;
  1015. readFuncCode: string;
  1016. writeFuncCode: string;
  1017. registerAddr: string;
  1018. addrNumber: string;
  1019. registerType: string;
  1020. registerTypeCode: string;
  1021. parsingType: string;
  1022. parsingTypeCode: string;
  1023. addrLength: number;
  1024. wordLength: string;
  1025. wordLengthCode: string;
  1026. quantity: number;
  1027. coefficient: number;
  1028. isHighFreqParam: string;
  1029. isHighFreqParamCode: string;
  1030. readCalcFormula: string;
  1031. writeCalcFormula: string;
  1032. decimalPlace: number;
  1033. isDraft: string;
  1034. }
  1035. export interface GatewayBody {
  1036. pageIndex: number;
  1037. pageSize: number;
  1038. searchContent: string;
  1039. state: number;
  1040. }
  1041. export type GatewayListItemData = PageData<GatewayListItem>;
  1042. export interface GatewayListItem {
  1043. id: number;
  1044. createTime: string;
  1045. updateTime: string;
  1046. createUserId: number;
  1047. updateUserId: number;
  1048. snCode: string;
  1049. password: string;
  1050. modelId: number;
  1051. isRegister: string;
  1052. state: string;
  1053. deleted: string;
  1054. modelName: string;
  1055. protocolParamInfoQueryVos: protocolParamInfo[];
  1056. }
  1057. export interface protocolParamInfo {
  1058. baseInfoId: number;
  1059. orgId: number;
  1060. recognizeResult: string;
  1061. candidateResults: string;
  1062. platformParamCode: string;
  1063. platformParamName: string;
  1064. gatewayParamCode: string;
  1065. gatewayParamName: string;
  1066. paramCode: string;
  1067. paramName: string;
  1068. unit: string;
  1069. module: string;
  1070. readWriteType: string;
  1071. readWriteTypeCode: string;
  1072. readFuncCode: string;
  1073. writeFuncCode: string;
  1074. registerAddr: string;
  1075. addrNumber: string;
  1076. registerType: string;
  1077. registerTypeCode: string;
  1078. parsingType: string;
  1079. parsingTypeCode: string;
  1080. addrLength: number;
  1081. wordLength: string;
  1082. wordLengthCode: string;
  1083. quantity: number;
  1084. coefficient: number;
  1085. isHighFreqParam: string;
  1086. isHighFreqParamCode: string;
  1087. readCalcFormula: string;
  1088. writeCalcFormula: string;
  1089. decimalPlace: number;
  1090. isDraft: string;
  1091. }
  1092. export interface GatewayParameterBody {
  1093. pageIndex: number;
  1094. pageSize: number;
  1095. gatewayId: number;
  1096. gatewayLinkProtocolId: number;
  1097. }
  1098. export type GatewayParameterItemData = PageData<GatewayParameterItem>;
  1099. export interface GatewayParameterItem {
  1100. id: number;
  1101. paramName: string;
  1102. paramCode: string;
  1103. gatewayParamName: string;
  1104. gatewayParamCode: string;
  1105. unit: string;
  1106. readWriteType: string;
  1107. readWriteTypeCode: string;
  1108. value: string | number;
  1109. time: string;
  1110. monitorStatus: string;
  1111. }
  1112. export interface EquipmentDetailsItem {
  1113. deviceQueryVo: BasicInformation;
  1114. gatewayInfoVos: AssociatedGatewayParameters[];
  1115. protocolParamDeviceInfoVos: ConfigureDeviceParameters[];
  1116. protocolParamCustomDevVos: CustomParametersItem[];
  1117. }
  1118. export interface AssociatedGatewayParameters {
  1119. id: number;
  1120. createTime: string;
  1121. updateTime: string;
  1122. createUserId: number;
  1123. updateUserId: number;
  1124. snCode: string;
  1125. password: string;
  1126. modelId: number;
  1127. isRegister: string;
  1128. state: string;
  1129. deleted: string;
  1130. modelName: string;
  1131. linkName: string;
  1132. linkId: number;
  1133. gatewayLinkProtocolId: number;
  1134. protocolParamInfoQueryVos: protocolParamInfo[];
  1135. }
  1136. export interface BasicInformation {
  1137. id: number;
  1138. deviceName: string;
  1139. groupId: number;
  1140. deviceType: number;
  1141. userId: number;
  1142. brand: number;
  1143. model: number;
  1144. modelType: number;
  1145. controlType: number;
  1146. compressionLevel: number;
  1147. voltageLevel: number;
  1148. powerRating: number;
  1149. powerUnload: number;
  1150. maximumFlow: number;
  1151. pressure: number;
  1152. pressureMax: number;
  1153. productionDate: string;
  1154. productionNum: string;
  1155. mainTechData: string;
  1156. mountedPosition: string;
  1157. department: string;
  1158. respPerson: string;
  1159. phone: string;
  1160. serviceLife: number;
  1161. status: number;
  1162. remarks: string;
  1163. deviceNum: string;
  1164. runningStatus: number;
  1165. deleted: boolean;
  1166. deviceGroup: DeviceGroup;
  1167. gatewayInfos: GatewayInfos[];
  1168. protocolParamInfos: ProtocolParamInfos[];
  1169. groupName: string;
  1170. deviceTypeName: string;
  1171. brandName: string;
  1172. modelName: string;
  1173. modelTypeName: string;
  1174. controlTypeName: string;
  1175. compressionLevelName: string;
  1176. voltageLevelName: string;
  1177. errorStatus: number;
  1178. deviceDetail: string;
  1179. imgUrl: string;
  1180. mainGroupId: number;
  1181. mainGroupName: string;
  1182. }
  1183. export interface ConfigureDeviceParameters {
  1184. baseInfoId: number;
  1185. orgId: number;
  1186. recognizeResult: string;
  1187. candidateResults: string;
  1188. platformParamCode: string;
  1189. platformParamName: string;
  1190. gatewayParamCode: string;
  1191. gatewayParamName: string;
  1192. paramCode: string;
  1193. paramName: string;
  1194. unit: string;
  1195. module: string;
  1196. readWriteType: string;
  1197. readWriteTypeCode: string;
  1198. readFuncCode: string;
  1199. writeFuncCode: string;
  1200. registerAddr: string;
  1201. addrNumber: string;
  1202. registerType: string;
  1203. registerTypeCode: string;
  1204. parsingType: string;
  1205. parsingTypeCode: string;
  1206. addrLength: number;
  1207. wordLength: string;
  1208. wordLengthCode: string;
  1209. quantity: number;
  1210. coefficient: number;
  1211. isHighFreqParam: string;
  1212. isHighFreqParamCode: string;
  1213. readCalcFormula: string;
  1214. writeCalcFormula: string;
  1215. decimalPlace: number;
  1216. isDraft: string;
  1217. id: number;
  1218. deviceParamCode: string;
  1219. deviceParamName: string;
  1220. isProcessData: number;
  1221. gatewayId: string;
  1222. groupSerialNum: number;
  1223. groupParamSerialNum: number;
  1224. groupId: number;
  1225. snCode: string;
  1226. serialNum: number;
  1227. groupName: string;
  1228. linkId: string;
  1229. gatewayLinkProtocolId: number;
  1230. }
  1231. export interface CustomParametersItem {
  1232. id: number;
  1233. customFormula: string;
  1234. unit: string;
  1235. decimalDigits: number;
  1236. deviceId: number;
  1237. serialNum: number;
  1238. isProcessData: boolean;
  1239. groupSerialNum: number;
  1240. groupParamSerialNum: number;
  1241. deviceParamCode: string;
  1242. deviceParamName: string;
  1243. groupName: string;
  1244. }
  1245. export interface AllDevicesList {
  1246. id: number;
  1247. createTime: string;
  1248. updateTime: string;
  1249. createUserId: number;
  1250. updateUserId: number;
  1251. deviceName: string;
  1252. groupId: number;
  1253. deviceType: number;
  1254. userId: number;
  1255. brand: number;
  1256. model: number;
  1257. modelType: number;
  1258. controlType: number;
  1259. compressionLevel: number;
  1260. voltageLevel: number;
  1261. powerRating: number;
  1262. powerUnload: number;
  1263. maximumFlow: number;
  1264. pressure: number;
  1265. pressureMax: number;
  1266. productionDate: string;
  1267. productionNum: string;
  1268. mainTechData: string;
  1269. mountedPosition: string;
  1270. department: string;
  1271. respPerson: string;
  1272. phone: string;
  1273. serviceLife: number;
  1274. status: number;
  1275. remarks: string;
  1276. deleted: number;
  1277. deviceNum: string;
  1278. runningStatus: string;
  1279. }
  1280. export interface GatewayQuery extends PageParams {
  1281. searchContent: string;
  1282. state: number;
  1283. total: number;
  1284. }
  1285. export interface GatewayLinkProtocolQuery {
  1286. linkId: number;
  1287. monitorType: string;
  1288. searchContent: string;
  1289. linkProtocolId: number;
  1290. }
  1291. export interface DeviceBindQuery {
  1292. deviceParamGroups: DeviceParamGroups[];
  1293. deviceGateways: DeviceGateways[];
  1294. deviceParamGroupRels: DeviceParamGroupRels[];
  1295. protocolParamCustomDevDTOS: CustomParameters[];
  1296. }
  1297. export interface DeviceParamGroups {
  1298. groupName: string;
  1299. deviceId: number;
  1300. serialNum?: number;
  1301. }
  1302. export interface DeviceGateways {
  1303. deviceId: number;
  1304. gatewayId: number;
  1305. gatewayProtocolId: number;
  1306. linkId: number;
  1307. gatewayLinkProtocolId: number;
  1308. }
  1309. export interface DeviceParamGroupRels {
  1310. deviceId: number;
  1311. protocolParamId: number;
  1312. paramGroupName: string;
  1313. paramType: number;
  1314. deviceParamCode: string;
  1315. deviceParamName: string;
  1316. isProcessData: boolean;
  1317. unit: string;
  1318. gatewayId: number;
  1319. gatewayLinkProtocolId: number;
  1320. }
  1321. export interface ParamValueListAutomaticQuery {
  1322. linkId: number;
  1323. deviceTypeId: number;
  1324. deviceId: number;
  1325. linkProtocolId: number;
  1326. }
  1327. export interface ParamValueListAutomaticData {
  1328. id: number;
  1329. createTime: string;
  1330. updateTime: string;
  1331. createUserId: number;
  1332. updateUserId: number;
  1333. baseInfoId: number;
  1334. orgId: number;
  1335. recognizeResult: string;
  1336. candidateResults: string;
  1337. platformParamCode: string;
  1338. platformParamName: string;
  1339. gatewayParamCode: string;
  1340. gatewayParamName: string;
  1341. paramCode: string;
  1342. paramName: string;
  1343. unit: string;
  1344. module: string;
  1345. readWriteType: string;
  1346. readWriteTypeCode: string;
  1347. readFuncCode: string;
  1348. writeFuncCode: string;
  1349. registerAddr: string;
  1350. addrNumber: string;
  1351. registerType: string;
  1352. registerTypeCode: string;
  1353. parsingType: string;
  1354. parsingTypeCode: string;
  1355. addrLength: number;
  1356. wordLength: string;
  1357. wordLengthCode: string;
  1358. quantity: number;
  1359. coefficient: number;
  1360. isHighFreqParam: string;
  1361. isHighFreqParamCode: string;
  1362. readCalcFormula: string;
  1363. writeCalcFormula: string;
  1364. decimalPlace: number;
  1365. isDraft: string;
  1366. }
  1367. export interface BatchUpdate {
  1368. link: LinkType;
  1369. protocols: VerificationAgreement[];
  1370. }
  1371. export interface LinkType {
  1372. id: number;
  1373. createTime?: string;
  1374. updateTime?: string;
  1375. createUserId?: number;
  1376. updateUserId?: number;
  1377. linkName: string;
  1378. gatewayId: number;
  1379. interfaceId: number;
  1380. protocolType: string;
  1381. bindState: number;
  1382. dataBit: number;
  1383. parityBit: string;
  1384. stopBit: string;
  1385. baudRate: number;
  1386. readTimeout: number;
  1387. nextDataReadDelay: number;
  1388. nextRoundDataReadDelay: number;
  1389. }
  1390. export interface LinkProtocolType {
  1391. id: number;
  1392. createTime?: string;
  1393. updateTime?: string;
  1394. createUserId?: number;
  1395. updateUserId?: number;
  1396. linkId: number;
  1397. protocolId: number;
  1398. station: number;
  1399. isStandard: string;
  1400. dataSendInterval: number;
  1401. highFreqSendInterval: number;
  1402. deviceId?: number;
  1403. }
  1404. export interface DeviceGroupListQuery {
  1405. userId?: number;
  1406. orgId?: number;
  1407. parentId: number;
  1408. haveChild?: boolean;
  1409. }
  1410. export interface MonitoringForm {
  1411. id?: number;
  1412. name: string;
  1413. tempHumidityControlMode: string;
  1414. regionId?: number;
  1415. returnDevGroupId?: number;
  1416. returnDevId?: number;
  1417. returnTempParamCode?: string;
  1418. returnHumidityParamCode?: string;
  1419. supplyDevGroupId?: number;
  1420. supplyDevId?: number;
  1421. supplyTempParamCode?: string;
  1422. supplyHumidityParamCode?: string;
  1423. outdoorDevGroupId?: number;
  1424. outdoorDevId?: number;
  1425. outdoorTempParamCode?: string;
  1426. outdoorHumidityParamCode?: string;
  1427. tempUpper?: number;
  1428. tempLower?: number;
  1429. tempPreset?: number;
  1430. humidityUpper?: number;
  1431. humidityLower?: number;
  1432. humidityPreset?: number;
  1433. runStatusFlag: number;
  1434. supplyReturnTempDiff?: number;
  1435. supplyUpperTempDiff?: number;
  1436. runStatusDevGroupId?: number;
  1437. runStatusDevId?: number;
  1438. runStatusParamCode?: string;
  1439. runStatusConditionCode?: string;
  1440. runStatusConditionValue?: string;
  1441. }
  1442. export interface RegionQuery {
  1443. id?: number;
  1444. devGroupId: number;
  1445. regionName?: string;
  1446. canvas?: string;
  1447. }
  1448. export interface GroupRegions {
  1449. id: number;
  1450. createTime: string;
  1451. updateTime: string;
  1452. createUserId: number;
  1453. updateUserId: number;
  1454. orgId: number;
  1455. devGroupId: number;
  1456. regionName: string;
  1457. canvas: string;
  1458. outsideDevGroupId: number;
  1459. outsideDevId: number;
  1460. outsideDevName: string;
  1461. outsideTempParamCode: string;
  1462. outsideTempParamName: string;
  1463. outsideTempParamUnit: string;
  1464. outsideHumidityParamCode: string;
  1465. outsideHumidityParamName: string;
  1466. outsideHumidityParamUnit: string;
  1467. }
  1468. export interface DeviceParams {
  1469. id: number;
  1470. deviceParamCode: string;
  1471. deviceParamName: string;
  1472. unit: string;
  1473. }
  1474. export interface RegionsPointsItem {
  1475. id: number;
  1476. orgId: number;
  1477. devGroupId: number;
  1478. regionName: string;
  1479. canvas: string;
  1480. outsideDevGroupId: number;
  1481. outsideDevId: number;
  1482. outsideTempParamCode: string;
  1483. outsideHumidityParamCode: string;
  1484. outsideEnthalpyParamCode: string;
  1485. outSideTemperature: string;
  1486. outSideHumidity: string;
  1487. outsideEnthalpy: string;
  1488. avgTemperature: string;
  1489. avgHumidity: string;
  1490. points: MonitoringPointData[];
  1491. name?: string;
  1492. }
  1493. export interface MonitoringPointData {
  1494. id: number;
  1495. name: string;
  1496. status: number;
  1497. temperature: string;
  1498. humidity: string;
  1499. tempUpper: number;
  1500. tempLower: number;
  1501. humidityUpper: number;
  1502. humidityLower: number;
  1503. tempData: CurvedData[];
  1504. humidityData: CurvedData[];
  1505. regionId: number;
  1506. humidityExStatus: number;
  1507. tempExStatus: number;
  1508. }
  1509. export interface CurvedData {
  1510. time: string;
  1511. value: number;
  1512. }
  1513. export interface MonitorPointInfo extends MonitoringForm {
  1514. id: number;
  1515. createTime: string;
  1516. updateTime: string;
  1517. createUserId: number;
  1518. updateUserId: number;
  1519. status: number;
  1520. returnDevGroupId: number;
  1521. supplyDevGroupId: number;
  1522. returnDevId: number;
  1523. supplyDevId: number;
  1524. outdoorDevGroupId: number;
  1525. outdoorDevId: number;
  1526. }
  1527. export interface RegionNameList {
  1528. name: string;
  1529. id: number;
  1530. }
  1531. export interface OutdooForm {
  1532. regionId?: number;
  1533. outsideDevGroupId?: number;
  1534. outsideDevId?: number;
  1535. outsideTempParamCode?: string;
  1536. outsideHumidityParamCode?: string;
  1537. outsideEnthalpyParamCode?: string;
  1538. }
  1539. export interface LimitForm {
  1540. id?: number;
  1541. regionId?: number;
  1542. tempUpper?: number;
  1543. tempLower?: number;
  1544. tempPreset?: number;
  1545. humidityUpper?: number;
  1546. humidityLower?: number;
  1547. humidityPreset?: number;
  1548. batch: boolean;
  1549. batchPointIds: string;
  1550. batchIds?: number[];
  1551. }
  1552. export interface WarningItem {
  1553. id?: number;
  1554. pointId?: number;
  1555. enabled: boolean;
  1556. type: number;
  1557. val?: number;
  1558. duration?: number;
  1559. }
  1560. export interface MonitorPointItem extends WarningItem {
  1561. createTime: string;
  1562. updateTime: string;
  1563. createUserId: string;
  1564. updateUserId: string;
  1565. orgId: number;
  1566. }
  1567. export interface PointTimeSeriesQuery {
  1568. startTime: string;
  1569. endTime: string;
  1570. }
  1571. export interface TempHumidityControlSettings {
  1572. id: number;
  1573. name: string;
  1574. tempHumidityControlMode: number;
  1575. tempPreset: number;
  1576. humidityPreset: number;
  1577. tempUpper: number;
  1578. tempLower: number;
  1579. humidityUpper: number;
  1580. humidityLower: number;
  1581. supplyTempData: HistoricalDataSequence[];
  1582. supplyHumidityData: HistoricalDataSequence[];
  1583. tempData: HistoricalDataSequence[];
  1584. humidityData: HistoricalDataSequence[];
  1585. }
  1586. export interface HistoricalDataSequence {
  1587. time: string;
  1588. value: number;
  1589. }
  1590. export interface FormatterData {
  1591. componentType: string;
  1592. seriesType: string;
  1593. seriesIndex: number;
  1594. seriesName: string;
  1595. name: string;
  1596. dataIndex: number;
  1597. data: number;
  1598. value: number;
  1599. color: string; // 系列颜色
  1600. dimensionNames: string[];
  1601. encode: object;
  1602. marker: string;
  1603. }
  1604. export interface InterfaceLsit extends InterfaceData {
  1605. protocols: VerificationAgreement[];
  1606. }
  1607. export interface AlarmForm {
  1608. eventName: string;
  1609. time: [Dayjs, Dayjs];
  1610. conditionLogic: number;
  1611. enabled: boolean;
  1612. }
  1613. export interface AlarmHistoryItem {
  1614. id: number;
  1615. createTime: string;
  1616. updateTime: string;
  1617. createUserId: number;
  1618. updateUserId: number;
  1619. pointId: number;
  1620. regionId: number;
  1621. status: number;
  1622. tempExStatus: number;
  1623. humidityExStatus: number;
  1624. triggerTime: string;
  1625. recoverTime: string;
  1626. }
  1627. export interface DataType {
  1628. code: string;
  1629. value: string;
  1630. }
  1631. export interface DataSelection {
  1632. groupId?: number;
  1633. childGroupId?: number;
  1634. deviceId?: number;
  1635. paramCode: string;
  1636. paramName: string;
  1637. deviceName?: string;
  1638. }
  1639. export interface AlarmItem extends DataSelection {
  1640. id?: number;
  1641. type: number;
  1642. subType?: string;
  1643. }
  1644. export interface TriggerConditionItem extends AlarmItem {
  1645. alarmAlgOperator?: string;
  1646. alarmThreshold?: string;
  1647. alarmDeviceState?: string;
  1648. alarmScheduledTime?: Dayjs;
  1649. alarmRepeatTime?: string;
  1650. }
  1651. export interface ExecutionAction extends AlarmItem {
  1652. alarmAdjustmentValue?: string;
  1653. alarmContact?: number;
  1654. alarmAlertContent?: string;
  1655. alarmWaitTime?: Dayjs;
  1656. alarmNotifyMethod?: string;
  1657. }
  1658. export interface DataSelectionItem {
  1659. groupId: number;
  1660. childGroupId: number;
  1661. deviceId: number;
  1662. paramCode: string;
  1663. parametersName: string;
  1664. selectType: number;
  1665. deviceName: string;
  1666. }
  1667. export interface AlarmEvent {
  1668. id?: number;
  1669. eventName: string;
  1670. startTime: string;
  1671. endTime: string;
  1672. enabled: boolean;
  1673. conditionLogic: boolean;
  1674. triggerConditionList: AlarmEventItem[];
  1675. judgmentConditionList: AlarmEventItem[];
  1676. executionActionList: AlarmEventItem[];
  1677. }
  1678. export interface DataItem {
  1679. code: string;
  1680. value: string;
  1681. }
  1682. export interface AlarmEventItem extends AlarmItem {
  1683. dataList: DataItem[];
  1684. }
  1685. export interface AlarmPageParams extends PageParams {
  1686. searchContent: string;
  1687. }
  1688. export type EventTriggerData = PageData<EventTrigger>;
  1689. export interface EventTrigger {
  1690. id: number;
  1691. eventName: string;
  1692. deviceName: string;
  1693. triggerTimes: number;
  1694. lastTriggerTime: string;
  1695. updateTime: string;
  1696. enabled: boolean;
  1697. }
  1698. export interface ChangeState {
  1699. id: number;
  1700. enabled: boolean;
  1701. }
  1702. export interface AlarmHistory extends PageParams {
  1703. eventId: number;
  1704. }
  1705. export type AlarmEventHistoryItemData = PageData<AlarmEventHistoryItem>;
  1706. export interface AlarmEventHistoryItem {
  1707. id: number;
  1708. createTime: string;
  1709. updateTime: string;
  1710. createUserId: number;
  1711. updateUserId: number;
  1712. alarmEventId: number;
  1713. type: number;
  1714. errorMsg: string;
  1715. }
  1716. export interface EnergyCardItem {
  1717. value: string | number;
  1718. unit: string;
  1719. description: string;
  1720. icon: string;
  1721. bgColor: string;
  1722. }
  1723. export interface CoolingEnergyCardItem extends EnergyCardItem {
  1724. type: CoolingDataType;
  1725. }
  1726. export interface ElectricityStatisticsQuery {
  1727. deviceId?: number | string;
  1728. deviceGroupId: number;
  1729. deviceTypes?: number[];
  1730. startTime: string;
  1731. endTime: string;
  1732. }
  1733. export interface ElectricityDeviceValue {
  1734. deviceName: string;
  1735. deviceId: number;
  1736. time: string;
  1737. bill: number;
  1738. energy: number;
  1739. dailyUse: number;
  1740. ratio: number;
  1741. }
  1742. export interface ElectricityHisQueryVo {
  1743. deviceType: string;
  1744. deviceTypeName: string;
  1745. groupName?: string | null;
  1746. valueList: ElectricityDeviceValue[];
  1747. }
  1748. export interface ElectricityGroupQueryVo {
  1749. deviceType: string;
  1750. deviceTypeName: string;
  1751. groupName?: string | null;
  1752. valueList: ElectricityDeviceValue[];
  1753. totalRatio: number;
  1754. totalEnergy: number;
  1755. totalEnergyW: number;
  1756. totalBill: number;
  1757. totalBillW: number;
  1758. totalDailyUse: number;
  1759. }
  1760. export interface ElectricityStatisticsResult {
  1761. cumulativeEnergy: number;
  1762. cumulativeBill: number;
  1763. ringGrowth: number;
  1764. cumulativeDailyUse: number;
  1765. hisQueryVos: ElectricityHisQueryVo[];
  1766. groupQueryVos: ElectricityGroupQueryVo[];
  1767. timeScaleType: TimeScaleType;
  1768. }
  1769. export interface CoolingRealTimeDataQuery {
  1770. deviceGroupId: number;
  1771. startTime: string;
  1772. endTime: string;
  1773. }
  1774. export interface CoolingRealTimeDataResult {
  1775. coolingStationEnergyEfficiency: number;
  1776. coolingStationCoolingData: number;
  1777. coolingStationOutputActivePower: number;
  1778. coolingStationWaterFlow: number;
  1779. }
  1780. export interface CoolingHistoryDataQuery {
  1781. deviceTypes: number[];
  1782. deviceGroupId: number;
  1783. startTime: string;
  1784. endTime: string;
  1785. type: CoolingDataType;
  1786. }
  1787. export interface CoolingHistoryDataResult {
  1788. data: {
  1789. deviceTypeName: string;
  1790. data: {
  1791. time: string;
  1792. [key: string]: string | number;
  1793. }[];
  1794. }[];
  1795. timeScale: TimeScaleType;
  1796. }
  1797. export interface CoolingStatisticsQuery {
  1798. deviceGroupId: number;
  1799. deviceTypes: number[];
  1800. startTime: string;
  1801. endTime: string;
  1802. }
  1803. export interface CoolingDeviceValue {
  1804. bill: number;
  1805. coolingData: number;
  1806. coolingEfficiency: number;
  1807. time: string;
  1808. }
  1809. export interface CoolingHisQueryVo {
  1810. deviceType: number;
  1811. deviceTypeName: string;
  1812. groupName?: string | null;
  1813. billRatio: number;
  1814. billTotal: number;
  1815. coolingEfficiencyTotal: number;
  1816. valueList: CoolingDeviceValue[];
  1817. }
  1818. export interface CoolingStatisticsResult {
  1819. timeScaleType: TimeScaleType;
  1820. totalCoolingData: number;
  1821. groupCoolingEfficiency: number;
  1822. tempDataList: {
  1823. temperature: number;
  1824. time: string;
  1825. }[];
  1826. hisQueryVos: CoolingHisQueryVo[];
  1827. hisCoolingDataVos: {
  1828. time: string;
  1829. valueList: Omit<CoolingDeviceValue, 'time'>[];
  1830. }[];
  1831. coolingStationDataVos: {
  1832. time: string;
  1833. coolingEfficiencyTotal: number;
  1834. valueList: Omit<CoolingDeviceValue, 'time'>[];
  1835. }[];
  1836. deviceTypeCoolingEfficiencyVos: {
  1837. deviceType: number;
  1838. deviceTypeName: string;
  1839. coolingEfficiencyTotal: number;
  1840. }[];
  1841. }
  1842. export interface AutomaticMatching {
  1843. autoVos: AutomaticMatchingItem[];
  1844. paramGroupNames: string[];
  1845. }
  1846. export interface AutomaticMatchingItem {
  1847. id: number;
  1848. baseInfoId: number;
  1849. orgId: number;
  1850. platformParamCode: string;
  1851. platformParamName: string;
  1852. gatewayParamCode: string;
  1853. gatewayParamName: string;
  1854. gatewayParamExt: string;
  1855. paramCode: string;
  1856. paramName: string;
  1857. unit: string;
  1858. paramGroupName: string;
  1859. readWriteTypeCode: string;
  1860. }
  1861. export interface TemperatureRange {
  1862. time?: [Dayjs, Dayjs];
  1863. lower: number;
  1864. upper: number;
  1865. }
  1866. export interface TemperatureRangeItem {
  1867. startTime: string;
  1868. endTime: string;
  1869. lower: number;
  1870. upper: number;
  1871. }
  1872. export interface ChillersItem {
  1873. id?: number;
  1874. createTime?: string;
  1875. updateTime?: string;
  1876. createUserId?: number;
  1877. updateUserId?: number;
  1878. algId?: number;
  1879. devId?: number;
  1880. waterTempControlMode: number | string;
  1881. continuous: number | string;
  1882. stopCompensate: number;
  1883. restartCompensate: number;
  1884. safeDiffPressureLower: number;
  1885. safeLoadLower: number;
  1886. waterTempStep: number | string;
  1887. deviceName?: string;
  1888. }
  1889. export interface AlgorithmForm {
  1890. id?: number;
  1891. devGroupId?: number;
  1892. enabled: boolean;
  1893. sendCtrlCmd: boolean;
  1894. msgBox: boolean;
  1895. tempRiseCtrlPeriod: number;
  1896. tempReductionCtrlPeriod: number;
  1897. minCtrlStep: string | number;
  1898. intelligentMode: number;
  1899. controlBasis: number;
  1900. period: number;
  1901. tempSafetyMargin: number;
  1902. humiditySafetyMargin: number;
  1903. tempHumidityCollectPeriod: string | number;
  1904. waterSupplyTempSource: number;
  1905. analysis: boolean;
  1906. analysisType: number;
  1907. enableRefrigerationPipeDynamicSet: boolean;
  1908. enableCoolingPipeDynamicSet: boolean;
  1909. coolingPipeDynamicOffset: number;
  1910. coolingPipeDynamicSet: number;
  1911. coolingPipeDynamicDeadZone: number;
  1912. coolingPipeDynamicLower: number;
  1913. coolingPipeDynamicUpper: number;
  1914. }
  1915. export interface AlgorithmConfigInfo extends AlgorithmForm {
  1916. chillers: ChillersItem[];
  1917. chilledWaterOutletTempRangeList: TemperatureRangeItem[];
  1918. chilledWaterOutletTempRange?: string;
  1919. chilledWaterOutletTempSet: string;
  1920. }
  1921. export interface OrgDeviceLimit {
  1922. deviceGlobalId?: number;
  1923. upperLimit?: number;
  1924. }
  1925. export interface OrganizationItem {
  1926. id?: number;
  1927. orgName: string;
  1928. orderNum?: number;
  1929. logo?: string;
  1930. themeColor?: string;
  1931. startTenancy?: string;
  1932. endTenancy?: string;
  1933. dataValidityPeriod?: string;
  1934. remark?: string;
  1935. enabled?: string;
  1936. orgDeviceLimits?: OrgDeviceLimit[];
  1937. }
  1938. export interface CreateCustomer {
  1939. orgName: string;
  1940. logo: string;
  1941. themeColor: string;
  1942. id?: number;
  1943. imageUrl: string;
  1944. selectedColor: string;
  1945. leaseTerm: [Dayjs, Dayjs];
  1946. stationsNumber: number;
  1947. dataValidityPeriod: string;
  1948. }
  1949. export interface CharacterItem {
  1950. name: string;
  1951. id?: number;
  1952. }
  1953. export interface AccountItem {
  1954. name: string;
  1955. }
  1956. export interface DeviceParamType {
  1957. id: number;
  1958. deviceParamCode: string;
  1959. deviceParamName: string;
  1960. unit: string;
  1961. codeType: number;
  1962. type: number;
  1963. candidates: string[];
  1964. }
  1965. export interface GroupModuleQuery {
  1966. groupId: number;
  1967. moduleType: VisualModuleType;
  1968. }
  1969. export interface GroupModuleInfo {
  1970. id: number;
  1971. createTime: string;
  1972. updateTime: string;
  1973. createUserId: number;
  1974. updateUserId: number;
  1975. leId: number;
  1976. moduleType: number;
  1977. groupId: number;
  1978. orgId: number;
  1979. deviceIds: string;
  1980. moduleInfoAi: {
  1981. id: number;
  1982. aiStartType: CtrlCabinetStartType;
  1983. aiSeekHostWaterTempValue: number;
  1984. aiSeekHostWaterTempButton: boolean;
  1985. aiSeekTowerWaterTempValue: number;
  1986. aiSeekTowerWaterTempButton: boolean;
  1987. aiSeekChildPumpValue: number;
  1988. aiSeekChildPumpButton: boolean;
  1989. aiSeekCoolingPumpValue: number;
  1990. aiSeekCoolingPumpButton: boolean;
  1991. };
  1992. }
  1993. export interface GroupModuleDevData {
  1994. deviceId: number;
  1995. deviceName: string;
  1996. dataList: {
  1997. dataCode: string;
  1998. value?: number | string;
  1999. }[];
  2000. }
  2001. export interface AIStartStopDeviceItem {
  2002. deviceId: number;
  2003. deviceName: string;
  2004. runningStatus: 0 | 1;
  2005. startStatus: 0 | 1;
  2006. }
  2007. export interface AIStartStopDeviceParams {
  2008. deviceId: number;
  2009. status: boolean;
  2010. startType: CtrlCabinetStartType;
  2011. }
  2012. export interface AIStartStopOptimizeInfo {
  2013. id: number;
  2014. groupId: number;
  2015. aiSeekHostWaterTempValue?: number;
  2016. aiSeekHostWaterTempButton?: boolean;
  2017. aiSeekTowerWaterTempValue?: number;
  2018. aiSeekTowerWaterTempButton?: boolean;
  2019. aiStartType?: CtrlCabinetStartType;
  2020. }
  2021. export interface AIOptimizeDetail {
  2022. deviceList: AIOptimizeDeviceItem[];
  2023. algorithmConfig: Partial<AlgorithmConfigInfo>;
  2024. }
  2025. export type AIOptimizeSetItemExpose = {
  2026. submit?: () => void | Promise<void>;
  2027. };
  2028. export type AIOptimizeSetItemInstance = ComponentPublicInstance<unknown, AIOptimizeSetItemExpose>;
  2029. export interface AIOptimizeDeviceItem {
  2030. id: number;
  2031. createTime: string;
  2032. updateTime: string;
  2033. createUserId: number;
  2034. updateUserId: number;
  2035. deviceName: string;
  2036. groupId: number;
  2037. deviceType: number;
  2038. userId: number;
  2039. brand: string;
  2040. model: string;
  2041. productionDate: string;
  2042. status: number;
  2043. deleted: number;
  2044. runningStatus: 0 | 1;
  2045. errorStatus: number;
  2046. orgId: number;
  2047. deviceDetail: string;
  2048. addingToAlg: boolean;
  2049. enableCopSet: boolean;
  2050. }
  2051. export interface AIAdvancedParamItem {
  2052. paramId: number;
  2053. deviceId: number;
  2054. deviceParamCode: string;
  2055. deviceParamName: string;
  2056. value: string;
  2057. pullWindow: boolean;
  2058. zeroValue: string | null;
  2059. oneValue: string | null;
  2060. }
  2061. export interface UploadLogo {
  2062. etag: string;
  2063. versionId: string;
  2064. bucket: string;
  2065. region: string;
  2066. object: string;
  2067. headers: Record<string, string>;
  2068. fileName: string;
  2069. }
  2070. export interface TreeStructure {
  2071. id: number;
  2072. menuName: string;
  2073. parentId: number;
  2074. orderNum: number;
  2075. path: string;
  2076. component: string;
  2077. isLink: string;
  2078. menuType: string;
  2079. perms: string;
  2080. icon: string;
  2081. enabled: string;
  2082. subPermissions: TreeStructure[];
  2083. }
  2084. export interface EquipmentLimitationsItem {
  2085. deviceGlobalId?: number;
  2086. upperLimit: number;
  2087. }
  2088. export interface InfoListByOrg {
  2089. id: number;
  2090. createTime: string;
  2091. updateTime: string;
  2092. createUserId: number;
  2093. updateUserId: number;
  2094. orgId: number;
  2095. deviceGlobalId: number;
  2096. upperLimit: number;
  2097. }
  2098. export interface Organization {
  2099. id: number;
  2100. parentId: number;
  2101. orgName: string;
  2102. orderNum: number;
  2103. phone: string;
  2104. email: string;
  2105. managerId: string;
  2106. enabled: string;
  2107. subOrgs: Organization[];
  2108. }
  2109. export type CharacterPageItemData = PageData<CharacterPageItem>;
  2110. export interface CharacterPageItem {
  2111. id: number;
  2112. createTime: string;
  2113. updateTime: string;
  2114. createUserId: number;
  2115. updateUserId: number;
  2116. roleName: string;
  2117. roleCode: string;
  2118. orderNum: number;
  2119. dataScope: string;
  2120. enabled: string;
  2121. defaultRole: string;
  2122. remark: string;
  2123. }
  2124. export type NoticePageItemData = PageData<NoticePageItem>;
  2125. export interface NoticePageItem {
  2126. id: number;
  2127. createTime: string;
  2128. updateTime: string;
  2129. createUserId: number;
  2130. updateUserId: number;
  2131. orgId: number;
  2132. userId: number;
  2133. type: number;
  2134. targetId: number;
  2135. devGroupId: number;
  2136. content: string;
  2137. readStatus: boolean;
  2138. }