package v1

import (
	"kami/api/commonApi"
	"kami/internal/consts"

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

type OrderSummaryRecord struct {
	Count    int                              `orm:"count" json:"count"`
	Amount   float64                          `orm:"amount" json:"amount"`
	Date     *gtime.Time                      `orm:"date" json:"date"`
	Category consts.CardRedeemAccountCategory `orm:"category" json:"category"`
}

type OrderSummaryListReq struct {
	g.Meta    `path:"/cardInfo/walmart/order/summary" tags:"沃尔玛充值卡订单" method:"get" summary:"每日汇总"`
	GroupId   int64         `json:"groupId"`
	AccountId string        `json:"accountId"`
	DateRange []*gtime.Time `json:"dateRange"`
}

type OrderSummaryListRes struct {
	commonApi.CommonPageRes[*OrderSummaryRecord]
}
