| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace App\Http\Controllers\Api\v1;
- use App\Http\Controllers\Api\BaseController;
- use App\Services\ConfigService;
- use App\Services\FoxiangCatesService;
- use App\Services\FoxiangService;
- use Illuminate\Http\Request;
- /**
- * 佛像控制器类
- * @author wesmiler
- * @since 2020/11/10
- * Class FoxiangController
- * @package App\Http\Controllers
- */
- class FoxiangController extends BaseController
- {
- /**
- * 构造函数
- * @author wesmiler
- * @since 2020/11/11
- * FoxiangController constructor.
- */
- public function __construct()
- {
- parent::__construct();
- $this->service = new FoxiangService();
- $this->cateService = new FoxiangCatesService();
- }
- /**
- * 列表
- * @return array
- */
- public function index(){
- $params = request()->all();
- return $this->service->getDataList($params);
- }
- /**
- * 选择佛像
- * @return mixed
- */
- public function select(){
- return $this->service->select($this->userId);
- }
- /**
- * 获取文章分类
- * @return mixed
- */
- public function cates(){
- return $this->cateService->getOptions();
- }
- }
|