package v1

import (
	"kami/api/commonApi"

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

type OrderSummaryRecord struct {
	MerchantUid       string  `json:"merchantUid"`
	MerchantName      string  `json:"merchantName"`
	SucceedCount      int64   `json:"succeedCount"`
	SucceedShowAmount float64 `json:"succeedShowAmount"`
	SucceedFactAmount float64 `json:"succeedFactAmount"`
	TotalCount        int64   `json:"totalCount" dc:"订单总量"`
	TotalShowAmount   float64 `json:"totalShowAmount"`
	TotalFactAmount   float64 `json:"totalFactAmount"`
	Rate              float64 `json:"rate" dc:"比例"`
	Date              string  `json:"date"`
	FailedCount       int64   `json:"failedCount" dc:"失败的订单"`
	WaitedCount       int64   `json:"waitedCount" dc:"创建但未填写的订单"`
}

type OrderSummaryListReq struct {
	g.Meta  `path:"/cardInfo/JDCard/order/summary" tags:"京东充值卡订单" method:"get" summary:"每日汇总"`
	RoadUid string `json:"roadUid"`
	commonApi.CommonPageReq
}

type OrderSummaryListRes struct {
	commonApi.CommonPageRes[OrderSummaryRecord]
}
