142 lines
3.5 KiB
Go
142 lines
3.5 KiB
Go
![]() |
package old
|
|||
|
|
|||
|
type StorePool struct {
|
|||
|
Type uint32 `json:"Type"` //商店类型
|
|||
|
Id uint32 `json:"Id"` //池ID
|
|||
|
NextTime int64 `json:"NextTime"` //下次刷新时间
|
|||
|
Discount uint32 `json:"Discount"` //当前折扣
|
|||
|
ItemList []uint32 `json:"ItemList"` //商品项目ID列表
|
|||
|
}
|
|||
|
|
|||
|
type MsgStorePoolListAck struct {
|
|||
|
List []*StorePool `json:"List,omitempty"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgStorePoolChangeAck struct {
|
|||
|
*StorePool
|
|||
|
}
|
|||
|
|
|||
|
type MsgStorePoolRefreshReq struct {
|
|||
|
Type uint32 `json:"Type"` //商店类型
|
|||
|
}
|
|||
|
|
|||
|
type MsgStoreBuyReq struct {
|
|||
|
Id uint32 `json:"Id"` //商品ID
|
|||
|
Num uint32 `json:"Num"` //数量
|
|||
|
}
|
|||
|
|
|||
|
type MsgStoreBuyAck struct {
|
|||
|
*MsgRewardListAck
|
|||
|
}
|
|||
|
|
|||
|
type MsgGiftPackBuyReq struct {
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgGiftPackBuyAck struct {
|
|||
|
*MsgRewardListAck
|
|||
|
}
|
|||
|
|
|||
|
type OrderExtend struct {
|
|||
|
Sid uint32 `json:"sid"`
|
|||
|
Uid uint64 `json:"uid"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgChargeCreateOrderReq struct {
|
|||
|
PaymentType uint32 `json:"PaymentType"` //充值支付类型
|
|||
|
ChargeId uint32 `json:"ChargeId"` //充值ID
|
|||
|
}
|
|||
|
|
|||
|
type MsgChargeCreateOrderAck struct {
|
|||
|
ChargeId uint32 `json:"ChargeId"` //充值ID
|
|||
|
OrderId string `json:"OrderId"` //订单号
|
|||
|
PaymentType uint32 `json:"PaymentType"` //充值支付类型
|
|||
|
Quantity uint32 `json:"Quantity"` //数量
|
|||
|
Price uint32 `json:"Price"` //订单价格(单位分)
|
|||
|
Sign string `json:"Sign"` //签名
|
|||
|
Extend string `json:"Extend"` //额外信息
|
|||
|
CallBackUrl string `json:"CallBackUrl"` //订单确认回调地址
|
|||
|
}
|
|||
|
|
|||
|
type MsgChargeWechatPayReq struct {
|
|||
|
OrderId string `json:"OrderId"` //订单号
|
|||
|
Charged bool `bson:"Charged"` //是否充值过
|
|||
|
}
|
|||
|
|
|||
|
type MsgChargeWechatPayAck struct {
|
|||
|
OrderId string `json:"OrderId"` //订单号
|
|||
|
Result uint32 `bson:"Charged"` //1.充值成功, 3.余额不足
|
|||
|
}
|
|||
|
|
|||
|
type MsgChargeResultAck struct {
|
|||
|
*MsgRewardListAck
|
|||
|
ChargeId uint32 `json:"ChargeId"` //充值ID
|
|||
|
Result uint32 `json:"Result"` //充值结果(1.成功,其他:失败,原因参考Message)
|
|||
|
Message string `json:"Message"` //结果信息
|
|||
|
}
|
|||
|
|
|||
|
type MonthlyCard struct {
|
|||
|
Id uint32 `json:"Id"` //月卡ID
|
|||
|
BeginTime int64 `json:"BeginTime"` //开始时间
|
|||
|
TotalDays uint32 `json:"TotalDays"` //月卡总天数
|
|||
|
RewardDays uint32 `json:"RewardDays"` //已领取奖励天数
|
|||
|
}
|
|||
|
|
|||
|
type MsgMonthlyCardListAck struct {
|
|||
|
List []*MonthlyCard `json:"List,omitempty"` //月卡列表
|
|||
|
}
|
|||
|
|
|||
|
type MsgMonthlyCardChangeAck struct {
|
|||
|
*MonthlyCard
|
|||
|
}
|
|||
|
|
|||
|
type MsgChargeGiftRewardAck struct {
|
|||
|
*MsgRewardListAck
|
|||
|
}
|
|||
|
|
|||
|
type MsgBattlePassInfoAck struct {
|
|||
|
Season uint32 `json:"Season"`
|
|||
|
Level uint32 `json:"Level"`
|
|||
|
SceneId uint32 `json:"SceneId"`
|
|||
|
Advanced bool `json:"Advanced"`
|
|||
|
}
|
|||
|
|
|||
|
type BattlePassRewardStatus struct {
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
Ordinary uint32 `json:"Ordinary"`
|
|||
|
Advanced uint32 `json:"Advanced"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgBattlePassRewardListAck struct {
|
|||
|
StatusList []*BattlePassRewardStatus
|
|||
|
}
|
|||
|
|
|||
|
type MsgBattlePassRewardGetReq struct {
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
Advanced bool `json:"Advanced"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgBattlePassRewardGetAck struct {
|
|||
|
*MsgRewardListAck
|
|||
|
}
|
|||
|
|
|||
|
type LimitGiftPack struct {
|
|||
|
Id uint32 `json:"Id"` //礼包ID
|
|||
|
OpenTime int64 `json:"OpenTime"` //开放时间
|
|||
|
CloseTime int64 `json:"CloseTime"` //关闭时间
|
|||
|
GetTime int64 `json:"GetTime"` //获得时间
|
|||
|
EndTime int64 `json:"EndTime"` //结束时间(倒计时)
|
|||
|
}
|
|||
|
|
|||
|
type MsgLimitGiftPackListAck struct {
|
|||
|
List []*LimitGiftPack `json:"List,omitempty"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgCdkeyExchangeReq struct {
|
|||
|
Key string `json:"Key"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgCdkeyExchangeAck struct {
|
|||
|
*MsgRewardListAck
|
|||
|
}
|