update
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
package com.cool.store.request;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author zhangchenbiao
|
||||||
|
* @FileName: InterviewUploadVideoRequest
|
||||||
|
* @Description:
|
||||||
|
* @date 2024-04-07 19:31
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class InterviewUploadVideoRequest {
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
@ApiModelProperty("面试id")
|
||||||
|
private Long interviewId;
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
@NotBlank
|
||||||
|
@ApiModelProperty("视频链接")
|
||||||
|
private List<String> videoUrlList;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -99,7 +99,7 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
|
|||||||
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
||||||
}
|
}
|
||||||
List<AppointmentTimeListVO> resultList = new ArrayList<>();
|
List<AppointmentTimeListVO> resultList = new ArrayList<>();
|
||||||
while (appointmentEndDate.isAfter(appointmentStartDate)){
|
while (appointmentEndDate.isAfter(appointmentStartDate) || appointmentStartDate.equals(appointmentEndDate)){
|
||||||
List<AppointmentTimeVO> appointmentTime = getAppointmentTime(lineId, interviewType, appointmentStartDate);
|
List<AppointmentTimeVO> appointmentTime = getAppointmentTime(lineId, interviewType, appointmentStartDate);
|
||||||
AppointmentTimeListVO appointmentTimeList = new AppointmentTimeListVO(appointmentStartDate.toString(), appointmentStartDate.getDayOfWeek().getValue(), appointmentTime);
|
AppointmentTimeListVO appointmentTimeList = new AppointmentTimeListVO(appointmentStartDate.toString(), appointmentStartDate.getDayOfWeek().getValue(), appointmentTime);
|
||||||
resultList.add(appointmentTimeList);
|
resultList.add(appointmentTimeList);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.cool.store.context.CurrentUserHolder;
|
|||||||
import com.cool.store.enums.InterviewUserTypeEnum;
|
import com.cool.store.enums.InterviewUserTypeEnum;
|
||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
import com.cool.store.request.AppointmentTimeRequest;
|
import com.cool.store.request.AppointmentTimeRequest;
|
||||||
|
import com.cool.store.request.InterviewUploadVideoRequest;
|
||||||
import com.cool.store.request.LineInterviewPageRequest;
|
import com.cool.store.request.LineInterviewPageRequest;
|
||||||
import com.cool.store.request.ModifyInterviewerRequest;
|
import com.cool.store.request.ModifyInterviewerRequest;
|
||||||
import com.cool.store.response.ResponseResult;
|
import com.cool.store.response.ResponseResult;
|
||||||
@@ -92,21 +93,21 @@ public class PCLineInterviewController {
|
|||||||
|
|
||||||
@ApiOperation("结束面试")
|
@ApiOperation("结束面试")
|
||||||
@GetMapping("/finish")
|
@GetMapping("/finish")
|
||||||
public ResponseResult finishInterview(@RequestParam("interviewId")Long interviewId) throws ApiException {
|
public ResponseResult finishInterview(@RequestParam("interviewId")Long interviewId) {
|
||||||
String userId = CurrentUserHolder.getUserId();
|
String userId = CurrentUserHolder.getUserId();
|
||||||
lineInterviewService.finishInterview(interviewId, userId);
|
lineInterviewService.finishInterview(interviewId, userId);
|
||||||
return ResponseResult.success();
|
return ResponseResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("上传文件")
|
@ApiOperation("上传文件")
|
||||||
@GetMapping("/upload/video")
|
@PostMapping("/upload/video")
|
||||||
public ResponseResult uploadVideo(@RequestParam("interviewId")Long interviewId, @RequestParam("videoUrlList") List<String> videoUrlList) throws ApiException {
|
public ResponseResult uploadVideo(@RequestBody @Validated InterviewUploadVideoRequest request) {
|
||||||
return ResponseResult.success(lineInterviewService.uploadVideo(interviewId, videoUrlList));
|
return ResponseResult.success(lineInterviewService.uploadVideo(request.getInterviewId(), request.getVideoUrlList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("重新面审")
|
@ApiOperation("重新面审")
|
||||||
@GetMapping("/reappointment")
|
@GetMapping("/reappointment")
|
||||||
public ResponseResult reappointment(@RequestParam("lineId")Long lineId) throws ApiException {
|
public ResponseResult reappointment(@RequestParam("lineId")Long lineId) {
|
||||||
return ResponseResult.success(lineInterviewService.reappointment(lineId));
|
return ResponseResult.success(lineInterviewService.reappointment(lineId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user