|
@@ -18,10 +18,10 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
@RestController
|
|
|
-@Api(tags = "图片审核接口")
|
|
|
-@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/admin/auditor/check/image")
|
|
|
+@Api(tags = "批次图片抽查接口")
|
|
|
+@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/auditor/batch/inspect")
|
|
|
@Aac(strict = false, auth = true)
|
|
|
-public class CheckImageController extends BaseController {
|
|
|
+public class BatchInspectController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private ExamService examService;
|
|
@@ -29,41 +29,41 @@ public class CheckImageController extends BaseController {
|
|
|
@Autowired
|
|
|
private BatchService batchService;
|
|
|
|
|
|
- @ApiOperation(value = "修改答题卡扫描图片抽查比例")
|
|
|
+ @ApiOperation(value = "修改批次图片抽查比例")
|
|
|
@PostMapping("ratio")
|
|
|
public RatioVo ratio(@RequestParam Long examId, @RequestParam Double ratio) {
|
|
|
return examService.updateRatio(examId, ratio);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "答题卡扫描图片检查任务状态")
|
|
|
+ @ApiOperation(value = "批次图片抽查任务状态")
|
|
|
@PostMapping("status")
|
|
|
public TaskStatusVo status(@RequestParam Long examId) {
|
|
|
User user = getAccessUser();
|
|
|
return batchService.getCheckImageStatus(examId, user);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "获取答题卡扫描图片检查任务")
|
|
|
+ @ApiOperation(value = "获取批次图片抽查任务")
|
|
|
@RequestMapping(value = "get", method = RequestMethod.POST)
|
|
|
public VerifyTaskVo get(@RequestParam Long examId) {
|
|
|
User user = getAccessUser();
|
|
|
return batchService.getCheckImageTask(examId, user);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "历史答题卡扫描图片检查任务")
|
|
|
+ @ApiOperation(value = "历史批次图片抽查")
|
|
|
@RequestMapping(value = "history", method = RequestMethod.POST)
|
|
|
public VerifyTaskVo history(@RequestParam Long examId, @RequestParam(required = false) Long batchId) {
|
|
|
User user = getAccessUser();
|
|
|
return batchService.getHistoryCheckImageTask(examId, batchId, user);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "答题卡扫描图片检查任务提交")
|
|
|
+ @ApiOperation(value = "批次图片抽查任务提交")
|
|
|
@RequestMapping(value = "submit", method = RequestMethod.POST)
|
|
|
public CheckImageSubmitVo submit(@RequestParam Long examId, @RequestParam Long batchId) {
|
|
|
User user = getAccessUser();
|
|
|
return batchService.submitCheckImageTask(examId, batchId, user);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "答题卡扫描图片检查任务释放")
|
|
|
+ @ApiOperation(value = "批次图片抽查任务释放")
|
|
|
@PostMapping("release")
|
|
|
public Object release(@RequestParam Long examId) {
|
|
|
User user = getAccessUser();
|