This commit is contained in:
zhangchenbiao
2024-03-22 18:08:51 +08:00
parent 42b0080695
commit 60b680e06f
9 changed files with 106 additions and 16 deletions

View File

@@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* @author zhangchenbiao
@@ -66,11 +67,18 @@ public class PCLineInterviewController {
return ResponseResult.success(lineInterviewService.enterInterviewRoom(interviewId, userId, InterviewUserTypeEnum.INTERVIEWER));
}
@GetMapping("/finish")
@ApiOperation("结束面试")
@GetMapping("/finish")
public ResponseResult finishInterview(@RequestParam("interviewId")Long interviewId) throws ApiException {
String userId = CurrentUserHolder.getUserId();
lineInterviewService.finishInterview(interviewId, userId);
return ResponseResult.success();
}
@ApiOperation("上传文件")
@GetMapping("/upload/video")
public ResponseResult uploadVideo(@RequestParam("interviewId")Long interviewId, @RequestParam("videoUrlList") List<String> videoUrlList) throws ApiException {
lineInterviewService.uploadVideo(interviewId, videoUrlList);
return ResponseResult.success();
}
}