local ItemData = require("bag.Proto").ItemData
local BuyItem = require("topup.Proto").BuyItem
local RoleBase = require("role.Proto").RoleBase
local HeroSimple = require("hero.Proto").HeroSimple
local PremiumGift =  require("absAct.Proto").PremiumGift
local AbsRechargeBackNet = require("absAct.Proto").AbsRechargeBackNet

-- 充值-特权商店
TequanShopNet = {
    {"id",          1,      "byte"},
    {"buyItem",     2,      BuyItem},       -- 直购信息，如果长度大于0表示花费rmb，否则花费钻石
    {"needZuanshi", 1,      "int"},         -- 花费钻石价格
    {"cnt",         1,      "int"},         -- 已购买次数
    {"maxCnt",      1,      "int"},         -- 可购买次数  
    {"leftTime",    1,      "int"},         -- 重置倒计时 秒  
    {"name",        1,      "string"},      -- 礼包名称
    {"item",        5,      ItemData},      -- 礼包内容
    {"desc",        1,      "string"},      -- 礼包描述
    {"limitDesc",   1,      "string"},      -- 限购文本 如永久限购，每周限购等
}
CG_TEQUANSHOP_QUERY = {}
GC_TEQUANSHOP_QUERY = {
    {"list",        5,      TequanShopNet},
}
-- 购买钻石礼包(rmb礼包走直购流程)
CG_TEQUANSHOP_BUY = {
    {"id",          1,      "byte"},   
}

FundReward = {
    { "id",       1, "short" },
    { "lv",       1, "short" },
    { "lvReward", 1, ItemData },
    { "state",    1, "byte" },
}

FundECYReward = {
    { "id",       1, "short" },
    { "lv",       1, "short" },
    { "lvReward", 6, ItemData },
    { "state",    1, "byte" },
}
TequanECYJinjinNet = {
    {"buyItem",     1, BuyItem},
    {"fundFlag",    1, "byte" },       -- 钻石基金购买标识 0-未购买 1-已购买
    {"lvRewardMsg", 20, FundECYReward},  -- 钻石基金奖励
}

-- 钻石基金
CG_TEQUAN_ZSJIJIN_QUERY = {
    {"type",       1,     "byte"},
}
GC_TEQUAN_ZSJIJIN_QUERY = {
    {"data",       1,     TequanECYJinjinNet},
}
-- 钻石基金 领取奖励
CG_TEQUAN_ZSJIJIN_GET = {
    {"id",         1,     "int"},
    {"type",       1,     "byte"},
}


-- cdkey
CG_CDK = {
	{"code",	1,		"string"},
}
GC_CDK = {}

-- 超值首充查询 1--首充赠礼 2--100元赠礼
CG_FIRST_CHARGE_GIFT_QUERY = {
    {"type",        1,      "byte"}, --查询类型  1--首充赠礼 2--100元赠礼
}
FirstChargeNet = {
    {"items",       3,      ItemData},
    {"status",      1,      "byte"},            -- 0-不可领 1-可领 2-已领
    {"id",          1,      "byte"},            --
}
GC_FIRST_CHARGE_GIFT_QUERY = {
    {"type",        1,      "byte"}, --查询类型  1--首充赠礼 2--100元赠礼
    {"list",        7,      FirstChargeNet},    -- 充值奖励列表
    {"value",       1,      "int"},             -- 已充值金额
	{"red",         2,      "byte"},    -- 红点
}

CG_FIRST_CHARGE_GIFT_GET = {
    {"id",          1,      "byte"},
}

SuperFundRewardNet = {
    {"day",     1,      "byte"},                   -- 所需累计天数 1-30
    {"reward",  1,      ItemData},                 -- 奖励
    {"isGet",   1,      "byte"},
}
SuperFundNet = {
    {"type",    1,      "byte"},                    -- 1超级小基金 2 超级大基金，
    {"canBuy",  1,      "byte"},                    -- 状态 0-不可购买 1-可购买 2-已购买
    {"list",    10,     SuperFundRewardNet},        -- 部分奖励预览信息
    {"vipexp",  1,      "int"},                     -- vip经验
    {"zuanshi", 1,      "int"},                     -- 购买立即发放的钻石
    {"buyItem", 1,      BuyItem},    
}
CG_SUPER_FUND_QUERY = {
    {"type",    1,      "byte"},                    -- 查询类型，1超级小基金 2 超级大基金，
}
GC_SUPER_FUND_QUERY = {
    {"data",    1,      SuperFundNet},
}

CG_SUPER_FUND_REWARD_QUERY = {
    {"type",    1,      "byte"},                  -- 查询类型，1超级小基金 2 超级大基金，
}
GC_SUPER_FUND_REWARD_QUERY = {
    {"type",    1,      "byte"},                  -- 查询类型，1超级小基金 2 超级大基金，
    {"reward",  30,     SuperFundRewardNet},      -- 所有奖励预览
}

-- 七日豪礼
SevenDayGift = {
    {"id",              1,          "short"},-- 礼包ID
    {"giftVipExp",      1,          "int" },-- 礼包VIP经验
    {"item",            5,          ItemData },-- 礼包包含物品
    {"buyMsg",          1,          BuyItem},--礼包具体信息
    {"status",          1,          "byte"},-- 购买状态
}

--七日豪礼查询
CG_SEVENDAYGIFT_QUERY = {}
GC_SEVENDAYGIFT_QUERY = {
    {"today",       1,      "byte"}, --创角x天
    {"giftMsg",     7,      SevenDayGift},-- 礼包信息
}

--七日豪礼 领取每日宝箱奖励
CG_SEVENDAYGIFT_GET = {
    {"id",          1,          "byte"},-- 礼包id
}

--七日豪礼 面板刷新
GC_SEVENDAYGIFT_UPDATE = {
    {"giftMsg",     1,      SevenDayGift},-- 礼包信息
}

