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

-- 查询每日任务
CG_DAILYTASK_QUERY = {}

DailyTaskData = {
	{"taskID",            1,       "int"},
	{"desc",              1,       "string"},
	{"finishCnt",         1,       "int"},
	{"maxCnt",            1,       "int"},
	{"itemData",          5,       ItemData},
	{"isGet",             1,       "byte"},  -- 1已领奖  0未领奖
	{"jump",              1,       "int"},    -- 跳转板子
}

DailyShareData = {
	{"taskID",            1,       "int"},
	{"desc",              1,       "string"},
	{"finishCnt",         1,       "int"},
	{"maxCnt",            1,       "int"},
	{"itemData",          10,       ItemData},
	{"isGet",             1,       "byte"},  -- 1已领奖  0未领奖
}

DailyTaskHuoYueBox = {
	{"boxID",			  1,		"short"},
	{"needHuoYue",		  1,		"short"},
	{"items",			  5, 		ItemData},
	{"isGet",             1,       	"byte"},  -- 1已领奖  0未领奖
}

GC_DAILYTASK_QUERY = {
	{"nextRefreshTime",         1,          "int"},
	{"list",                    20,         DailyTaskData},
	{"huoYueBox",			    5,		    DailyTaskHuoYueBox},
	{"nowHuoYue",			    1,		    "short"}, --当前活跃值
}

-- 领取每日任务奖励
CG_DAILYTASK_GET_REWARD = {
	{"taskID",            1,       "int"},
}

-- 完成任务
GC_DAILYSHARE_SET = {
    {"type",1,"byte"},      -- 1 日常 2 成就 3 历练 4 周任务 5 荣耀历程
    {"desc",1,"string"}
}

-- 领取每日任务活跃宝箱
CG_DAILYTASK_GET_HUOYUEBOX = {
	{"boxID",			  1,		"short"},
}
GC_DAILYTASK_GET_HUOYUEBOX = {
	{"boxID",			  1,		"short"},
    {"double",			  1,		"byte"},
}

-- 活动表 --
CG_ACTTIMETABLE_QUERY = {}
ActGroup = {
	{"id",			1,		"byte"}, --活动ID
	{"name",		1,		"string"}, --活动名称
}
WeekActGroup = {
	{"week",		1,		"byte"}, --星期x
	{"acts",		4,		ActGroup}, --活动
}
GC_ACTTIMETABLE_QUERY = {
	{"lists",	  	7,		WeekActGroup}
}

CG_ACTTIMETABLE_ACT = {
	{"id",			1,		"byte"}, --活动ID
}
GC_ACTTIMETABLE_ACT = {
	{"id",			1,		"byte"}, --活动ID
	{"timeDesc",	1,		"string"}, --活动时间描述
	{"actDesc",		1,		"string"}, --活动描述
	{"showReward",	4,		ItemData},
	{"panelID",		1,		"int"}, --跳转ID
}

--历练--
CG_LILIAN_QUERY = {
	{"taskType",		1,		"byte"}, --1竞技历练 2战斗历练 3终极历练 4达标奖励
}
LiLianTask = {
	{"id",				1,		"int"}, --任务id
	{"taskName",		1,		"string"}, --任务名
	{"taskDesc",		1,		"string"}, --任务描述\
	{"finishCnt",		1,		"double"}, --已完成次数
	{"needCnt",			1,		"double"}, --需要完成次数
	{"items",			5,		ItemData}, 
	{"state",			1,		"byte"}, --0不可领取 1可领取 2已领取
	{"panelID",			1,		"int"},     --跳转
}
LiLianTaskState = {
	{"taskType",		1,		"byte"}, --1竞技历练 2战斗历练 3终极历练 4达标奖励
	{"finishCnt",		1,		"int"}, --已完成次数
	{"needCnt",			1,		"int"}, --需要完成次数
	{"isRed",			1,		"byte"}, --0,1
}
GC_LILIAN_QUERY = {
	{"taskType",		1,		"byte"}, --1竞技历练 2战斗历练 3终极历练 4达标奖励
	{"lists",			40,		LiLianTask},
	{"taskState",		4,		LiLianTaskState}, --其余任务完成情况
}

CG_LILIAN_GET = {
	{"taskType",		1,		"byte"}, --1竞技历练 2战斗历练 3终极历练 4达标奖励
	{"id",				1,		"int"}, --任务id
}

CG_LILIAN_SHRE = {
	{"taskType",		1,		"byte"}, --1竞技历练 2战斗历练 3终极历练 4达标奖励
	{"id",				1,		"int"}, --任务id
	{"shareType",		1,		"byte"}, --分享到xx 1--世界 4--公会
}



-- 查询每周任务

CG_WEEKTASK_QUERY ={}

GC_WEEKTASK_QUERY ={
	{"nextRefreshTime",         1,          "int"},
	{"list",                    20,         DailyTaskData},
	{"huoYueBox",			    5,		    DailyTaskHuoYueBox},
	{"nowHuoYue",			    1,		    "short"}, --当前活跃值
}

-- 领取每周任务奖励
CG_WEEKTASK_GET_REWARD = {
	{"taskID",            1,       "int"},
}


GC_WEEKSHARE_SET = {
	{"type",1,"byte"},      -- 1 日常 2 成就 3 历练
    {"desc",1,"string"}
}
-- 领取每周任务活跃宝箱
CG_WEEKTASK_GET_HUOYUEBOX = {
	{"boxID",			  1,		"short"},
}
GC_WEEKTASK_GET_HUOYUEBOX = {
	{"boxID",			  1,		"short"},
    {"double",			  1,		"byte"},
}


-- 荣耀历程

CG_HONORJOURNEY_QUERY = {

}


GC_HONORJOURNEY_QUERY = {
	{"list",                    35,         DailyTaskData},
	{"huoYueBox",			    5,		    DailyTaskHuoYueBox},
	{"nowHuoYue",			    1,		    "short"},
	{"nEnd",					1,			"byte"},		-- 1 结束 0 未结束
	{"nFirst",					1,			"byte"},		-- 1 首次下发 0 非首次
}

-- 领取荣耀任务奖励
CG_HONORJOURNEY_GET_REWARD = {
	{"taskID",            1,       "int"},
}

CG_HONORJOURNEY_GET_HUOYUEBOX = {
	{"boxID",			  1,		"short"},
}

GC_HONORJOURNEY_GET_HUOYUEBOX = {
	{"boxID",			  1,		"short"},
    {"double",			  1,		"byte"},
}

--------------------------------------主线任务流-----------------------------------------
--查询
CG_MAINTASK_QUERY = {
}

GC_MAINTASK_QUERY = {
    {"nowTaskId",          1,        "int"},	--任务ID
	{"nowProgess",         1,        "int"},	--当前进度
	{"condProgess",        1,        "int"},	--条件进度
	{"taskDesc",           1,        "string"},	--任务描述
	{"panelID",            1,        "int"},	--panelID
	{"taskAward",          1,       ItemData},	--完成任务的奖励
	{"isNoTask",           1,        "byte"},	-- 是否已经完成全部任务, 1:是, 0:否
}

--领奖
CG_MAINTASK_GETREWARD = {
	{"nowTaskId",          1,        "int"},	--任务ID
}