package v1

import (
	"kami/internal/consts"

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

type TMallGameAgisoCallbackReq struct {
	g.Meta       `path:"/recharge/tMallGame/agiso/callback" tags:"天猫游戏订单" method:"post" summary:"阿奇索请求回调"`
	FromPlatform string                     `json:"fromPlatform" description:"平台，参数值：TbAcs,TbAlds,TbArs,Print,Acpr,PddAlds,AldsIdle,AldsJd,AldsDoudian,AldsKwai,AldsYouzan,AldsWeidian,AldsWxVideoShop"`
	TimeStamp    int                        `json:"timeStamp" description:"时间戳"`
	Aopic        consts.AgisoCallbackStatus `json:"aopic" description:"推送类型"`
	Json         string                     `json:"json" description:"json"`
	Sign         string                     `json:"sign" description:"签名"`
}

type TMallGameAgisoCallbackRes struct {
}

type TMallGameAccountAuthorizeCallbackReq struct {
	g.Meta  `path:"/recharge/tMallGame/account/auth/callback" tags:"天猫游戏订单" method:"post" summary:"天猫对接授权回调"`
	Code    string                            `json:"code" description:"回调授权码"`
	Channel consts.TMallGameThirdPartyChannel `json:"channel" description:"渠道"`
}

type TMallGameAccountAuthorizeCallbackRes struct {
}

type CallBackOrderManualReq struct {
	g.Meta  `path:"/recharge/tMallGame/shopOrder/callbackByManual" tags:"天猫游戏订单" method:"post" summary:"手动回调天猫消息到gateway，用来处理正确订单"`
	OrderNo string `json:"orderNo" v:"required#订单ID不能为空" description:"订单ID"`
	ID      int64  `json:"id" description:"充值ID"`
}

type CallBackOrderManualRes struct{}
