local ShopLogic = require("shop.ShopLogic")

-- 查询商店物品
function CG_SHOP_QUERY(human, msg)
	ShopLogic.query(human, msg.shopType)
end

-- 刷新商店物品
function CG_SHOP_REFRESH(human, msg)
	ShopLogic.refresh(human, msg.shopType)
end

-- 购买物品
function CG_SHOP_BUY(human, msg)
	ShopLogic.buy(human, msg.shopType, msg.itemID, msg.itemIndex, msg.buyCnt)
end

-- 查询基础商店中随机商店中记录的道具列表
function CG_SHOP_RECORD_QUERY(human, msg)
	ShopLogic.RecordItems_Query(human, msg.shopType)
end

-- 记录基础商店中随机商店中记录的道具列表
function CG_SHOP_RECORD_ITEMS(human, msg)
	ShopLogic.RecordItems(human, msg.itemIdxStr, msg.shopType)
end

-- 基础商店中随机商店中所有道具
function CG_SHOP_ALL_ITEM_QUERY(human, msg)
	ShopLogic.AllItem_Query(human, msg.shopType)
end

function CG_SHOP_CHOSE_ITEM(human, msg)
	ShopLogic.ChoseItem(human, msg.shopType, msg.bChose, msg.itemIndex)
end

function CG_BUY_LIFTTIME_CARD(human, msg)
	ShopLogic.GetBuyLiftTimeCard(human)
end