package com.keao.edu.controller; import com.keao.edu.auth.api.client.SysUserFeignService; import com.keao.edu.common.controller.BaseController; import com.keao.edu.common.entity.HttpResponseResult; import com.keao.edu.user.service.EmployeeService; import com.keao.edu.user.service.StudentExamResultService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; /** * @Author Joburgess * @Date 2020.06.30 */ @RestController @RequestMapping("studentExamResult") @Api(tags = "考试结果服务") public class StudentExamResultController extends BaseController { @Autowired private StudentExamResultService studentExamResultService; @Autowired private SysUserFeignService sysUserFeignService; @Autowired private EmployeeService employeeService; @ApiOperation("确认考生") @PostMapping(value = "/confirmStudent") public HttpResponseResult confirmStudent(Long examRegistrationId) { studentExamResultService.confirmStudent(examRegistrationId); return succeed(); } /** * 屏蔽指定用户 * @param roomId * @return * @throws Exception */ @RequestMapping(value = "/shieldUserId", method = RequestMethod.POST) public Object shieldUserId(Long roomId,Integer shieldFlag)throws Exception { studentExamResultService.shieldUserId(roomId,shieldFlag); return succeed(); } }