Index.php 611 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\api\controller\sharing;
  10. use app\api\controller\Controller;
  11. use app\api\model\sharing\Category as CategoryModel;
  12. /**
  13. * 拼团首页控制器
  14. * Class Active
  15. * @package app\api\controller\sharing
  16. */
  17. class Index extends Controller
  18. {
  19. /**
  20. * 拼团首页
  21. * @return array
  22. */
  23. public function index()
  24. {
  25. // 拼团分类列表
  26. $categoryList = CategoryModel::getCacheAll();
  27. return $this->renderSuccess(compact('categoryList'));
  28. }
  29. }