32 lines
995 B
Go
32 lines
995 B
Go
|
|
package user
|
||
|
|
|
||
|
|
import "blazing/logic/service/common"
|
||
|
|
|
||
|
|
// C2S_GET_GIFT_COMPLETE 礼品兑换完成协议
|
||
|
|
// 前端到后端
|
||
|
|
type C2S_GET_GIFT_COMPLETE struct {
|
||
|
|
Head common.TomeeHeader `cmd:"2801" struc:"skip"`
|
||
|
|
PassText string `struc:"[16]byte"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// S2C_GET_GIFT_COMPLETE 礼品兑换完成协议
|
||
|
|
// 后端到前端
|
||
|
|
type S2C_GET_GIFT_COMPLETE struct {
|
||
|
|
Flag uint32 `json:"flag"` // 0 代表sdk已被使用 1 表示兑换成功 如果返回0 那么后续数组不需要返回
|
||
|
|
Tile uint32 `json:"tile"`
|
||
|
|
GiftListLen uint32 `struc:"sizeof=GiftList"`
|
||
|
|
GiftList []GiftInfo `json:"giftList"` // 物品id数组
|
||
|
|
PetGiftLen uint32 `struc:"sizeof=PetGift"`
|
||
|
|
PetGift []PetGiftInfo `json:"petGiftList"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// GiftInfo 礼品信息
|
||
|
|
type GiftInfo struct {
|
||
|
|
GiftID uint32 `json:"giftID"` // 就是物品id
|
||
|
|
Count uint32 `json:"count"`
|
||
|
|
}
|
||
|
|
type PetGiftInfo struct {
|
||
|
|
PetID uint32 `json:"petID"`
|
||
|
|
CacthTime uint32 `json:"catchTime"`
|
||
|
|
}
|