package v1

import (
	"kami/api/commonApi"

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

type CardHistoryModel struct {
	AccountId                  string      `json:"accountId" description:"账户ID"`
	AccountName                string      `json:"accountName" description:"账户"`
	OrderNo                    string      `json:"orderNo" description:"订单号"`
	BalanceBeforeItunes        float64     `json:"balanceBeforeItunes" description:"余额(itunes)"`
	BalanceAfterItunes         float64     `json:"balanceAfterItunes" description:"余额增长后(itunes)"`
	BalanceBeforeAutoIncrement float64     `json:"balanceBeforeAutoIncrement" description:"余额(自动计算)"`
	BalanceAfterAutoIncrement  float64     `json:"balanceAfterAutoIncrement" description:"余额增长后(自动计算)"`
	Amount                     float64     `json:"amount" description:"充值金额"`
	Description                string      `json:"description" description:"描述"`
	CreatedAt                  *gtime.Time `json:"createdAt" description:"创建时间"`
}

type CardHistoryInfoListReq struct {
	g.Meta `path:"/cardInfo/AppleCard/account/getWalletList" tags:"苹果礼品卡账户" method:"get" summary:"获取苹果账户"`
	commonApi.CommonPageReq
	AccountName string `json:"accountName" dc:"苹果账户名"`
	AccountId   string `json:"accountId" dc:"苹果账户ID"`
}

type CardHistoryInfoListRes struct {
	commonApi.CommonPageRes[CardHistoryModel]
}
