|
|
@@ -0,0 +1,19 @@
|
|
|
+package cn.seec.seecdataanalysis.controller;
|
|
|
+
|
|
|
+import cn.seec.seecdataanalysis.dto.ExerciseDTO;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/exercise")
|
|
|
+public class ExerciseController {
|
|
|
+
|
|
|
+ @PostMapping("/report")
|
|
|
+ @Operation(description = "做题记录上报")
|
|
|
+ public Boolean exerciseReport(@RequestBody ExerciseDTO exerciseDTO) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+}
|