GongdengFoxiangController.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Laravel框架 [ Laravel ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 Laravel研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: wesmiler <12345678@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Http\Controllers;
  12. use App\Models\LampMealsModel;
  13. use App\Services\GongdengFoxiangService;
  14. /**
  15. * 供灯佛像管理-控制器
  16. * @author wesmiler
  17. * @since 2020/11/11
  18. * Class GongdengFoxiangController
  19. * @package App\Http\Controllers
  20. */
  21. class GongdengFoxiangController extends Backend
  22. {
  23. /**
  24. * 构造函数
  25. * @author wesmiler
  26. * @since 2020/11/11
  27. * GongdengFoxiangController constructor.
  28. */
  29. public function __construct()
  30. {
  31. parent::__construct();
  32. $this->service = new GongdengFoxiangService();
  33. }
  34. /**
  35. * 佛像选项列表
  36. * @return array
  37. */
  38. public function options(){
  39. $params = request()->all();
  40. return $this->service->getDataList($params);
  41. }
  42. }