package model

import (
	"kami/internal/consts"

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

type UpdateOrderStatusInput struct {
	AccountNumber string                        `json:"accountNumber" orm:"account_number" description:"账号"`
	QueryStatus   consts.RechargeTMallGameOrder `json:"queryStatus"`
	Status        consts.RechargeTMallGameOrder `json:"status"            orm:"status"               description:"交易状态"`
}

type UpdateOrderStatusByTBOrderNoInput struct {
	OrderNo      string                                 `json:"订单号"`
	Status       consts.RechargeTMallGameOrder          `json:"status"            orm:"status"               description:"交易状态"`
	SourceType   consts.RechargeTMallGameShopSourceType `json:"sourceType"        orm:"source_type"          description:"来源，选择淘宝或者阿奇索"`
	OriginalData string                                 `json:"originalData"      orm:"original_data"        description:""`
	Remark       string                                 `json:"remark"            orm:"remark"               description:"备注"`
}

type AddAgisoCallBackBaseInfoInput struct {
	TMallOrderId int                           `json:"orderId"           orm:"order_id"             description:"订单号"`
	OrderNo      string                        `json:"orderNo"             orm:"order_no"             description:"订单号"`
	BuyerNick    string                        `json:"buyerNick"         orm:"buyer_nick"           description:"买家昵称"`
	Payment      string                        `json:"payment"           orm:"payment"              description:"实付金额"`
	OriginalData string                        `json:"originalData"      orm:"original_data"      description:"原始数据"`
	Status       consts.RechargeTMallGameOrder `json:"status"            orm:"status"               description:"交易状态"`
}

type UpdateAgisoCallBackInfoInput struct {
	Id           int64                                  `json:"id"                orm:"id"                   description:"自增ID"`
	OrderNo      string                                 `json:"orderNo"             orm:"order_no"             description:"订单号"`
	TradeStatus  string                                 `json:"tradeStatus"       orm:"trade_status"         description:"交易状态"`
	TMallOrderId string                                 `json:"orderId"           orm:"order_id"             description:"订单号"`
	Created      *gtime.Time                            `json:"created"           orm:"created"              description:"交易创建时间"`
	BuyerNick    string                                 `json:"buyerNick"         orm:"buyer_nick"           description:"买家昵称"`
	BuyerRate    int                                    `json:"buyerRate"         orm:"buyer_rate"           description:"买家是否评价"`
	Status       consts.EnumShopStatus                  `json:"status"            orm:"status"               description:"交易状态"`
	SourceType   consts.RechargeTMallGameShopSourceType `json:"sourceType"        orm:"source_type"          description:"来源，选择淘宝或者阿奇索"`
	OriginalData string                                 `json:"originalData"      orm:"original_data"        description:""`
	Payment      string                                 `json:"payment"           orm:"payment"              description:"实付金额"`
	TotalFee     string                                 `json:"totalFee"          orm:"total_fee"            description:"商品金额"`
	PayTime      *gtime.Time                            `json:"payTime"           orm:"pay_time"             description:"付款时间"`
	EndTime      *gtime.Time                            `json:"endTime"           orm:"end_time"             description:"交易结束时间"`
	BuyerMemo    string                                 `json:"buyerMemo"         orm:"buyer_memo"           description:"买家备注"`
	AlipayNo     string                                 `json:"alipayNo"          orm:"alipay_no"            description:"支付宝交易号"`
	BuyerMessage string                                 `json:"buyerMessage"      orm:"buyer_message"        description:"买家留言"`
	Remark       string                                 `json:"remark"`
}

type AddAgisoCallBackHistoryInput struct {
	OrderNo      string                                 `json:"orderNo"             orm:"order_no"                description:"订单号"`
	OriginalData string                                 `json:"originalData"        orm:"original_data"           description:""`
	Status       consts.RechargeTMallGameOrder          `json:"status"              orm:"status"                  description:""`
	SourceType   consts.RechargeTMallGameShopSourceType `json:"sourceType"          orm:"source_type"             description:"来源，选择淘宝或者阿奇索"`
	Remark       string                                 `json:"remark"              orm:"remark"                  description:"备注"`
}

type AddOrderShopHistoryInput struct {
	ShopId  int                   `json:"shopId"    description:"关联订单"`
	RawData string                `json:"rawData"   description:"原始记录"`
	Remark  string                `json:"remark"    description:"备注"`
	Status  consts.EnumShopStatus `json:"status"     description:"操作状态"`
}
