PlatformContentController.php 738 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Http\Controllers\V2;
  3. use App\Http\Controllers\BaseController;
  4. use App\Repositories\PlatformContentRepository;
  5. use Illuminate\Http\Request;
  6. use Illuminate\Support\Facades\Validator;
  7. /**
  8. * Created by PhpStorm.
  9. * User: durong
  10. * Date: 2019/6/17
  11. * Time: 下午6:42
  12. */
  13. class PlatformContentController extends BaseController
  14. {
  15. public function __construct(PlatformContentRepository $platformContentRepository)
  16. {
  17. $this->platformContentRepository = $platformContentRepository;
  18. }
  19. //平台内容列表
  20. public function index(Request $request)
  21. {
  22. $platformContent = $this->platformContentRepository->index($request->all());
  23. return $this->jsonSuccess($platformContent);
  24. }
  25. }