This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/api/controller/sharing/Index.php

27 lines
502 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\api\controller\sharing;
use app\api\controller\Controller;
use app\api\model\sharing\Category as CategoryModel;
/**
* 拼团首页控制器
* Class Active
* @package app\api\controller\sharing
*/
class Index extends Controller
{
/**
* 拼团首页
* @return array
*/
public function index()
{
// 拼团分类列表
$categoryList = CategoryModel::getCacheAll();
return $this->renderSuccess(compact('categoryList'));
}
}