user-detail

This commit is contained in:
xiaomlove
2021-04-27 19:13:32 +08:00
parent d1b7561aae
commit d2e05c812e
20 changed files with 594 additions and 50 deletions

View File

@@ -56,11 +56,12 @@ class UserController extends Controller
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
* @return array
*/
public function show($id)
{
//
$result = $this->repository->getDetail($id);
return $this->success($result);
}
/**
@@ -113,7 +114,7 @@ class UserController extends Controller
return $this->success($resource);
}
public function exams()
public function matchExams()
{
$id = Auth::id();
$examRepository = new ExamRepository();