feat: 历史记录增强+IPC响应式Proxy修复+水印异常处理

This commit is contained in:
2026-07-16 12:55:44 +08:00
parent 08a831b806
commit cc0f80d020
7 changed files with 391 additions and 44 deletions
+19
View File
@@ -41,6 +41,15 @@ export interface HistoryRecord {
teacher_score: number
confidence: number
created_at: string
question_title?: string
max_score?: number
reference_answer?: string
rubric?: string
deductions?: string
comment?: string
result_json?: string
image_data?: string
reference_answer_image?: string
}
export interface ElectronAPI {
@@ -67,6 +76,7 @@ export interface ElectronAPI {
history: {
list: () => Promise<HistoryRecord[]>
delete: (id: number) => Promise<boolean>
getById: (id: number) => Promise<HistoryRecord | null>
}
grading: {
submit: (data: {
@@ -76,6 +86,15 @@ export interface ElectronAPI {
teacherScore: number
confidence: number
studentAnswer?: string
questionTitle?: string
maxScore?: number
referenceAnswer?: string
rubric?: string
deductions?: string[]
comment?: string
resultJson?: string
imageData?: string
referenceAnswerImage?: string
}) => Promise<boolean>,
storeData: (data: any) => Promise<void>,
getData: () => Promise<any>