面试稽核操作合格不合格及撤销

This commit is contained in:
feng.li
2023-07-19 18:37:03 +08:00
parent bc5d10ac26
commit 890dc4c479
12 changed files with 286 additions and 37 deletions

View File

@@ -1,10 +1,14 @@
package com.cool.store.controller;
import com.cool.store.dto.inspection.interview.InspectionRevocationDTO;
import com.cool.store.dto.inspection.interview.InspectionSubmissionDTO;
import com.cool.store.exception.ApiException;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.InterviewInspectionService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -22,12 +26,14 @@ public class InterviewInspectionController {
private InterviewInspectionService interviewInspectionService;
@PostMapping("/submission")
public ResponseResult interviewInspectionSubmit() {
public ResponseResult interviewInspectionSubmit(@RequestBody InspectionSubmissionDTO dto) {
interviewInspectionService.submit(dto);
return ResponseResult.success();
}
@PostMapping("/revocation")
public ResponseResult interviewInspectionRevoke() {
public ResponseResult interviewInspectionRevoke(@RequestBody InspectionRevocationDTO dto) throws ApiException {
interviewInspectionService.revoke(dto);
return ResponseResult.success();
}