| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?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 cates(){
- return $this->cateService->getOptions();
- }
- }
|