| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?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);
- }
- /**
- * 购买物品
- * @return array
- */
- public function buy(){
- return $this->service->buy($this->userId);
- }
- }
|