feat: 新增CDK兑换冠名接口

This commit is contained in:
xinian
2026-04-08 18:12:02 +08:00
parent 1ca0ff344e
commit 28b6386963
4 changed files with 120 additions and 57 deletions

View File

@@ -5,32 +5,21 @@ 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"`
Type uint32
ServerID uint32
ServerName string `struc:"[16]byte"`
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"`
Type uint32 `json:"type"`
Tile uint32 `json:"tile"`
ServerID uint32 `json:"server_id"`
ServerName string `struc:"[16]byte" json:"server_name"`
GiftListLen uint32 `struc:"sizeof=GiftList"`
GiftList []GiftInfo `json:"giftList"`
PetGiftLen uint32 `struc:"sizeof=PetGift"`
PetGift []PetGiftInfo `json:"petGiftList"`
}
type S2C_GET_DONATION_SERVER_IDS struct {
ServerIDsLen uint32 `struc:"sizeof=ServerIDs" json:"server_ids_len"`
ServerIDs []uint32 `json:"server_ids"`
}
// GiftInfo 礼品信息
type GiftInfo struct {
GiftID int64 `struc:"uint32"`