Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

38 lines
884B

  1. <?php
  2. namespace App\Http\Controllers\Web\SeasonTicketContract\Selection;
  3. use App\Http\Controllers\Web\FromKintoneController;
  4. use App\Jobs\SeasonTicketContract\Selection\NoticeToCandidates;
  5. use Illuminate\Http\JsonResponse;
  6. use Illuminate\Http\Request;
  7. class NoticeToCandidatesController extends FromKintoneController
  8. {
  9. public function name(): string
  10. {
  11. return "定期選考メール一斉通知依頼";
  12. }
  13. public function description(): string
  14. {
  15. return "定期選考メール一斉通知を依頼する";
  16. }
  17. public function __construct(protected NoticeToCandidatesParams $param)
  18. {
  19. parent::__construct();
  20. }
  21. protected function run(Request $request): JsonResponse
  22. {
  23. $param = $this->param;
  24. NoticeToCandidates::dispatch($param->recordNo)->delay(5);
  25. return $this->successResponse();
  26. }
  27. }