53 lines
1.1 KiB
Go
53 lines
1.1 KiB
Go
package bbxt
|
|
|
|
type ResellerLoss struct {
|
|
ResellerId int32
|
|
ResellerName string
|
|
Total float64
|
|
ProductLoss map[int32]*ProductLoss
|
|
Manager string
|
|
}
|
|
|
|
type ProductLoss struct {
|
|
ProductId int32
|
|
ProductName string
|
|
Loss float64
|
|
LossReason string
|
|
}
|
|
|
|
type ReportRes struct {
|
|
ReportName string
|
|
Title string
|
|
Path string
|
|
Url string
|
|
Data [][]string
|
|
Desc string
|
|
}
|
|
|
|
type ProductSumDecline struct {
|
|
OfficialProductId int32
|
|
OfficialProductName string
|
|
ProductSumReseller map[int32]ProductSumReseller
|
|
Index int
|
|
}
|
|
|
|
type ProductSumReseller struct {
|
|
ResellerName string
|
|
CurrentNum int32 //今日成功数量
|
|
HistoryOneNum int32 //昨日成功数量
|
|
HistoryOneDiff int32 //同比昨日当前增减量
|
|
HistoryTwoNum int32 //上周成功数量
|
|
HistoryTwoDiff int32 //同比上周当前增减量
|
|
}
|
|
|
|
type ResellerLossSumProductRelation struct {
|
|
AfterSaleName string `json:"after_sale_name"`
|
|
ResellerName string `json:"reseller_name"`
|
|
Products map[int32]*LossReason
|
|
}
|
|
|
|
type LossReason struct {
|
|
ProductName string
|
|
LossReason string
|
|
}
|