--累充豪礼
CG_LEICHONG_HAOLI_QUERY = {}
LeichongHaoliNet = {
    {"id",          1, "short"},      --id 
    {"need",         1, "short"},      --需要天数
    {"state",       1, "byte"},     --状态 0-无 1-可领取 2-已领取
    {"reward",      10, ItemData},  --奖励道具
}
GC_LEICHONG_HAOLI_QUERY = {
    {"list", 15, LeichongHaoliNet},   --兑换列表
    {"day",   1, "short"},      --累充天数
}

--累充豪礼 领取道具
CG_LEICHONG_HAOLI_GET = {
    {"id",          1, "short"},
}

GC_LEICHONG_HAOLI_GET = {
    {"id",          1, "short"},    
}

--限时抢购
CG_LIMITBUY_QUERY = {}
LimitBuyNet = {
    {"id",          1, "short"},      --id 
    {"nowCnt",       1, "short"},      --购买次数 
    {"maxCnt",       1, "short"},      --可购买次数
    {"desc",         1, "string"},      --描述
    {"reward",      10, ItemData},  --奖励道具
    {"buyItem",      1,  BuyItem},
}
GC_LIMITBUY_QUERY = {
    {"list", 15, LimitBuyNet},   --兑换列表
    {"leftTime",   1, "int"},      --剩余天数
}

-- 每日累充
CG_DAILY_LEICHONG_QUERY = {}
DailyLeichongNet = {
    {"id",          1, "int"},      --id
    {"cur",         1, "int"},      --当前进度
    {"max",         1, "int"},      --需要进度
    {"reward",      10, ItemData},  --奖励道具
    {"desc",        1, "string"},   --奖励道具
}
GC_DAILY_LEICHONG_QUERY = {
    {"sec", 1, "int"},            --剩余时间
    {"weekPay", 15, DailyLeichongNet},   --兑换列表
}

-- 通用特殊礼包
SpecificNet = {
    {"id",          1,      "byte"},        -- 子id
    {"order",       1,      "short"},       -- 排序
    {"item",        1,      ItemData},      -- 出售物品
    {"buyItem",     1,      BuyItem},       -- 直购信息
    {"vipexp",      1,      "int"},
}
SpecificDataNet = {
    {"id",           1,     "short"},
    {"needZuanshi",  1,     "int"},
    {"reward",       2,     ItemData},
    {"list",         4,     SpecificNet},    
}
CG_SPECIFIC_QUERY = {
    {"id",          1,      "short"},       -- 特殊礼包id
}
GC_SPECIFIC_QUERY = {
    {"data",        1,      SpecificDataNet},
}
CG_SPECIFIC_BUY_ITEM = {
    {"id",      1,  "short"},
    {"buyCnt",  1,  "short"},
}

-- 成神之路-冲级奖励
ChongJiData = {
    {"id",      1, "int"},
    {"maxLv",   1, "int"},
    {"state",   1,  "byte"},  -- 0 未领取  1 已领取
    {"desc",    1, "string"},
    {"item",    5, ItemData}
}

CG_PRESENT_CHONGJI_QUERY = {}

GC_PRESENT_CHONGJI_QUERY = {
    {"lv",      1, "int"},
    {"list",    20, ChongJiData},
    {"isEnd",    1, "byte"}, --0未发完，1-已发完
}

CG_PRESENT_CHONGJI_GET = {
    {"id",       1,   "int"},
}

-- 成神之路-国王降临
KingWorldNet = {
    {"id",      1,      "int"},
    {"maxCnt",  1,      "int"},     -- 最大进度
    {"nowCnt",  1,      "int"},     -- 当前进度
    {"state",   1,      "byte"},    -- 0-前往 1-已领取
    {"desc",    1,      "string"},  -- 描述
    {"item",    5,      ItemData},   -- 奖励
    {"panelID", 1,      "int"},     -- 前往面板
    {"sort", 1,         "byte"},     -- 排列
    {"tubiao",  1,      "int"},
}

CG_PRESENT_KING_WORLD_QUERY = {}
GC_PRESENT_KING_WORLD_QUERY = {
    {"leftTime",    1,  "int"},
    {"list",        3,  KingWorldNet},
    {"finalId",     1,  "int"},
    {"finalReward", 5,  ItemData},  -- 最终奖励
    {"hero",        1,  HeroSimple},  -- 最终奖励
    {"finalState",  1,  "byte"},    -- 0-未发送最终奖励 1-发送最终奖励
}

-- 获取奖励
CG_PRESENT_KING_WORLD_GET = {
    {"id",      1,      "int"},
}

-- 开服有礼查询
openServerGift = {
    {"day",        1,       "byte"},
    {"state",      1,       "byte"},    -- 0-不可领取 1-可领取  2-可购买 3 已售罄
    {"item",       10,       ItemData},
    {"buyItem",    2,       BuyItem},
    {"nowCnt",     1,       "byte"},    -- 当前购买次数
    {"limitCnt",   1,       "byte"},    -- 最大购买次数
}

CG_PRESENT_OPEN_SERVER_QUERY = {}
GC_PRESENT_OPEN_SERVER_QUERY = {
    {"list",        15,      openServerGift},
}

-- 开服有礼领取
CG_PRESENT_OPEN_SERVER_GIFT_GET = {
    {"day",      1,         "byte"},
}

--推送礼包
CG_PRESENT_TUISONGLIBAO_QUERY = {}
TuiSongLiBao = {
    {"id",         1,   "short"},
    {"leftTime",   1,   "int"}, --剩余时间
    {"desc",       1,   "string"}, --描述
    {"reward",     4,   ItemData},
    {"bg",         1,   "short"}, --背景图id
    {"fanli",      1,   "short"}, --返利图id
    {"buyItem",    1,   BuyItem}, --礼包信息
    {"giftVipExp", 1,   "int" },-- 礼包VIP经验
    {"type",       1,   "byte"}, --礼包任务类型
    {"isBuy",      1,   "byte"},
}
GC_PRESENT_TUISONGLIBAO_QUERY = {
    {"libao",      50,  TuiSongLiBao},
}

