local DailyTaskLogic = require("dailyTask.DailyTaskLogic")
local DailyShareTaskLogic = require("dailyTask.DailyShareTaskLogic")
local ActTimeTable = require("dailyTask.ActTimeTable")
local LiLianLogic = require("dailyTask.LiLianLogic")
local WeekTaskLogic = require("dailyTask.WeekTaskLogic")
local HonorJourney = require("dailyTask.HonorJourney")
local MainTask = require("dailyTask.MainTask")

-- 查询每日任务
function CG_DAILYTASK_QUERY(human)
	DailyTaskLogic.dailyTaskQuery(human)
end

-- 领取每日任务奖励
function CG_DAILYTASK_GET_REWARD(human, msg)
	DailyTaskLogic.dailyTaskGetReward(human, msg.taskID)
end

function CG_DAILYTASK_GET_HUOYUEBOX(human,msg)
	DailyTaskLogic.CG_DAILYTASK_GET_HUOYUEBOX(human,msg.boxID)
end

-- 活动表 --
function CG_ACTTIMETABLE_QUERY(human)
	ActTimeTable.CG_ACTTIMETABLE_QUERY(human)
end

function CG_ACTTIMETABLE_ACT(human, msg)
	ActTimeTable.CG_ACTTIMETABLE_ACT(human, msg.id)
end

--历练--
function CG_LILIAN_QUERY(human, msg)
	LiLianLogic.lilianQuery(human, msg.taskType)
end

function CG_LILIAN_GET(human, msg)
	LiLianLogic.lilianGet(human, msg.taskType,msg.id)
end

function CG_LILIAN_SHRE(human,msg)
	LiLianLogic.CG_LILIAN_SHRE(human,msg.taskType,msg.id,msg.id,msg.shareType)
end


--查询每周任务
function CG_WEEKTASK_QUERY(human)
	WeekTaskLogic.WeekTaskQuery(human)
end

-- 领取每周任务奖励
function CG_WEEKTASK_GET_REWARD(human, msg)
	print("111111111111111111111111当前进进入领取周奖励")
	WeekTaskLogic.weekTaskGetReward(human, msg.taskID)
end

function CG_WEEKTASK_GET_HUOYUEBOX(human,msg)
	WeekTaskLogic.CG_WEEKTASK_GET_HUOYUEBOX(human,msg.boxID)
end

--查询荣耀历程
function CG_HONORJOURNEY_QUERY(human)
	HonorJourney.HonorJourneyTaskQuery(human)
end

-- 领取荣耀任务奖励
function CG_HONORJOURNEY_GET_REWARD(human, msg)
	print("[CG_HONORJOURNEY_GET_REWARD] 收到领取奖励请求")
	HonorJourney.HonorJourneyTaskGetReward(human, msg.taskID)
end

function CG_HONORJOURNEY_GET_HUOYUEBOX(human,msg)
	HonorJourney.CG_HONORJOURNEYTASK_GET_HUOYUEBOX(human,msg.boxID)
end

function CG_MAINTASK_QUERY(human, msg)
	MainTask.TaskQuery(human)
end

function CG_MAINTASK_GETREWARD(human, msg)
	MainTask.GetReward(human, msg.nowTaskId)
end