Przeglądaj źródła

feat(types): 基本设置添加停机公告

lipk 3 lat temu
rodzic
commit
5c65555426
1 zmienionych plików z 17 dodań i 8 usunięć
  1. 17 8
      types/src/interface/generalSetting.ts

+ 17 - 8
types/src/interface/generalSetting.ts

@@ -3,16 +3,25 @@ export interface IWorkbench {
   emergencyDays: number;
 }
 
+export interface IDowntimeAnnouncement {
+  startTime: string;
+  alertTime: number;
+  waitTime: number;
+  message: string;
+  activation: boolean;
+}
+
 export interface IGeneralSetting {
   ID: string;
   workbench: IWorkbench;
   registerAccount?: {
-    accountFormat: String,
-    accountFormatMsg: String,
-    registerAccount: Boolean,
-    realNameAuthentication: Boolean,
-    certifiedPhone: Boolean,
-    phoneonly: Boolean,
-    secondaryCertification: Boolean,
-  },
+    accountFormat: string;
+    accountFormatMsg: string;
+    registerAccount: boolean;
+    realNameAuthentication: boolean;
+    certifiedPhone: boolean;
+    phoneonly: boolean;
+    secondaryCertification: boolean;
+  };
+  downtimeAnnouncement?: IDowntimeAnnouncement;
 }