面试稽核操作update

This commit is contained in:
feng.li
2023-07-19 18:51:55 +08:00
parent 890dc4c479
commit 5cd7195105

View File

@@ -6,6 +6,7 @@ import com.cool.store.exception.ApiException;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.InterviewInspectionService;
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.RequestBody;
@@ -26,12 +27,14 @@ public class InterviewInspectionController {
private InterviewInspectionService interviewInspectionService;
@PostMapping("/submission")
@ApiOperation("提交稽核结果")
public ResponseResult interviewInspectionSubmit(@RequestBody InspectionSubmissionDTO dto) {
interviewInspectionService.submit(dto);
return ResponseResult.success();
}
@PostMapping("/revocation")
@ApiOperation("撤销稽核结果")
public ResponseResult interviewInspectionRevoke(@RequestBody InspectionRevocationDTO dto) throws ApiException {
interviewInspectionService.revoke(dto);
return ResponseResult.success();