feat(database): 实现数据库功能并优化数据导出
- 新增数据库相关 API 和服务 - 实现数据导出功能,支持导出到 JSON 文件 - 优化数据导入流程,增加数据校验 - 新增数据库页面,展示解析数据和统计信息 - 更新捕获页面,支持导入数据到数据库
This commit is contained in:
14
frontend/wailsjs/go/service/App.d.ts
vendored
14
frontend/wailsjs/go/service/App.d.ts
vendored
@@ -2,18 +2,32 @@
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {model} from '../models';
|
||||
|
||||
export function ExportCurrentData(arg1:string):Promise<void>;
|
||||
|
||||
export function ExportData(arg1:Array<string>,arg2:string):Promise<void>;
|
||||
|
||||
export function GetAllAppSettings():Promise<Record<string, string>>;
|
||||
|
||||
export function GetAppSetting(arg1:string):Promise<string>;
|
||||
|
||||
export function GetCaptureStatus():Promise<model.CaptureStatus>;
|
||||
|
||||
export function GetCapturedData():Promise<Array<string>>;
|
||||
|
||||
export function GetCurrentDataForExport():Promise<string>;
|
||||
|
||||
export function GetLatestParsedDataFromDatabase():Promise<model.ParsedResult>;
|
||||
|
||||
export function GetNetworkInterfaces():Promise<Array<model.NetworkInterface>>;
|
||||
|
||||
export function ParseData(arg1:Array<string>):Promise<string>;
|
||||
|
||||
export function ReadRawJsonFile():Promise<model.ParsedResult>;
|
||||
|
||||
export function SaveAppSetting(arg1:string,arg2:string):Promise<void>;
|
||||
|
||||
export function SaveParsedDataToDatabase(arg1:string,arg2:string,arg3:string):Promise<void>;
|
||||
|
||||
export function StartCapture(arg1:string):Promise<void>;
|
||||
|
||||
export function StopAndParseCapture():Promise<model.ParsedResult>;
|
||||
|
||||
@@ -2,10 +2,22 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function ExportCurrentData(arg1) {
|
||||
return window['go']['service']['App']['ExportCurrentData'](arg1);
|
||||
}
|
||||
|
||||
export function ExportData(arg1, arg2) {
|
||||
return window['go']['service']['App']['ExportData'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function GetAllAppSettings() {
|
||||
return window['go']['service']['App']['GetAllAppSettings']();
|
||||
}
|
||||
|
||||
export function GetAppSetting(arg1) {
|
||||
return window['go']['service']['App']['GetAppSetting'](arg1);
|
||||
}
|
||||
|
||||
export function GetCaptureStatus() {
|
||||
return window['go']['service']['App']['GetCaptureStatus']();
|
||||
}
|
||||
@@ -14,6 +26,14 @@ export function GetCapturedData() {
|
||||
return window['go']['service']['App']['GetCapturedData']();
|
||||
}
|
||||
|
||||
export function GetCurrentDataForExport() {
|
||||
return window['go']['service']['App']['GetCurrentDataForExport']();
|
||||
}
|
||||
|
||||
export function GetLatestParsedDataFromDatabase() {
|
||||
return window['go']['service']['App']['GetLatestParsedDataFromDatabase']();
|
||||
}
|
||||
|
||||
export function GetNetworkInterfaces() {
|
||||
return window['go']['service']['App']['GetNetworkInterfaces']();
|
||||
}
|
||||
@@ -26,6 +46,14 @@ export function ReadRawJsonFile() {
|
||||
return window['go']['service']['App']['ReadRawJsonFile']();
|
||||
}
|
||||
|
||||
export function SaveAppSetting(arg1, arg2) {
|
||||
return window['go']['service']['App']['SaveAppSetting'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function SaveParsedDataToDatabase(arg1, arg2, arg3) {
|
||||
return window['go']['service']['App']['SaveParsedDataToDatabase'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function StartCapture(arg1) {
|
||||
return window['go']['service']['App']['StartCapture'](arg1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user