面试稽核操作合格不合格及撤销
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user