114 lines
5.0 KiB
Go
114 lines
5.0 KiB
Go
package models
|
|
|
|
type ProductPerformanceRow struct {
|
|
KpiDate string `json:"kpi_date"`
|
|
ProductCode string `json:"product_code"`
|
|
ColorCode string `json:"color_code"`
|
|
YakaKodu string `json:"yaka_kodu"`
|
|
ItemDescription string `json:"item_description"`
|
|
Kategori string `json:"kategori"`
|
|
Seri string `json:"seri"`
|
|
YasGrubu string `json:"yas_grubu"`
|
|
AskiliYan string `json:"askili_yan"`
|
|
UrunIlkGrubu string `json:"urun_ilk_grubu"`
|
|
UrunAnaGrubu string `json:"urun_ana_grubu"`
|
|
UrunAltGrubu string `json:"urun_alt_grubu"`
|
|
MarketKey string `json:"market_key"`
|
|
StockQty float64 `json:"stock_qty"`
|
|
SalesQty30 float64 `json:"sales_qty_30d"`
|
|
SalesQty90 float64 `json:"sales_qty_90d"`
|
|
SalesQty365 float64 `json:"sales_qty_365d"`
|
|
SalesQty730 float64 `json:"sales_qty_730d"`
|
|
SalesUSD30 float64 `json:"sales_usd_30d"`
|
|
SalesUSD90 float64 `json:"sales_usd_90d"`
|
|
SalesUSD365 float64 `json:"sales_usd_365d"`
|
|
AvgDailySales90 float64 `json:"avg_daily_sales_90d"`
|
|
StockDays90 float64 `json:"stock_days_90d"`
|
|
AvgPriceUSD90 float64 `json:"avg_price_usd_90d"`
|
|
CostPriceUSD float64 `json:"cost_price_usd"`
|
|
BasePriceUSD float64 `json:"base_price_usd"`
|
|
BasePriceTRY float64 `json:"base_price_try"`
|
|
GrossProfitUSD90 float64 `json:"gross_profit_usd_90d"`
|
|
GrossMargin90 float64 `json:"gross_margin_90d"`
|
|
CustomerCount90 int `json:"customer_count_90d"`
|
|
SalesIndex90 float64 `json:"sales_index_90d"`
|
|
PriceIndex90 float64 `json:"price_index_90d"`
|
|
MarginIndex90 float64 `json:"margin_index_90d"`
|
|
PerformanceScore float64 `json:"performance_score"`
|
|
PerformanceBucket string `json:"performance_bucket"`
|
|
Recommendation string `json:"recommendation"`
|
|
LastSaleDate string `json:"last_sale_date"`
|
|
LastRefNumber string `json:"last_ref_number"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type ProductPerformanceSummary struct {
|
|
KpiDate string `json:"kpi_date"`
|
|
TotalRows int `json:"total_rows"`
|
|
StarCount int `json:"star_count"`
|
|
StockRisk int `json:"stock_risk"`
|
|
NoStockDemand int `json:"no_stock_demand"`
|
|
TotalStock float64 `json:"total_stock"`
|
|
StockCostUSD float64 `json:"stock_cost_usd"`
|
|
RiskCostUSD float64 `json:"risk_cost_usd"`
|
|
SalesQty90 float64 `json:"sales_qty_90d"`
|
|
SalesUSD90 float64 `json:"sales_usd_90d"`
|
|
GrossProfit90 float64 `json:"gross_profit_usd_90d"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type ProductPerformanceMarketRow struct {
|
|
MarketKey string `json:"market_key"`
|
|
Kategori string `json:"kategori"`
|
|
Seri string `json:"seri"`
|
|
YasGrubu string `json:"yas_grubu"`
|
|
AskiliYan string `json:"askili_yan"`
|
|
UrunIlkGrubu string `json:"urun_ilk_grubu"`
|
|
UrunAnaGrubu string `json:"urun_ana_grubu"`
|
|
UrunAltGrubu string `json:"urun_alt_grubu"`
|
|
ProductCount int `json:"product_count"`
|
|
StarCount int `json:"star_count"`
|
|
StockRiskCount int `json:"stock_risk_count"`
|
|
StockQty float64 `json:"stock_qty"`
|
|
StockCostValueUSD float64 `json:"stock_cost_value_usd"`
|
|
RiskStockCostValueUSD float64 `json:"risk_stock_cost_value_usd"`
|
|
SalesQty90 float64 `json:"sales_qty_90d"`
|
|
SalesUSD90 float64 `json:"sales_usd_90d"`
|
|
GrossProfitUSD90 float64 `json:"gross_profit_usd_90d"`
|
|
AvgGrossMargin90 float64 `json:"avg_gross_margin_90d"`
|
|
AvgStockDays90 float64 `json:"avg_stock_days_90d"`
|
|
}
|
|
|
|
type ProductPerformanceCountryRow struct {
|
|
Country string `json:"country"`
|
|
CustomerSegment string `json:"customer_segment"`
|
|
MarketKey string `json:"market_key"`
|
|
Kategori string `json:"kategori"`
|
|
Seri string `json:"seri"`
|
|
ProductCount int `json:"product_count"`
|
|
SalesQty90 float64 `json:"sales_qty_90d"`
|
|
SalesUSD90 float64 `json:"sales_usd_90d"`
|
|
AvgPriceUSD90 float64 `json:"avg_price_usd_90d"`
|
|
CustomerCount90 int `json:"customer_count_90d"`
|
|
InvoiceCount90 int `json:"invoice_count_90d"`
|
|
SalesQty365 float64 `json:"sales_qty_365d"`
|
|
SalesUSD365 float64 `json:"sales_usd_365d"`
|
|
}
|
|
|
|
type ProductPerformanceCustomerRow struct {
|
|
Breakdown string `json:"breakdown"`
|
|
MarketKey string `json:"market_key"`
|
|
Country string `json:"country"`
|
|
CustomerSegment string `json:"customer_segment"`
|
|
CustomerCode string `json:"customer_code"`
|
|
CustomerName string `json:"customer_name"`
|
|
ProductCount int `json:"product_count"`
|
|
SalesQty90 float64 `json:"sales_qty_90d"`
|
|
SalesUSD90 float64 `json:"sales_usd_90d"`
|
|
AvgPriceUSD90 float64 `json:"avg_price_usd_90d"`
|
|
InvoiceCount90 int `json:"invoice_count_90d"`
|
|
SalesQty365 float64 `json:"sales_qty_365d"`
|
|
SalesUSD365 float64 `json:"sales_usd_365d"`
|
|
LastSaleDate string `json:"last_sale_date"`
|
|
}
|