feat: 历史记录增强+IPC响应式Proxy修复+水印异常处理
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user