| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?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 mixed
- */
- public function select(){
- return $this->service->select($this->userId);
- }
- /**
- * 送圣
- * @return array
- */
- public function packoff(){
- return $this->service->packoff($this->userId);
- }
- }
|