添加读取本地文件功能,支持以 base64 格式返回身份证照片;更新客户信息接口,支持上传婚姻状况及相关信息
This commit is contained in:
10
src/electron.d.ts
vendored
10
src/electron.d.ts
vendored
@@ -29,6 +29,16 @@ interface ElectronAPI {
|
||||
removeIdCardListeners: () => void;
|
||||
restartApp: () => void;
|
||||
quitApp: () => void;
|
||||
// 读取本地文件并返回 base64(如果失败返回 { success:false, error })
|
||||
readLocalFile: (
|
||||
filePath: string
|
||||
) => Promise<{
|
||||
success: boolean;
|
||||
data?: string;
|
||||
mime?: string;
|
||||
error?: string;
|
||||
}>;
|
||||
// 成功时返回 { success:true, data: base64String, mime?: mimeType }
|
||||
}
|
||||
|
||||
interface Window {
|
||||
|
||||
Reference in New Issue
Block a user