GC_PRESENT_TUISONGLIBAO_BUY = {
    {"id",         1,   "short"},
}

-- 微信小程序分享-分享有礼
CG_SHARE_PLATFORM_FIRST_QUERY = {}
GC_SHARE_PLATFORM_FIRST_QUERY = {
    {"state",       1,      "byte"},    -- 0-未分享 1-已分享 
    {"rewards",     5,      ItemData},  -- 奖励列表
}
-- 点击前往邀请
CG_SHARE_PLATFORM_FIRST_INVATE = {}
-- 登陆时弹出分享弹窗
GC_SHARE_PLATFORM_FIRST_TIP = {
    {"rewards",     5,      ItemData},  -- 奖励列表    
}

-- 微信小程序分享-邀请奖励
SharePlatformRewardNet = {
    {"id",          1,      "byte"},    -- id
    {"needValue",   1,      "short"},   -- 需要邀请x个人
    {"state",       1,      "byte"},    -- 0-未领取 1-可领取 2-已领取
    {"rewards",     5,      ItemData},   
}
CG_SHARE_PLATFORM_REWARDS_QUERY = {}
GC_SHARE_PLATFORM_REWARDS_QUERY = {
    {"nowValue",    1,      "short"},   -- 已分享人数
    {"list",        10,     SharePlatformRewardNet},
}
-- 领取 返回query
CG_SHARE_PLATFORM_REWARDS_GET = {
    {"id",          1,      "byte"},    -- id   
}

-- 微信小程序分享-邀请排名
SharePlatformBoardNet = {
    {"rank",        1,      "int"},     -- 排名 0-表示未上榜
    {"roleBase",    1,      RoleBase},  -- 角色信息
    {"value",       1,      "int"},     -- 邀请人数
}
CG_SHARE_PLATFORM_BOARD_QUERY = {}
GC_SHARE_PLATFORM_BOARD_QUERY = {
    {"leftTime",    1,      "int"},     -- 剩余时间
    {"list",        50,     SharePlatformBoardNet},     -- 排行榜数据
    {"myData",      1,      SharePlatformBoardNet},     -- 我的数据
} 
-- 排行榜奖励查看
SharePlatformBoardReward = {
    {"minRank",     1,      "int"},     -- 
    {"maxRank",     1,      "int"},     -- 
    {"rewards",     5,      ItemData},
}
CG_SHARE_PLATFORM_BOARD_REWARD = {}
GC_SHARE_PLATFORM_BOARD_REWARD = {
    {"list",        10,     SharePlatformBoardReward},
}

-- 微信小程序分享-朋友圈分享
CG_SHARE_PLATFORM_GROUP_QUERY = {}
GC_SHARE_PLATFORM_GROUP_QUERY = {
    {"rewards",     5,      ItemData},
    {"maxCnt",      1,      "byte"},        -- 每日次数上限
    {"nowCnt",      1,      "byte"},        -- 已分享次数
    {"leftTime",    1,      "int"},         -- 分享冷却倒计时
    {"state",       1,      "byte"},        -- 0-没有可领取 1-有可领取
}
-- 分享成功
CG_SHARE_PLATFORM_GROUP_SHAREOK = {}    
-- 领取
CG_SHARE_PLATFORM_GROUP_GET = {}

-- 推荐码
RelationWard ={
   {"id",      1,  "short"},
   {"rewards", 10,  ItemData},
   {"type",    1,  "byte"},
   {"counter", 1,  "int"},
   {"cnt",     1,  "byte"},   -- 可以领取数
   {"cntMax",  1,  "byte"},   -- 最大领取数
   {"getCht",  1,  "byte"},   -- 已领取数
   {"txt",     1,  "string"},
}

RelationRole = {
   {"role", 1,   RoleBase},  -- 角色信息
   {"vipLv", 1,  "byte"},  -- 角色信息
}

-- 页面数据
CG_RELATION_GIFT_QUERY = {}
GC_RELATION_GIFT_QUERY = {
   {"relationId", 1, "string"},
   {"list",     20,   RelationWard},
   {"roleList", 20,   RelationRole},  -- 角色信息
   
}

-- 奖励领取
CG_RELATION_GIFT_GET = {
   {"id",      1,  "short"},
}

-- 推广码使用
CG_RELATION_GIFT_BIND = {
   {"relationId", 1,  "string"}
}


-- 周末福利
WeekendFuliNet = {
    {"id",          1,      "byte"},    -- 礼包id
    {"name",        1,      "string"},  -- 礼包名称
    {"items",       5,      ItemData},  -- 道具列表
    {"state",       1,      "byte"},    -- 0-不可领 1-可领 2-已领 3-过期
}
CG_WEEKEND_FULI_QUERY = {}
GC_WEEKEND_FULI_QUERY = {
    {"startTime",   1,      "int"},     -- 本次活动开启时间戳
    {"endTime",     1,      "int"},     -- 本次活动结束时间戳   
    {"list",        3,      WeekendFuliNet},
}
-- 领取周末福利，领取成功返回GC_WEEKEND_FULI_QUERY
CG_WEEKEND_FULI_GET = {
     {"id",          1,      "byte"},    -- 礼包id   
}


--福利礼包
WelfareGiftNet = {
    {"id",          1,      "byte"},    -- 礼包id
    {"name",        1,      "string"},  -- 礼包名称
    {"items",       5,      ItemData},  -- 道具列表
    {"cnt",         1,      "byte"},    -- 购买次数
    {"cntMax",      1,      "byte"},    -- 购买最大次数
    {"price",       1,      "int"},     -- 购买次数
    {"oldPrice",    1,      "int"},     -- 原价
    {"desc",        1,      "string"},  -- 原价
}

CG_WELFARE_GIFT_QUERY = {}
GC_WELFARE_GIFT_QUERY = {
    {"endTime",     1,      "int"},     -- 本次活动结束时间戳   
    {"list",        5,      WelfareGiftNet},
}

CG_WELFARE_GIFT_BUY = {
    {"id",          1,      "byte"},    -- 礼包id
}

