Spaces:
Sleeping
Sleeping
Update types.ts
Browse files
types.ts
CHANGED
|
@@ -47,6 +47,10 @@ export interface User {
|
|
| 47 |
gender?: 'Male' | 'Female';
|
| 48 |
seatNo?: string;
|
| 49 |
idCard?: string;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
|
| 52 |
export interface Student {
|
|
@@ -408,3 +412,34 @@ export interface AIChatMessage {
|
|
| 408 |
isSearching?: boolean; // New status flag for search
|
| 409 |
timestamp: number;
|
| 410 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
gender?: 'Male' | 'Female';
|
| 48 |
seatNo?: string;
|
| 49 |
idCard?: string;
|
| 50 |
+
doubaoState?: {
|
| 51 |
+
responseId?: string;
|
| 52 |
+
thinkingState?: boolean;
|
| 53 |
+
};
|
| 54 |
}
|
| 55 |
|
| 56 |
export interface Student {
|
|
|
|
| 412 |
isSearching?: boolean; // New status flag for search
|
| 413 |
timestamp: number;
|
| 414 |
}
|
| 415 |
+
|
| 416 |
+
// --- Comment Generator Types ---
|
| 417 |
+
export type ClassRole = 'YES' | 'NO';
|
| 418 |
+
export type Discipline = 'YES' | 'AVERAGE' | 'NO';
|
| 419 |
+
export type AcademicQuality = 'EXCELLENT' | 'GOOD' | 'PASS' | 'FAIL';
|
| 420 |
+
export type Personality = '活泼' | '内敛' | '沉稳' | '细心' | '热心' | '恒心' | '爱心' | '勇敢' | '正义';
|
| 421 |
+
export type Hobby = '体育' | '音乐' | '舞蹈' | '绘画' | '书法' | '手工' | '其他';
|
| 422 |
+
export type Labor = '热爱' | '一般' | '较少参与';
|
| 423 |
+
export type Zodiac = '鼠' | '牛' | '虎' | '兔' | '龙' | '蛇' | '马' | '羊' | '猴' | '鸡' | '狗' | '猪';
|
| 424 |
+
|
| 425 |
+
// 学生画像接口
|
| 426 |
+
export interface StudentProfile {
|
| 427 |
+
name: string;
|
| 428 |
+
classRole: ClassRole;
|
| 429 |
+
discipline: Discipline;
|
| 430 |
+
academic: AcademicQuality;
|
| 431 |
+
personality: Personality;
|
| 432 |
+
hobby: Hobby;
|
| 433 |
+
labor: Labor;
|
| 434 |
+
zodiacYear: Zodiac;
|
| 435 |
+
wordCount: number;
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
// 已保存记录接口
|
| 439 |
+
export interface SavedRecord {
|
| 440 |
+
id: string;
|
| 441 |
+
name: string;
|
| 442 |
+
comment: string;
|
| 443 |
+
zodiac: Zodiac;
|
| 444 |
+
timestamp: number;
|
| 445 |
+
}
|