|
|
@@ -0,0 +1,57 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace App\Http\Controllers\Api\v1;
|
|
|
+
|
|
|
+use App\Http\Controllers\Api\BaseController;
|
|
|
+use App\Models\GongdengOrderModel;
|
|
|
+use App\Services\GongdengFoxiangService;
|
|
|
+use App\Services\LampMealsService;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 供灯控制器类
|
|
|
+ * @author wesmiler
|
|
|
+ * @since 2020/11/10
|
|
|
+ * Class GongdengController
|
|
|
+ * @package App\Http\Controllers
|
|
|
+ */
|
|
|
+class GongdengController extends BaseController
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * 构造函数
|
|
|
+ * @author wesmiler
|
|
|
+ * @since 2020/11/11
|
|
|
+ * GongdengController constructor.
|
|
|
+ */
|
|
|
+ public function __construct()
|
|
|
+ {
|
|
|
+ parent::__construct();
|
|
|
+
|
|
|
+ $this->service = new GongdengOrderModel();
|
|
|
+ $this->fxService = new GongdengFoxiangService();
|
|
|
+ $this->mealService = new LampMealsService();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 佛像列表
|
|
|
+ * @return mixed
|
|
|
+ */
|
|
|
+ public function fxList(){
|
|
|
+ return $this->fxService->getList();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 套餐列表
|
|
|
+ * @return mixed
|
|
|
+ */
|
|
|
+ public function mealList(){
|
|
|
+ return $this->mealService->getList();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 功德榜记录
|
|
|
+ * @return mixed
|
|
|
+ */
|
|
|
+ public function gdList(){
|
|
|
+ return $this->service->getList();
|
|
|
+ }
|
|
|
+}
|