package v1

import (
	"kami/api/commonApi"

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

// TMallGameOrderQueryOrderReq 查询订单
type TMallGameOrderQueryOrderReq struct {
	g.Meta  `path:"/recharge/tMallGame/order/queryOne" tags:"天猫游戏订单" method:"get" summary:"查询天猫单个订单"`
	Account string `json:"tId" description:"订单ID" v:"required#游戏账号不能为空"`
}

type TMallGameOrderQueryOrderRes struct {
	Id           string      `json:"id" description:"充值ID"`
	SourceOfShop string      `json:"sourceOfShop" description:"来源"`
	OrderNo      string      `json:"orderNo" description:"订单号"`
	Category     string      `json:"category" description:"游戏品类"`
	Account      string      `json:"account" description:"游戏账号"`
	Amount       float64     `json:"amount" description:"充值金额"`
	TopUpTime    *gtime.Time `json:"topUpTime" description:"充值时间"`
	Status       int         `json:"status" description:"状态"`
}

// TMallGameOrderQueryCategoryReq 查询订单
type TMallGameOrderQueryCategoryReq struct {
	g.Meta   `path:"/recharge/tMallGame/getCategoryList" tags:"天猫游戏订单" method:"get" summary:"查询天猫游戏分类"`
	TId      string `json:"tId" description:"订单ID"`
	Category string `json:"category" description:"游戏类型"`
}

type TMallGameOrderCategory struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type TMallGameOrderQueryCategoryRes struct {
	commonApi.CommonDataRes[TMallGameOrderCategory]
}
