This commit is contained in:
Your Name
2026-08-12 11:03:28 +08:00
parent 09d3fcbf82
commit bc9ad1d3cd
32 changed files with 4586 additions and 2341 deletions
+18
View File
@@ -1,5 +1,10 @@
/// <reference types="vite/client" />
declare module 'tim-upload-plugin' {
const plugin: unknown
export default plugin
}
interface DoctorCallConfig {
SDKAppID?: number | string
sdkAppId?: number | string
@@ -9,6 +14,8 @@ interface DoctorCallConfig {
targetUserId?: string
patientUserId?: string
diagnosisId: number | string
patientName?: string
mode?: 'chat' | 'video'
}
interface DoctorCallApi {
@@ -16,12 +23,23 @@ interface DoctorCallApi {
hangup(): Promise<void>
}
interface DoctorConsultationApi {
open(config: DoctorCallConfig): Promise<void>
close(): Promise<void>
startVideo(): Promise<void>
hangup(): Promise<void>
hostCallReady(ok: boolean, message?: string): void
screenshotResult(ok: boolean, message: string): void
}
interface QtVideoBridge {
notify?: (payload: string) => void
saveScreenshot?: (dataUrl: string) => void
}
interface Window {
doctorCall: DoctorCallApi
doctorConsultation: DoctorConsultationApi
qtVideoBridge?: QtVideoBridge
qt?: { webChannelTransport?: unknown }
QWebChannel?: new (