CG_LEIJICHONGZHI_QUERY = {
}

LeijiChongzhiNet = {
    {"id",          1,      "short"},  
    {"maxCnt",       1, "int"},      --累计充值
    {"reward",      10, ItemData},  --奖励道具
    {"state",          1,      "byte"}, -- 0-不可领 1-可领 2-已领
}
GC_LEIJICHONGZHI_QUERY = {
    {"list",        10,      LeijiChongzhiNet},
    {"leftTime",     1,      "int"},     -- 剩余时间
    {"cnt",       1, "int"},      --累计充值
}

CG_LEIJICHONGZHI_GET = {
    {"id",          1,      "short"}, 
}

GC_LEIJICHONGZHI_GET = {
    {"id",          1,      "short"}, 
}

-- 运营活动，英雄崛起
-- 活动开启推送
GC_ACT_HERO_RISE_OPEN = {
    {"isOpen",1,"byte"},                -- 1活动开启  0活动未开启
}

-- 活动查询
HeroRiseReward = {
    {"lv",1,"int"},
    {"lock",1,"byte"},
    {"item",5,ItemData},
}

HeroRiseTask = {
    {"id",1,"byte"},                -- 任务id
    {"name",1,"string"},            -- 任务名 
    {"desc",1,"string"},            -- 任务描述
    {"exp",1,"int"},                -- 任务奖励经验
    {"needCnt",1,"int"},            -- 需要完成次数
    {"nowCnt",1,"int"},             -- 当前完成次数
    {"state",1,"byte"},             -- 状态  0 未完成 1 已完成未领取  2 已领取
}
CG_ACT_HERO_RISE_QUERY = {
}

GC_ACT_HERO_RISE_QUERY_REWARD = {
    {"riseType",1,"byte"},              -- 崛起类型 1 英雄  2王侯
    {"riseLv",1,"int"},                 -- 崛起等级
    {"needExp",1,"int"},                -- 崛起升级所需经验
    {"exp",1,"int"},                    -- 当前经验
    {"unLockReward",5,ItemData},         -- 王侯解锁固定奖励
    {"heroReward",40,HeroRiseReward},   -- 英雄崛起奖励
    {"rajahReward",40,HeroRiseReward},  -- 王侯额外奖励
    {"dailyTask",20,HeroRiseTask},      -- 每日任务
    {"weekTask",20,HeroRiseTask},       -- 每周任务
    {"ultimateTask",20,HeroRiseTask},   -- 终极任务
}

-- 领取任务奖励
CG_ACT_HERO_RISE_TASK_GET = {
    {"id",1,"byte"},                    -- 任务id
}

-- 升级返回
GC_ACT_HERO_RISE_LV_UP = {
    {"item",20,ItemData},               -- 奖励
    {"lv",1,"int"},                     -- 当前崛起等级
    {"rajah",1,"byte"},                 -- 是否是王侯
}

-- 私人定制礼包
-- 活动开启推送
GC_ACT_CUSTOMIZE_OPEN = {
    {"isOpen",1,"byte"},                -- 1活动开启  0活动未开启
}

CustomizeStruct = {
    {"id",1,"byte"},                            -- 礼包id
    {"name",1,"string"},                -- 定制礼包名称
    {"limitCnt",1,"byte"},              -- 定制礼包限购次数
    {"nowCnt",1,"byte"},                -- 定制礼包已购次数
    {"buyItem",1,BuyItem},              -- 定制礼包购买信息
    {"zuanshi",1,ItemData},             -- 定制礼包固定钻石
    {"item",3,ItemData},                -- 定制礼包自选道具
    {"first",5,ItemData},               -- 第1个格子道具库
    {"second",5,ItemData},              -- 第2个格子道具库
    {"third",5,ItemData},               -- 第3个格子道具库
}

-- 定制礼包查询
CG_ACT_CUSTOMIZE_QUERY = {
}

GC_ACT_CUSTOMIZE_QUERY = {
    {"giftList",10,CustomizeStruct},                -- 定制礼包
}

CG_ACT_CUSTOMIZE_SELECT = {
    {"id",1,"byte"},                            -- 礼包id
    {"first",1,"byte"},                         -- 第1个道具库选择道具索引
    {"second",1,"byte"},                        -- 第2个道具库选择道具索引
    {"third",1,"byte"}                          -- 第3个道具库选择道具索引
}

GC_ACT_CUSTOMIZE_SELECT = {
    {"ret",1,"byte"},                           -- 0 选择失败 1 选择成功
}


LimitGiftBagNet = {
    {"id",         1,      "short"},         -- ID
    {"name",       1,      "string"},        -- 礼包名字
    {"buy",        1,      "int"},           -- 已购买次数
    {"maxBuy",     1,      "byte"},          -- 最大购买次数  0 为不限购买
    {"endTime",    1,      "int"},           -- 结束倒计时
    {"buyItem",    1,      BuyItem},         -- 直购相关
    {"reward",     3,      ItemData}
}
 --限时礼包
GC_PRESENT_LIMITGIFT_BAG_QUERY = {
    {"list",      20,        LimitGiftBagNet},
}

MiLingTaskNet = {
    {"id",         1,      "short"},
    {"name",       1,      "string"},
    {"have",       1,      "int"},
    {"need",       1,       "int"},
    {"state",      1,       "byte"},
    {"reward",     2,       ItemData},
}

MiLingLeiChongNet = {
    {"id",         1,      "short"},
    {"name",       1,      "string"},
    {"state",      1,     "byte"},
    {"reward",     2,      ItemData},
}

GC_PRESENT_MILING_QUERY = {
    {"dayGet",       1,          "int"},
    {"jindu",        1,           "int"},
    {"jinduMax",     1,          "int"},
    {"list",         7,         MiLingTaskNet},
    {"rechargeTask", 1,         MiLingTaskNet},
}

CG_PRESENT_MILING_REWARD_QUERY = {
    {"queryType",     1,   "byte"},
}

