ExamCertificationController.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.keao.edu.user.controller;
  2. import com.keao.edu.common.controller.BaseController;
  3. import com.keao.edu.common.entity.HttpResponseResult;
  4. import com.keao.edu.user.dto.ExamCertificationDto;
  5. import com.keao.edu.user.dto.NeedCheckingDetailDto;
  6. import com.keao.edu.user.service.ExamCertificationService;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.GetMapping;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. import java.util.List;
  14. @RestController
  15. @RequestMapping("examCertification")
  16. @Api(tags = "准考证服务")
  17. public class ExamCertificationController extends BaseController {
  18. @Autowired
  19. private ExamCertificationService examCertificationService;
  20. @ApiOperation("后台获取学员准考证详情")
  21. @GetMapping(value = "findDetailByStudentId")
  22. public HttpResponseResult<ExamCertificationDto> findDetailByStudentId(Long examRegistrationId) {
  23. return succeed(examCertificationService.findDetailByStudentId(examRegistrationId));
  24. }
  25. @ApiOperation("学生端获取学员准考证列表")
  26. @GetMapping(value = "queryCertificationPage")
  27. public HttpResponseResult<List<ExamCertificationDto>> queryCertification(Long examRegistrationId) {
  28. return succeed(examCertificationService.queryCertificationPage(examRegistrationId));
  29. }
  30. @ApiOperation("学生端待考详情")
  31. @GetMapping(value = "needCheckingDetail")
  32. public HttpResponseResult<NeedCheckingDetailDto> needCheckingDetail(Long examRegistrationId) {
  33. return succeed(examCertificationService.needCheckingDetail(examRegistrationId));
  34. }
  35. }