<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Shop\Api\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Input\Response; use Module\Shop\Util\GoodsCategoryUtil; class CategoryController extends Controller { public function all() { return Response::generateSuccessData(array('tree' => GoodsCategoryUtil::tree())); } public function home() { return Response::generateSuccessData(array('tree' => GoodsCategoryUtil::treeHome())); } }