GC_PRESENT_MILING_REWARD_QUERY = {
    {"queryType",      1,    "byte"},
    {"list",         10,    MiLingTaskNet},
}

CG_PRESENT_MILING_REWARD_GET = {
    {"queryType",     1,   "byte"},
    {"id",            1,   "int"},
}

-- 登陆签到
CG_MONTH_CARD_QUERY = {
}

MonthCardData = {
    {"id",		    1,	"byte"},	
    {"name",	    1,	"string"},	
	{"startTime",	1,	"int"},                                     --开始时间
    {"endTime",		1,	"int"},                                 --结束时间
    {"day",		    1,	"short"},								    --剩余天数
    {"get",         1,   "int"},                                   -- 领取天数
    {"state",	    1,	"byte"},								    -- 0 未激活 1 未领取 2 已领取
    {"yuanbao",	    1,	ItemData},                                 --每天可领取
    {"instantly",	1,	ItemData},                                 --每天可领取
    {"buyItem",     1,  BuyItem},                                          -- buyItem
}

GC_MONTH_CARD_QUERY = {
    {"list", 2,	MonthCardData},								-- 1 贵族月卡 ，2 王者月卡
    {"jiacheng",      1,   "int"},    --  挂机 金币 等 加成
    {"drawZhekou",     1,   "int"},    -- 抽卡 折扣
    {"heroBagAdd",     1,    "int"},  -- 英雄背包格子
}

CG_MONTH_CARD_GET = {
	{"id",	1,	"byte"},								-- 1 贵族月卡 ，2 王者月卡
}

GC_MONTH_CARD_GET = {
}


-- 成长礼包
GiftPackNet = {
    {"id",          1,      "byte"},        -- 礼包ID
    {"items",       5,      ItemData},      -- 礼包包含物品
    {"name",        1,      "string"},      -- 礼包名称
    {"buyItem",     2,      BuyItem},       -- 直购信息，如果长度大于0表示花费rmb，否则表示免费(0元)
}
CG_GIFT_PACK_QUERY = {}
GC_GIFT_PACK_QUERY = {    
    {"list",        10,     GiftPackNet},
}


-- 萌新福利
MengxinTask = {
    {"id",1,"byte"},                -- 任务id
    {"name",1,"string"},            -- 任务名 
    {"desc",1,"string"},            -- 任务描述
    {"item",5,ItemData},            -- 任务奖励经验
    {"needCnt",1,"int"},            -- 需要完成次数
    {"nowCnt",1,"int"},             -- 当前完成次数
    {"state",1,"byte"},             -- 状态  0 未完成 1 已完成未领取  2 已领取
    {"panelID",1,"int"},            -- 跳转ID
}
MengxinReach = {
    {"id",1,"byte"},                -- id
    {"item",5,ItemData},            -- 奖励
    {"jifen",1,"int"},              -- 需要积分
    {"state",1,"byte"},             -- 状态  0 未完成 1 已完成未领取  2 已领取
}
-- 活动查询，默认传第一天
CG_OA_MENGXIN_QUERY = {
    {"day",1,"byte"},
}

GC_OA_MENGXIN_QUERY = {
    {"redList",7,"byte"},           -- 红点列表
    {"taskList",20,MengxinTask},    -- 任务列表
    {"reachReward",10,MengxinReach},-- 达标奖励
    {"nowDay",1,"byte"},            -- 当前第几天
    {"totalJifen",1,"short"},       -- 总活动积分
    {"leftTime",1,"int"},           -- 活动剩余时间
}

-- 任务奖励领取
CG_GET_MENGXIN_TASK = {
    {"day",1,"byte"},               -- 天数
    {"id",1,"byte"},                -- 任务id
}

-- 达标奖励领取
CG_GET_MENGXIN_REACH = {
    {"day",1,"byte"},               -- 天数
    {"id",1,"byte"},                -- 达标id
}


--- 打赏返利   ------------------
CG_RECHARGE_BACK_QUERY = {
}

GC_RECHARGE_BACK_QUERY = {
    {"list",     10,  AbsRechargeBackNet},
    {"recharge",  1,  "int"},
    {"maxCnt",    1,  "byte"},
    {"isEnd",    1,  "byte"},
}

CG_RECHARGE_BACK_GET = { 
    {"id",     1,  "byte"},
}

--- 打赏返利   ------------------

------- 开服活动   限时盲盒  -----
CG_OA_LIMIT_MANGHE_QUERY = {
    {"param",           1,   "int"},
}

GC_OA_LIMIT_MANGHE_QUERY = {
    {"list",        10, PremiumGift},    
    {"startTime",       1,  "int"},     -- 开启时间
    {"endTime",         1,  "int"},     -- 结束时间
    {"param",           1,   "int"},
    {"state",           1,   "byte"},   -- 盲盒是否已领取
}

CG_OA_LIMIT_MANGHE_GET = {
    {"param",           1,   "int"},
}

------- 开服活动   限时盲盒  -----


-------- 开服活动  精英召唤 心仪英雄活动  ----- 
CG_OA_LIMIT_PERPLEHERO_QUERY = {
    {"param",           1,   "int"},
}

GC_OA_LIMIT_PERPLEHERO_QUERY = {
    {"perpleHero",  1,"int"},                 -- 心仪英雄 
    {"heroList",3,HeroSimple},              -- 可供选择的英雄列表
    {"leftCnt",1,"int"},                   -- 必得剩余次数
    {"startTime",   1,  "int"},
    {"endTime",     1,  "int"},
}

-- 设置心仪英雄
CG_OA_LIMIT_PERPLE_HERO_SET = {
    {"perpleHero",  1,"int"},                 -- 英雄id
    {"param",       1,"int"},                         -- 活动id
}

---------- 开服活动  精英召唤 心仪英雄活动  ----- 

-- 基金活动
-- 
CG_OVERFLOW_FUND_QUERY = {
    {"type",            1,          "byte"},    -- 1 超值基金  2 奢华基金
}

