GongdengController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Http\Controllers\Api\v1;
  3. use App\Http\Controllers\Api\BaseController;
  4. use App\Models\GongdengOrderModel;
  5. use App\Services\GongdengFoxiangService;
  6. use App\Services\LampMealsService;
  7. /**
  8. * 供灯控制器类
  9. * @author wesmiler
  10. * @since 2020/11/10
  11. * Class GongdengController
  12. * @package App\Http\Controllers
  13. */
  14. class GongdengController extends BaseController
  15. {
  16. /**
  17. * 构造函数
  18. * @author wesmiler
  19. * @since 2020/11/11
  20. * GongdengController constructor.
  21. */
  22. public function __construct()
  23. {
  24. parent::__construct();
  25. $this->service = new GongdengOrderModel();
  26. $this->fxService = new GongdengFoxiangService();
  27. $this->mealService = new LampMealsService();
  28. }
  29. /**
  30. * 佛像列表
  31. * @return mixed
  32. */
  33. public function fxList(){
  34. return $this->fxService->getList();
  35. }
  36. /**
  37. * 套餐列表
  38. * @return mixed
  39. */
  40. public function mealList(){
  41. return $this->mealService->getList();
  42. }
  43. /**
  44. * 功德榜记录
  45. * @return mixed
  46. */
  47. public function gdList(){
  48. return $this->service->getList();
  49. }
  50. }