feat: 支持上课统计功能;优化会员管理默认筛选状态

This commit is contained in:
richarjiang
2026-09-09 10:04:29 +08:00
parent 30ebc1c344
commit 99c5c211ad
17 changed files with 594 additions and 20 deletions

View File

@@ -53,6 +53,9 @@ export type {
// Types
export type {
TeachingAnalytics,
TeachingAnalyticsRecord,
TeachingAnalyticsSummary,
User,
UserProfileResponse,
UpdateProfileDto,

View File

@@ -59,3 +59,5 @@ export type {
InviteActivitySummary,
} from './invite'
export { FlashSalePhase } from './flash-sale'
export type { TeachingAnalytics, TeachingAnalyticsRecord, TeachingAnalyticsSummary } from './teaching-analytics'

View File

@@ -0,0 +1,31 @@
import type { BookingStatus } from '../enums'
export interface TeachingAnalyticsRecord {
id: string
userId: string
nickname: string
slotId: string
date: string
startTime: string
endTime: string
cardName: string
status: BookingStatus
needsReview: boolean
}
export interface TeachingAnalyticsSummary {
sessions: number
attendances: number
students: number
minutes: number
teachingDays: number
}
export interface TeachingAnalytics {
month: string
generatedAt: string
summary: TeachingAnalyticsSummary
previousMonth: string
previous: TeachingAnalyticsSummary
records: TeachingAnalyticsRecord[]
}