25 lines
823 B
Go
25 lines
823 B
Go
package res
|
|
|
|
import (
|
|
"github.com/shopspring/decimal"
|
|
)
|
|
|
|
type DashboardBasic struct {
|
|
TotalSale DashboardBasicItem `json:"total_sale"`
|
|
OrderStateList []DashboardBasicItem `json:"order_state_list"`
|
|
StoreSaleList []DashboardBasicItem `json:"store_sale_list"`
|
|
CateSaleList []DashboardBasicItem `json:"cate_sale_list"`
|
|
CommoditySaleList []DashboardBasicItem `json:"commodity_sale_list"`
|
|
LatestOrderList []OrderRes `json:"latest_order_list"`
|
|
}
|
|
|
|
type DashboardBasicItem struct {
|
|
Title string `json:"title"`
|
|
Desc string `json:"desc"`
|
|
Icon string `json:"icon"`
|
|
Cnt int64 `json:"cnt"`
|
|
Amount decimal.Decimal `json:"amount"`
|
|
CntText string `json:"cnt_text"`
|
|
AmountText string `json:"amount_text"`
|
|
}
|