优化代码

This commit is contained in:
2025-09-20 22:24:07 +08:00
parent 08b4b8b206
commit df5aa0b9c6

View File

@@ -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 {