数据分析ui补充完善,接入数据库
This commit is contained in:
38
types/analytics/profile.uts
Normal file
38
types/analytics/profile.uts
Normal file
@@ -0,0 +1,38 @@
|
||||
// types/analytics/profile.uts
|
||||
|
||||
export type ReportStatus = 'pending' | 'ready' | 'failed' | 'scheduled' | 'shared' | string
|
||||
|
||||
export type RecentReport = {
|
||||
id: string
|
||||
title: string
|
||||
description: string
|
||||
status: ReportStatus
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export type OverviewData = {
|
||||
totalSales: string
|
||||
salesGrowth: number
|
||||
totalUsers: string
|
||||
userGrowth: number
|
||||
totalOrders: string
|
||||
orderGrowth: number
|
||||
conversionRate: number
|
||||
conversionGrowth: number
|
||||
}
|
||||
|
||||
export type ReportCounts = {
|
||||
total: number
|
||||
pending: number
|
||||
scheduled: number
|
||||
shared: number
|
||||
}
|
||||
|
||||
export type TodayInsights = {
|
||||
hotProduct: string
|
||||
peakTraffic: string
|
||||
conversionAnomaly: string
|
||||
mobileRatio: number
|
||||
}
|
||||
|
||||
export type TrendDatum = { label: string; sales: number; orders: number }
|
||||
Reference in New Issue
Block a user