数据分析ui补充完善,接入数据库
This commit is contained in:
22
types/analytics/sales.uts
Normal file
22
types/analytics/sales.uts
Normal file
@@ -0,0 +1,22 @@
|
||||
// types/analytics/sales.uts
|
||||
|
||||
// Re-exporting shared types from dashboard for semantic clarity in the sales context.
|
||||
import type { TrendData, TopProductItem, TopMerchantItem } from './dashboard.uts'
|
||||
|
||||
export type SalesTrendData = TrendData
|
||||
export type ProductRank = TopProductItem
|
||||
export type MerchantRank = TopMerchantItem
|
||||
|
||||
/**
|
||||
* Key Performance Indicators for the Sales Report page.
|
||||
*/
|
||||
export type SalesData = {
|
||||
gmv: number
|
||||
gmv_growth: number
|
||||
orders: number
|
||||
order_growth: number
|
||||
conversion_rate: number
|
||||
conversion_growth: number
|
||||
avg_order_amount: number
|
||||
avg_order_growth: number
|
||||
}
|
||||
Reference in New Issue
Block a user