content: package ahmetcetinkaya.HRMSProjectBackend.api.controllers;
  
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.http.HttpStatus;
  import org.springframework.http.ResponseEntity;
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  import org.springframework.web.bind.annotation.RestController;
  
  import ahmetcetinkaya.HRMSProjectBackend.business.abstracts.CompanyStaffVerificationService;
  import ahmetcetinkaya.HRMSProjectBackend.core.api.abstracts.BaseController;
  import ahmetcetinkaya.HRMSProjectBackend.core.utilities.results.Result;
  import ahmetcetinkaya.HRMSProjectBackend.entities.concretes.CompanyStaffVerification;
  
  @RestController
  @RequestMapping("/api/companystaffverifications")
  public class CompanyStaffVerificationsController
  		extends BaseController<CompanyStaffVerificationService, CompanyStaffVerification, Integer> {
  	private final CompanyStaffVerificationService companyStaffVerificationService;
  
  	@Autowired
  	public CompanyStaffVerificationsController(final CompanyStaffVerificationService companyStaffVerificationService) {
  		super(companyStaffVerificationService);
  		this.companyStaffVerificationService = companyStaffVerificationService;
  	}
  
  	@GetMapping("/verify")
  	public ResponseEntity<Result> verify(@RequestParam final int userId) {
  		final Result result = companyStaffVerificationService.verify(userId);
  
  		if (!result.isSuccess())
  			return new ResponseEntity<Result>(result, HttpStatus.BAD_REQUEST);
  
  		return ResponseEntity.ok(result);
  	}
  }
  