You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
492 B

2 weeks ago
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Course;
use App\Support\ApiResponse;
use App\Support\CourseCheckinDaySync;
use Illuminate\Http\JsonResponse;
class CourseCheckinDayController extends Controller
{
use ApiResponse;
public function index(int $course): JsonResponse
{
$model = Course::query()->findOrFail($course);
return $this->ok(['items' => CourseCheckinDaySync::listTeachDates($model)]);
}
}