优化代码
This commit is contained in:
@@ -11,7 +11,6 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@@ -36,8 +35,8 @@ public class InterviewController {
|
||||
* @return 包含会话ID的会话信息
|
||||
*/
|
||||
@PostMapping("/start")
|
||||
public R<InterviewSession> start(@RequestParam("resume") MultipartFile resume,
|
||||
@Validated @ModelAttribute InterviewStartRequest request) {
|
||||
public R<InterviewSession> start(@RequestPart("resume") MultipartFile resume,
|
||||
@RequestPart("interviewStartDto") InterviewStartRequest request) {
|
||||
log.info("接受的数据: {}", JSONObject.toJSONString(request));
|
||||
return R.success();
|
||||
// try {
|
||||
|
||||
Reference in New Issue
Block a user