change transition structure 2

This commit is contained in:
2026-07-10 23:25:40 +03:30
parent 62f615f5c1
commit 69358a6ff2
4 changed files with 566 additions and 0 deletions
+36
View File
@@ -31,6 +31,17 @@ export interface DashboardMaster {
}>
}
export interface DashboardDailyProfit {
date: string
/** سود طلایی روز: کارمزد کسرشده از طلا (گرم) */
profit_gold: number
/** سود ریالی روز: کارمزد کسرشده از ریال */
profit_rial: number
/** سود اختلاف قیمت روز (ریال) */
spread_rial: number
order_count: number
}
export interface DashboardFinance {
fullPriceM1?: number
fullPriceM2?: number
@@ -43,6 +54,31 @@ export interface DashboardFinance {
Gifts?: string
GiftsPrise?: number
sumAll?: number
/** سود طلایی: مجموع کارمزدهای کسرشده از طلا (گرم) */
profitGoldGrams?: number
/** سود ریالی: مجموع کارمزدهای کسرشده از ریال */
profitRial?: number
/** ارزش ریالی سود طلایی با قیمت روز */
profitGoldValueRial?: number
/** تفکیک روزانهٔ سود طلایی/ریالی */
daily?: DashboardDailyProfit[]
}
export interface ProfitConversion {
id: number
user_id?: number | null
rial_amount: number
gram_amount: number
unit_price: number
converted_at?: string | null
description?: string | null
created_at?: string
}
export interface ProfitConversionsResponse {
items: ProfitConversion[]
totalRial: number
totalGram: number
}
export interface DashboardFlowPoint {