first commit

This commit is contained in:
Yangtao
2025-11-18 17:48:20 +08:00
commit 6e56cab848
196 changed files with 65809 additions and 0 deletions

24
pkg/res/admin.go Normal file
View 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"`
}