面谈/面试
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.context.CurrentUserHolder;
|
||||
import com.cool.store.enums.InterviewUserTypeEnum;
|
||||
import com.cool.store.request.AppointmentTimeRequest;
|
||||
import com.cool.store.request.LineInterviewPageRequest;
|
||||
import com.cool.store.request.ModifyInterviewerRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.LineInterviewService;
|
||||
import com.cool.store.vo.interview.AppointmentTimeVO;
|
||||
import com.cool.store.vo.interview.EnterInterviewVO;
|
||||
import com.cool.store.vo.interview.LineInterviewPageVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zhangchenbiao
|
||||
* @FileName: LineInterviewController
|
||||
* @Description:
|
||||
* @date 2024-03-15 16:04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/interview")
|
||||
@Api(tags = "面试&面谈")
|
||||
@Slf4j
|
||||
public class LineInterviewController {
|
||||
|
||||
@Resource
|
||||
private LineInterviewService lineInterviewService;
|
||||
|
||||
@ApiOperation("修改面审时间")
|
||||
@PostMapping("/appointment/time/modify")
|
||||
public ResponseResult<Boolean> modifyAppointmentTime(@RequestBody @Validated AppointmentTimeRequest request) {
|
||||
return ResponseResult.success(lineInterviewService.modifyAppointmentTime(request));
|
||||
}
|
||||
|
||||
@ApiOperation("修改面试官")
|
||||
@PostMapping("/interviewer/modify")
|
||||
public ResponseResult<Boolean> modifyInterviewer(@RequestBody @Validated ModifyInterviewerRequest request) {
|
||||
return ResponseResult.success(lineInterviewService.modifyInterviewer(request));
|
||||
}
|
||||
|
||||
@ApiOperation("面试列表")
|
||||
@PostMapping("/interviewer/page")
|
||||
public ResponseResult<PageInfo<LineInterviewPageVO>> getInterviewerPage(@RequestBody LineInterviewPageRequest request) {
|
||||
return ResponseResult.success(lineInterviewService.getInterviewerPage(request));
|
||||
}
|
||||
|
||||
@ApiOperation("进入房间")
|
||||
@GetMapping("/interviewer/room/enter")
|
||||
public ResponseResult<EnterInterviewVO> enterInterviewRoom(@RequestParam("interviewId")Long interviewId) {
|
||||
String userId = CurrentUserHolder.getUserId();
|
||||
return ResponseResult.success(lineInterviewService.enterInterviewRoom(interviewId, userId, InterviewUserTypeEnum.INTERVIEWER));
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,15 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.context.PartnerUserHolder;
|
||||
import com.cool.store.enums.InterviewUserTypeEnum;
|
||||
import com.cool.store.request.AppointmentTimeRequest;
|
||||
import com.cool.store.request.LineInterviewPageRequest;
|
||||
import com.cool.store.request.ModifyInterviewerRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.LineInterviewService;
|
||||
import com.cool.store.vo.PartnerUserInfoVO;
|
||||
import com.cool.store.vo.interview.AppointmentTimeVO;
|
||||
import com.cool.store.vo.interview.EnterInterviewVO;
|
||||
import com.cool.store.vo.interview.LineInterviewPageVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
@@ -56,22 +60,11 @@ public class LineInterviewController {
|
||||
return ResponseResult.success(lineInterviewService.appointmentTime(request));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("修改面审时间")
|
||||
@PostMapping("/appointment/time/modify")
|
||||
public ResponseResult<Boolean> modifyAppointmentTime(@RequestBody @Validated AppointmentTimeRequest request) {
|
||||
return ResponseResult.success(lineInterviewService.modifyAppointmentTime(request));
|
||||
@ApiOperation("进入房间")
|
||||
@GetMapping("/interviewer/room/enter")
|
||||
public ResponseResult<EnterInterviewVO> enterInterviewRoom(@RequestParam("interviewId")Long interviewId) {
|
||||
PartnerUserInfoVO partnerUser = PartnerUserHolder.getUser();
|
||||
return ResponseResult.success(lineInterviewService.enterInterviewRoom(interviewId, partnerUser.getPartnerId(), InterviewUserTypeEnum.LINE));
|
||||
}
|
||||
|
||||
@ApiOperation("修改面试官")
|
||||
@PostMapping("/interviewer/modify")
|
||||
public ResponseResult<Boolean> modifyInterviewer(@RequestBody @Validated ModifyInterviewerRequest request) {
|
||||
return ResponseResult.success(lineInterviewService.modifyInterviewer(request));
|
||||
}
|
||||
|
||||
@ApiOperation("面试列表")
|
||||
@PostMapping("/interviewer/page")
|
||||
public ResponseResult<PageInfo<LineInterviewPageVO>> getInterviewerPage(@RequestBody LineInterviewPageRequest request) {
|
||||
return ResponseResult.success(lineInterviewService.getInterviewerPage(request));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user