package com.keao.edu.controller;

import com.keao.edu.common.controller.BaseController;
import com.keao.edu.common.entity.HttpResponseResult;
import com.keao.edu.user.dto.ExamCertificationDto;
import com.keao.edu.user.service.ExamCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("examCertification")
@Api(tags = "准考证服务")
public class ExamCertificationController extends BaseController {

    @Autowired
    private ExamCertificationService examCertificationService;

    @ApiOperation("后台获取学员准考证详情")
    @GetMapping(value = "findDetailByStudentId")
    public HttpResponseResult<ExamCertificationDto> findDetailByStudentId(Long examRegistrationId) {
        return succeed(examCertificationService.findDetailByStudentId(examRegistrationId));
    }
}