GC_OVERFLOW_FUND_QUERY = {
    {"buyMsg",          1,          BuyItem},   -- 礼包购买
    {"item",            30,         ItemData},  -- 内容列表
    {"partItem",        8,          "byte"},  -- 内容列表
    {"nextGet",         1,          "byte"},    -- 下次领奖天数，比如20代表第20天未领取，20天以前的全部已领取
    {"worth",           2,          "int"},     -- 总价值
    {"state",           1,          "byte"},    -- 0 未购买  1 领取 2 已领取
    {"type",            1,          "byte"},    -- 1 超值基金  2 奢华基金
}

CG_OVERFLOW_FUND_GET = {
    {"type",            1,          "byte"},    -- 1 超值基金  2 奢华基金
}

-----------新增开服活动------------
--单笔充值活动
CG_OPEN_SERVER_SINGLE_CHARGE_QUERY = {}         -- 开服单笔充值活动查询
OpenServerSChargeList = {
    {"id",              1,           "int"},    -- 档位id
    {"items",           5,         ItemData},   -- 此档位领取奖励列表
    {"needPrice",     1,           "int"},      -- 此档位激活需要指定的价格
    {"maxCnt",          1,           "int"},    -- 最大激活领取次数
    {"cnt",             1,           "int"},    -- 当前已领取次数
    {"state",           1,           "byte"},   -- 此档位领取状态(0不可领取,1可领,2已领)
}
GC_OPEN_SERVER_SINGLE_CHARGE_QUERY = {          -- 开服单笔充值活动发送
    {"list", 7, OpenServerSChargeList},         -- 档位列表信息
    {"leftTime",    1,      "int"},             -- 剩余时间
}
CG_OPEN_SERVER_SINGLE_CHARGE_GET = {            -- 开服单笔充值活动档位领取
    {"actId",          1,            "int"},    -- 活动id
    {"id",              1,           "int"},    -- 档位id
}

-- 达标  包括招募达标和钻石消耗达标
CG_OPEN_SERVER_REACH_QUERY = {                  -- 开服达标活动查询
    {"type",            1,          "byte"},    -- 类型 1 钻石消耗   2 招募达标
}                 
OpenServerTConsumeList = {
    {"id",              1,          "int"},     -- 档位id
    {"items",           5,          ItemData},  -- 此档位领取奖励列表
    {"needConsume",     1,          "int"},     -- 需要消耗数
    {"state",           1,          "byte"},    -- 此档位领取状态 (0不可领取,1可领,2已领)    
}
GC_OPEN_SERVER_REACH_QUERY = {       
    {"type",            1,          "byte"},    -- 类型 1 钻石消耗   2 招募达标   
    {"value", 1, "int"},                        -- 累计消耗值
    {"list",  20, OpenServerTConsumeList},       -- 档位列表信息  
    {"leftTime",    1,      "int"},             -- 剩余时间      
} 
CG_OPEN_SERVER_REACH_GET = {                    -- 开服累计消耗钻石活动档位领取
    {"actId",           1,          "int"},     -- 活动id
    {"type",            1,          "byte"},    -- 类型 1 钻石消耗   2 招募达标
    {"id",              1,          "int"},     -- 档位id
}

-- 排名活动 包括单日充值排名、累计充值排名、单日招募排名、累计招募排名、累计爬塔
CG_OPEN_SERVER_RANK_QUERY = {                   -- 开服排名活动
    {"type",            1,          "byte"},    -- 类型 1 单日充值  2 累计充值 3 单日招募 4累计招募 5累计爬塔
}             
OpenServerRankList = {
    {"rank",             1,          "int"},    -- 名次(-1未上榜)
    {"rankNeedValue",      1,        "int"},    -- 上榜条件值
    {"items",        5,         ItemData},      -- 排行名次奖励列表    
    {"uid",             1,          "string"},  -- 用户id(未上榜为"")
    {"name",            1,          "string"},  -- 角色名(未上榜为"")
    {"head",            1,          "int"},     -- 头像(未上榜为-1)  
    {"rankValue",        1,          "int"},    -- 当前排名值     
    {"headFrame",        1,          "int"},    -- 头像框(未上榜为-1)     
}
OpenServerOnwerData = {
    {"rank",             1,          "int"},    -- 名次(-1未上榜)
    {"rankValue",        1,          "int"},    -- 当前排名值
    {"items",           5,         ItemData},   -- 档位奖励列表(未上榜没有奖励) 
}
GC_OPEN_SERVER_RANK_QUERY = {                   -- 开服排名活动发送
    {"type",            1,          "byte"},    -- 类型 1 单日充值  2 累计充值 3 单日招募 4累计招募 5累计爬塔
    {"list", 20, OpenServerRankList},           -- 排行名次列表
    {"ownerData", 1, OpenServerOnwerData},      -- 自己排名数据
    {"leftTime",    1,      "int"},             -- 剩余时间
}
CG_OPEN_SERVER_RANK_REWARD_QUERY = {            -- 请求开服排名活动发送详情
    {"type",            1,          "byte"},    -- 类型 1 单日充值  2 累计充值 3 单日招募 4累计招募 5累计爬塔
}
OpenServerRankRewardList = {
    {"minRank",             1,          "int"}, -- 最小排名
    {"maxRank",             1,          "int"}, -- 最大排名
    {"rankNeedValue",      1,        "int"},    -- 上榜条件值
    {"items",           5,         ItemData},   -- 档位区间奖励列表
} 
GC_OPEN_SERVER_RANK_REWARD_QUERY = {
    {"type",            1,          "byte"},    -- 类型 1 单日充值  2 累计充值 3 单日招募 4累计招募 5累计爬塔
    {"list", 20, OpenServerRankRewardList},     -- 奖励详情列表
}
-----------新增开服活动------------





