JobfairPersonalJobsInterviewRepository.php 726 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wuzhenke
  5. * Date: 2019/1/25
  6. * Time: 17:54
  7. */
  8. namespace App\Repositories\Jobfair;
  9. use App\Models\Jobfair\JobfairPersonalJobsInterview;
  10. use Prettus\Repository\Eloquent\BaseRepository;
  11. class JobfairPersonalJobsInterviewRepository extends BaseRepository
  12. {
  13. public function model()
  14. {
  15. return JobfairPersonalJobsInterview::class;
  16. }
  17. public function interviewAdd($data)
  18. {
  19. return $this->model->create($data);
  20. }
  21. public function interviewFind($data){
  22. $res = $this->model->where($data)->first();
  23. return $res ? true : false;
  24. }
  25. public function delete($id){
  26. return $this->model->where('id', $id)->delete();
  27. }
  28. }