mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
[exam] finish assign and remove
This commit is contained in:
@@ -114,11 +114,13 @@ class UserController extends Controller
|
||||
return $this->success($resource);
|
||||
}
|
||||
|
||||
public function matchExams()
|
||||
public function matchExams(Request $request)
|
||||
{
|
||||
$id = Auth::id();
|
||||
$request->validate([
|
||||
'uid' => 'required',
|
||||
]);
|
||||
$examRepository = new ExamRepository();
|
||||
$result = $examRepository->listMatchExam($id);
|
||||
$result = $examRepository->listMatchExam($request->uid);
|
||||
$resource = ExamResource::collection($result);
|
||||
return $this->success($resource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user