feat: 支持自动获取并安全保存数据库密钥

This commit is contained in:
电摇小子 committed 2026-06-30 10:12:25 +08:00
1 parent a184bb1da1
commit 44bf1bcaef
7 files changed
+482 -9

No files matched your search

+12
View File
@@ -61,6 +61,18 @@ declare global {
) => Promise<{ success: boolean; data?: string; error?: string }>
exportGroupReport: (request: GroupReportExportRequest) => Promise<GroupReportExportResult>
revealGroupReport: (filePath: string) => Promise<{ success: boolean; error?: string }>
getSavedDbKey: () => Promise<{ success: boolean; key?: string; error?: string }>
autoGetDbKey: () => Promise<{
success: boolean
key?: string
error?: string
code?: string
saved?: boolean
warning?: string
}>
pasteAndSaveDbKey: () => Promise<{ success: boolean; key?: string; error?: string }>
clearSavedDbKey: () => Promise<{ success: boolean; error?: string }>
onDbKeyStatus: (callback: (payload: { message: string }) => void) => () => void
}
}
}