platformContentRepository = $platformContentRepository; } //平台内容列表 public function index(Request $request) { $validator = Validator::make($request->all(), [ 'id' => 'required|integer', ]); if ($validator->fails()) { return $this->jsonError($validator->errors()->first()); } $platformContent = $this->platformContentRepository->index($request->all()); return $this->jsonSuccess($platformContent); } }