------------------------------------------- 每日礼包
-- 充值-每日礼包
DailyLibaoNet = {
    {"id",          1,      "byte"},        -- 礼包ID
    {"items",       5,      ItemData},      -- 礼包包含物品
    {"doubleFlags", 5,      "byte"},        -- 是否需要显示双倍标签列表
    {"cnt",         1,      "int"},         -- 已购买次数
    {"maxCnt",      1,      "int"},         -- 可购买次数
    {"buyItem",     1,      BuyItem},       -- 直购相关信息 售价/礼包名/描述等
    {"name",        1,      "string"},      -- 礼包名称
}
DailyLibaoQuickNet = {
    {"status",      1,      "byte"},        -- 状态 0-不可以购买 1-可以购买
    {"oldPrice",    1,      "int"},         -- 原价
    {"buyItem",     1,      BuyItem},       -- 直购相关信息 售价/礼包名/描述等      
}
-- 查询
CG_PRE_DAILY_LIBAO_QUERY = {}
GC_PRE_DAILY_LIBAO_QUERY = {
    {"list",        10,     DailyLibaoNet},         -- 每日礼包列表
    {"quickData",   1,      DailyLibaoQuickNet},    -- 一键购买信息
    {"freeRed",     1,      "byte"},                -- 免费礼包是否显示红点 
}
-- 领取免费每日礼包
CG_PRE_DAILY_LIBAO_FREE_GET = {}
------------------------------------------- 每日礼包

-- 充值-每周/每月礼包
RichangLibaoNet = {
    {"id",          1,      "byte"},        -- 礼包ID
    {"items",       5,      ItemData},      -- 礼包包含物品
    {"name",        1,      "string"},      -- 礼包名称
    {"buyItem",     2,      BuyItem},       -- 直购信息，如果长度大于0表示花费rmb，否则表示免费(0元)
    {"cnt",         1,      "int"},         -- 已购买次数
    {"maxCnt",      1,      "int"},         -- 可购买次数  
}
CG_RICHANG_LIBAO_QUERY = {
    {"libaoType",   1,      "byte"},        -- 礼包类型 1-每周 2-每月
}
GC_RICHANG_LIBAO_QUERY = {    
    {"libaoType",   1,      "byte"},        -- 礼包类型 1-每周 2-每月
    {"leftTime",    1,      "int"},         -- 刷新倒计时
    {"list",        10,     RichangLibaoNet},
}
-- 购买0元礼包 购买后返回GC_RICHANG_LIBAO_QUERY
-- 非0元礼包 走直购流程
CG_RICHANG_LIBAO_BUY = {
    {"libaoType",   1,      "byte"},        -- 礼包类型 1-每周 2-每月
    {"id",          1,      "byte"}, 
}

--------------------------------------------- 战力冲刺
PowerPrize = {
    {"nID",              1,      "int"},         -- 奖励编号
    {"nState",          1,      "byte"},        -- 0 不可领取 1 - 可领取 2- 已领取
    {"nNeedPower",      1,      "int"},         -- 领取所需战斗力
    {"item",            5,      ItemData},      -- 奖励信息
}

-- 请求开服活动-战力冲刺信息
CG_PRESENT_OPEN_POWERUP_QUERY = {}

-- 请求开服活动-战力冲刺信息 回包
GC_PRESENT_OPEN_POWERUP_QUERY = {
    {"nNowPower",   1,  "int"},
    {"list",        25,  PowerPrize},
}

-- 请求领取战力冲刺奖励
CG_PRESENT_OPEN_POWERUP_GETPRIZE = {
    {"nID",             1,      "int"},         -- 领取奖励ID
}

GC_PRESENT_OPEN_POWERUP_GETPRIZE = {
    {"nID",             1,      "int"},         -- 领取奖励ID
    {"nState",          1,      "byte"},        -- 1 领取成功，0 领取失败
}

--------------------------------------------- 累积充值
AddUpChargePrize = {
    {"nID",              1,      "int"},         -- 奖励编号
    {"nState",          1,      "byte"},        -- 0 不可领取 1 - 可领取 2- 已领取
    {"nNeedMoney",      1,      "int"},         -- 领取所需充值数
    {"item",            5,      ItemData},      -- 奖励信息
}

-- 请求开服累计充值活动信息
CG_PRESEN_OPEN_ADDUP_CHARGE_QUERY = {}

-- 请求开服累计充值活动信息 回包
GC_PRESEN_OPEN_ADDUP_CHARGE_QUERY = 
{
    {"nNowMoney",   1,  "int"},
    {"leftTime",    1,  "int"},             -- 剩余时间      
    {"list",        20,  AddUpChargePrize},
}

-- 请求领取累计充值活动奖励
CG_PRESENT_OPEN_ADDUP_CHARGE_GETPRIZE = {
    {"nID",             1,      "int"},         -- 领取奖励ID
}
---------------------------在线奖励-------------------------
SINGLE_AWARD_INFO = {
    {"itemInfo",       1,  ItemData},
    {"state",          1,  "byte"},        -- 0 不可领取, 1-可领取,  2-已领取
}


--查询
CG_ONLINEAWARD_QUERY = {}

GC_ONLINEAWARD_QUERY = {
    {"awardVec",            12,  SINGLE_AWARD_INFO},   --当天所有的奖励数据
    {"leftTime",            1,  "int"},                --领取下一档奖励的倒计时
    {"needRecharge",        1,  "double"},             --当日领奖需要充值金额
    {"nowRecharge",         1,  "double"},              --当前已充值金额
    {"isReach",             1,  "byte"},               --是否充值达标，0-未达标，1-达标
    {"remainingDays",       1,  "byte"},               --剩余天数
}



--领取
CG_ONLINEAWARD_CLAIM = {
}

--------------------------------------------- 新首充
NewFirstChargePrize = 
{
    {"nDay",        1,          "int"},
    {"nState",      1,          "int"},     -- 0  不可领, 1可领, 2 已领
    {"item",        5,          ItemData},
}

-- 请求礼包信息
CG_NEW_FIRST_CHARGE_QUERY = 
{
    {"nType",       1,      "int"},             -- 请求类型(1:一元，2：8元，3：18元)
}

