package profit_ranking

// ProfitRankingRequest 利润同比排行请求参数
type ProfitRankingRequest struct {
	Ct          []string `json:"ct"`           // 时间范围 [开始时间, 结束时间]
	ResellerIds []string `json:"reseller_ids"` // 经销商ID列表
}

// ProfitRankingResponse 利润同比排行响应结构
type ProfitRankingResponse struct {
	Code int               `json:"code"`
	Msg  string            `json:"msg"`
	Data ProfitRankingData `json:"data"`
}

type ProfitRankingData struct {
	List      []ProfitRankingItem `json:"list"`
	DataCount int                 `json:"dataCount"`
}

type ProfitRankingItem struct {
	ResellerId       string  `json:"resellerId"`
	ResellerName     string  `json:"resellerName"`
	CurrentProfit    float64 `json:"currentProfit"`
	HistoryOneProfit float64 `json:"historyOneProfit"`
	HistoryTwoProfit float64 `json:"historyTwoProfit"`
	HistoryOneDiff   float64 `json:"historyOneDiff"`
	HistoryTwoDiff   float64 `json:"historyTwoDiff"`
}
