feat: establish teaching feedback mini program

Connect student profiles, defaults, and feedback records to the Rust API. Configure the WeChat AppID, custom tab bar, and local development workflow for version 0.1.0.
This commit is contained in:
2026-07-15 15:36:51 +08:00
commit 0a07538dce
37 changed files with 2550 additions and 0 deletions

52
utils/types.ts Normal file
View File

@@ -0,0 +1,52 @@
export type Term = '春' | '暑' | '秋' | '寒'
export interface StudentProfile {
id: string
name: string
grade: string
subject: string
academicYear: number
term: Term
guardianTitle: string
startTime: string
endTime: string
createdAt: number
updatedAt: number
}
export interface StudentProfileDefaults {
grade: string
subject: string
lessonDurationMinutes: number
}
export interface StudentDraft {
name: string
grade: string
subject: string
academicYear: number
term: Term
guardianTitle: string
startTime: string
endTime: string
}
export interface FeedbackRecord {
id: string
profileId: string | null
feedbackDate: string
content: string
createdAt: number
updatedAt: number
}
export interface FeedbackDraft {
profileId: string | null
feedbackDate: string
content: string
}
export interface HealthStatus {
status: string
databaseConfigured: boolean
}