package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/os/gtime"
)

type StatsOverviewReq struct {
	g.Meta    `path:"/cardInfo/walmart/stats/overview" tags:"沃尔玛充值卡统计" method:"get" summary:"获取沃尔玛充值卡统计概览"`
	GroupId   int64         `json:"groupId"`
	DateRange []*gtime.Time `json:"dateRange"`
	AccountId string        `json:"accountId"`
}

type StatsOverviewRes struct {
	TotalActiveAccountCount int     `json:"totalActiveAccountCount"`
	TotalAccountCount       int     `json:"totalAccountCount"`
	TotalOrderAmount        float64 `json:"totalOrderAmount"`
	TotalOrderAmountSuccess float64 `json:"totalOrderAmountSuccess"`
	TotalOrderCount         int     `json:"totalOrderCount"`
	TotalOrderCountSuccess  int     `json:"totalOrderCountSuccess"`
}

type StatsOverviewDownloadReq struct {
	g.Meta    `path:"/cardInfo/walmart/stats/overview/download" tags:"沃尔玛充值卡统计" method:"get" summary:"获取沃尔玛充值卡统计概览下载"`
	GroupId   int64  `json:"groupId"`
	AccountId string `json:"accountId"`
}

type StatsOverviewDownloadRes struct {
	g.Meta `mime:"application/xlsx"`
}
