first commit
This commit is contained in:
24
pkg/res/admin.go
Normal file
24
pkg/res/admin.go
Normal file
@ -0,0 +1,24 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user