| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace App\Http\Controllers\Api\v1;
- use App\Http\Controllers\Api\BaseController;
- use App\Services\EnshrineService;
- use Illuminate\Http\Request;
- /**
- * 供奉控制器类
- * @author wesmiler
- * @since 2020/11/10
- * Class EnshrineController
- * @package App\Http\Controllers
- */
- class EnshrineController extends BaseController
- {
- /**
- * 构造函数
- * @author wesmiler
- * @since 2020/11/11
- * EnshrineController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new EnshrineService();
- }
- /**
- * 供奉记录
- * @return array
- */
- public function index(){
- return $this->service->getDataList($this->userId);
- }
- /**
- * 供奉物品
- * @return array
- */
- public function goods(){
- return $this->service->goods();
- }
- /**
- * 选择佛像
- * @return mixed
- */
- public function select(){
- return $this->service->select($this->userId);
- }
- /**
- * 送圣
- * @return array
- */
- public function packoff(){
- return $this->service->packoff($this->userId);
- }
- /**
- * 供奉操作记录
- * @return array
- */
- public function actionRecord(){
- return $this->service->actionRecord($this->userId);
- }
- }
|