feat: 支持上课统计功能;优化会员管理默认筛选状态
This commit is contained in:
@@ -53,6 +53,9 @@ export type {
|
||||
|
||||
// Types
|
||||
export type {
|
||||
TeachingAnalytics,
|
||||
TeachingAnalyticsRecord,
|
||||
TeachingAnalyticsSummary,
|
||||
User,
|
||||
UserProfileResponse,
|
||||
UpdateProfileDto,
|
||||
|
||||
@@ -59,3 +59,5 @@ export type {
|
||||
InviteActivitySummary,
|
||||
} from './invite'
|
||||
export { FlashSalePhase } from './flash-sale'
|
||||
|
||||
export type { TeachingAnalytics, TeachingAnalyticsRecord, TeachingAnalyticsSummary } from './teaching-analytics'
|
||||
|
||||
31
packages/shared/src/types/teaching-analytics.ts
Normal file
31
packages/shared/src/types/teaching-analytics.ts
Normal 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[]
|
||||
}
|
||||
Reference in New Issue
Block a user