Pārlūkot izejas kodu

chore(types): 更新类型定义

wangshun 2 mēneši atpakaļ
vecāks
revīzija
57a8a69d27
1 mainītis faili ar 8 papildinājumiem un 6 dzēšanām
  1. 8 6
      src/types/index.ts

+ 8 - 6
src/types/index.ts

@@ -231,7 +231,7 @@ export interface ProtocolStandardParamQuery extends PageParams {
   paramName?: string;
 }
 
-export interface RegisterGatewayForm {
+export interface RegisterGatewayForm extends EquipmentInformation {
   snCode: string;
   password: string;
   modelId: number;
@@ -287,15 +287,15 @@ export interface InterfaceNum {
 }
 
 export interface EquipmentInformation {
-  id: number;
   state: number;
-  modelId: number;
   docUrl: string;
   iconUrl: string;
   interfaceNum: string;
   modelName: string;
   surfMode: string | string[];
   surfModeEn: string | string[];
+  show: boolean;
+  judgmentRegistration: boolean;
 }
 
 export interface GatewayInterface {
@@ -368,11 +368,11 @@ export interface AgreementData {
   station: string;
   name: string;
   protocolName: string;
-  dev: string;
   dataSendInterval: number;
   highFreqSendInterval: number;
-  protocolId: number;
+  protocolId?: number;
   isStandard: string;
+  deviceName: string;
 }
 
 export interface AgreementForm {
@@ -420,6 +420,7 @@ export interface ListInfo {
 export interface ProtocolList {
   pageIndex: number;
   pageSize: number;
+  searchContent: string;
 }
 
 export interface EquipmentInformationForm {
@@ -495,7 +496,7 @@ export interface ProtocolItem {
 
 export interface ProtocolsItem {
   /*协议ID */
-  protocolId: number;
+  protocolId?: number;
 
   /*从站号 */
   station: string;
@@ -528,6 +529,7 @@ export interface VerificationAgreement {
   highFreqSendInterval: number;
   protocolName: string;
   protocolType: string;
+  deviceName: string;
 }
 
 export interface ProtocolListItem {