
local ItemData = require("bag.Proto").ItemData

-- 查询转盘
CG_ZHUANPAN_QUERY = {
	{"type",              1,         "byte"},         -- 1帮助 2概率
}

RewardData = {
	{"id",                1,          "int"},
	{"item",              1,          ItemData},
	{"chance",            1,          "int"},
	{"getCnt",            1,          "byte"}, -- 已中奖次数
	{"maxCnt",            1,          "byte"}, -- 商品中奖上限
}


LuckData = {
	{"id",                1,          "int"},
	{"item",              1,          ItemData},
	{"status",            1,          "byte"},	-- 状态 0-未领取 1-可领 2-已领
}


RewardRecord = {
    {"id",                1,          "byte"},
    {"tips" ,             1,          "string"},
	{"timer",             1,          "int"},
    {"order",             1,          "int"}
}

DrawChance = {
    {"tips" ,             1,          "string"},
    {"chance" ,           1,          "double"},
}

GC_ZHUANPAN_QUERY = {
	{"type",              1,        "byte"},
	{"refreshTime",       1,        "int"},			   -- 强制刷新时间
	{"freeRefreshTime",   1,        "int"},            -- 免费刷新时间
	{"itemID",            1,        ItemData},         -- 抽奖所需道具
	{"itemCnt",           2,        "short"},          -- 1抽1次花费  2抽多次花费
	{"zuanshiNeed",       1,        ItemData},         -- 刷新花费道具
	{"luck",              1,        "short"},          -- 幸运值
	{"luckList",          10,       LuckData},          -- 幸运值
	{"record",            15,       RewardRecord},     -- 奖励记录
	{"list",              8,        RewardData},
	{"drawCnt",			  1,		"byte"},		   -- 多次许愿次数(普通15次，高级10次)
    {"needLv",		      1,		"short"},		   -- 需要等级
	{"needVipLv",		  1,		"byte"},		   -- 多次许愿开启需要VIP等级
    {"chanceList",		  50,		DrawChance},	   -- 概率预览
    {"red1",              1,        "byte"},
    {"red2",              1,        "byte"},
    {"isFirst",           1,        "byte"},            -- 单日第一次
}

-- 刷新
CG_ZHUANPAN_REFRESH = {
	{"type",               1,          "byte"},
}

-- 抽奖
CG_ZHUANPAN_GET_REWARD = {
	{"type",               1,          "byte"},
	{"cnt",                1,          "short"},
}

GC_ZHUANPAN_GET_REWARD = {
	{"type",              1,           "byte"},
	{"list",              15,          "short"},
    {"luckItem",          2,           ItemData},
    {"item",              15,          ItemData},
}

-- 获取进度奖励
CG_ZHUANPAN_GET_LUCK = {
    {"type", 1,  "byte"},
    {"id",   1,  "short"},
}


-- 购买许愿珠
CG_BUY_ZHUANPAN_CNT = {
	{"type",           1,            "byte"},     -- 1基础转盘  2高级转盘
	{"cnt",            1,            "int"},
}

GC_BUY_ZHUANPAN_CNT = {
}


-- 精灵祝福
CG_XUNXING_JINGLINGZHUFU = {}

GC_XUNXING_JINGLINGZHUFU = {
    {"cnt",1,"byte"},           -- 随机次数
}