Browse Source

fix:修正行为记录接口

白白 1 year ago
parent
commit
9c5ba1a5ed

+ 1 - 1
src/main/java/com/njuzr/eaibackend/controller/BehaviorRecordController.java

@@ -24,7 +24,7 @@ public class BehaviorRecordController {
 
     @GetMapping()
     public MyResponse getBehaviorRecord(
-            @AuthenticationPrincipal(expression = "id") Long studentId,
+            @RequestParam Long studentId,
             @RequestParam Long assignmentId
     ) {
         return MyResponse.success(behaviorRecordService.find(assignmentId, studentId));