package msg // // 创建订单 // type NewOrder struct { // PlayerID int64 `json:"userId"` // Platform int `json:"platform"` //微信:1; 抖音:2; quick: 3; // GoodsID int64 `json:"goodsId"` // PayMethod int `json:"midasPay"` //0:苹果游戏外微信支付 1:安卓游戏内支付 2:安卓游戏外微信支付 3:苹果游戏内支付 // Level int `json:"level"` // OpenId string `json:"openId"` // ClientPlat string `json:"clientPlat"` // } // type ResponseNewOrder struct { // ErrCode int `json:"errCode"` // Msg string `json:"msg,omitempty"` // Data *NewOrderData `json:"data"` // } // type NewOrderData struct { // OrderID string `json:"orderID"` // Url string `json:"callUrl"` // } // // 取消订单 // type CancleOrder struct { // PlayerID int64 `json:"userId"` // OrderID string `json:"orderID"` // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3 // ClientPlat string `json:"clientPlat"` // } // type ResponseCancleOrder struct { // ErrCode int `json:"errCode"` // Data string `json:"data"` // } // // 支付购买 // type PayBuy struct { // PlayerID int64 `json:"userId"` // Platform int `json:"platform"` // 购买平台 微信:1; 抖音:2 quick 3 // GoodsID int64 `json:"goodsId"` // OrderID string `json:"orderID"` // Level int `json:"level"` // Num int64 `json:"num"` //发送本消息次数 // ClientPlat string `json:"clientPlat"` // } // type ResponsePayBuy struct { // ErrCode int `json:"errCode"` // Msg string `json:"msg,omitempty"` // Data *PayBuyData `json:"data"` // } // type PayBuyData struct { // GoodsId int64 `json:"goodsId"` // Diamond int `json:"diamond"` // Materials []*model.DropMaterial `json:"materials"` // Equipments []*model.DropEquipment `json:"equipments"` // Buffs *VipBuffData `json:"buffs"` // }