-- 请求礼包信息-回包
GC_NEW_FIRST_CHARGE_QUERY = 
{
    {"nType",       1,      "int"}, 
    {"nState",      1,      "byte"},            -- 是否购买(0 未购买，2 已购买)
    {"nMoney",      1,      "int"},
    {"buyItem",     1,      BuyItem},           -- 购买信息  
    {"list",        4,      NewFirstChargePrize},
    {"tRed",        4,      "int"},             -- 红点
}

-- 请求领取礼包
CG_NEW_FIRST_CHARGE_GET = 
{
    {"nType",       1,      "int"},             -- 请求类型(1:一元，2：8元，3：18元)
}


-- 价格查询
CG_NEW_FIRST_PRIZE_QUERY = {}

GC_NEW_FIRST_PRIZE_QUERY =
{   
    {"priceList",       3,      "double"},             -- 价格列表
}


---------------------------------------循环累计充值活动----------------------------------
RECHARGE_AWARD_INFO = {
    {"itemList",       4,       ItemData},      -- 奖励道具
    {"state",          1,       "byte"},        -- 0 不可领取, 1-可领取,  2-已领取
    {"idx",            1,        "byte"},        -- 实际索引
    {"moneyCond",      1,        "int"},        -- 需要充值金额
}


--查询
CG_CYCLERECHARGE_QUERY = {}

GC_CYCLERECHARGE_QUERY = {
    {"startTime",        1,     "int"},         --本轮活动开启时间戳
    {"endTime",          1,     "int"},          --本轮活动结束时间戳
    {"totalRecharge",    1,     "int"},          --本轮累计充值
    {"awardList",        5,     RECHARGE_AWARD_INFO},-- 奖励列表
    {"startTag",         1,      "byte"},        -- 分段标识,第一段时为1，其余为0
    {"endTag",           1,      "byte"},        -- 分段标识,最后一段时为1，其余为0
}

-- 领奖
CG_CYCLERECHARGE_GET_AWARD = {
}

---------------------------------------一元秒杀礼包----------------------------------
-- 请求一元秒杀礼包
CG_ONEKILLGIFT_QUERY = {
    {"bOperate",    1,      "byte"}     -- 1 金币不足，2 打开界面
}

GC_ONEKILLGIFT_QUERY = {
    {"nBuyNum",     1,      "int"},         -- 购买次数
    {"nLeftTime",    1,     "int"},         -- 结束时间
    {"bIsOpen",     1,      "byte"},        -- 是否打开界面
    {"buyItem",     1,      BuyItem},       -- 购买礼包信息
    {"tList",       6,      ItemData},      -- 物品信息
}

-- 关闭界面
GC_ONEKILLGIFT_CLOSE = {}

---------------------------------------合服活动----------------------------------
MergeServerLogin = 
{
    {"nID",         1,      "int"},
    {"nDay",        1,      "int"},
    {"nState",      1,      "byte"},    -- 0 不可领取 1 - 可领取 2- 已领取
    {"tPrize",      5,      ItemData}
}

MergeServerCharge = {
    {"nID",         1,      "int"},
    {"nMoney",      1,      "int"},
    {"nDay",        1,       "int"},
    {"nState",      1,      "byte"},    -- 0 不可领取 1 - 可领取 2- 已领取
    {"nAllMoney",   1,      "int"},     -- 已累充金额
    {"item",        5,      ItemData},  -- 奖励信息
}

MergeServerHuoYue = {
    {"nID",             1,      "int"},
    {"nNeedHuoYue",     1,      "int"},
    {"nFreeState",      1,      "byte"},    -- 免费 0 不可领取 1 - 可领取 2- 已领取
    {"nPayState",       1,      "byte"},    -- 付费 0 不可领取 1 - 可领取 2- 已领取
    {"bBuy",            1,      "byte"},    -- 0 未购买 1 购买
    {"buyItem",         1,      BuyItem},   -- 购买信息
    {"tFreeItem",       5,      ItemData},  -- 免费奖励信息
    {"tPayItem",        5,      ItemData},  -- 付费奖励信息
}

-- 请求登录相关信息
CG_MERGESERVER_LOGIN_QUERY = {}

GC_MERGESERVER_LOGIN_QUERY = {
    {"nBeginTime",  1,      "int"},
    {"nEndTime",    1,      "int"},
    {"tList",   15, MergeServerLogin}
}

-- 请求领取登录奖励
CG_MERGESERVER_GET_PRIZE = {}


-- 请求充值相关信息
CG_MERGESERVER_CHARGE_QUERY = {
    {"nMoney",            1,       "int"}       -- 金额
}

GC_MERGESERVER_CHARGE_QUERY = {
    {"tList",              15,       MergeServerCharge},    -- 信息
}

-- 请求领取充值奖励
CG_MERGESERVER_GET_CHARGE_PRIZE = {
    {"nMoney",            1,       "int"},          -- 金额
}

-- 请求活跃奖励信息
CG_MERGESERVER_QUERY_HUOYUE = {}

GC_MERGESERVER_QUERY_HUOYUE =
{
    {"nAllHuoYue",      1,      "int"},
    {"tList",           15,     MergeServerHuoYue},
}

-- 请求领取活跃奖励
CG_MERGESERVER_HUOYUE_GET_PRIZE = {}

GC_MERGESERVER_UPDATE_RED = {
    {"tRed",    4,      "byte"}     -- 0 不存在红点 1 存在
}

---------------------------------------开服礼包----------------------------------
OPENSERVER_GIFTPACKAGE = {
    {"nID",         1,      "byte"},
    {"nMaxCnt",     1,      "int"},         -- 最大购买数
    {"nNowCnt",     1,      "int"},         -- 当前可购买数
    {"tBuyInfo",    1,      BuyItem},       -- 购买项信息
    {"tItemList",   5,      ItemData},
}
--- 请求开服礼包信息
CG_OPENSERVER_GIFTPACKAGE_QUERY = {}

-- 回复开服礼包信息
GC_OPENSERVER_GIFTPACKAGE_QUERY =
{
    {"tList",       10,     OPENSERVER_GIFTPACKAGE},    -- 购买信息
}
