| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace App\Http\Controllers\Api\v1;
- use App\Http\Controllers\Api\BaseController;
- use App\Services\SiyuanService;
- /**
- * 寺院控制器类
- * @author wesmiler
- * @since 2020/11/10
- * Class SiyuanController
- * @package App\Http\Controllers
- */
- class SiyuanController extends BaseController
- {
- /**
- * 构造函数
- * @author wesmiler
- * @since 2020/11/11
- * SiyuanController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new SiyuanService();
- }
- public function index(){
- return $this->service->getDataList();
- }
- /**
- * 详情
- * @return mixed
- */
- public function info(){
- $this->service->updateVisit($this->userId);
- return $this->service->getInfo();
- }
- /**
- * 寺院选项
- * @return mixed
- */
- public function options(){
- return $this->service->getOptions();
- }
- }
|