diff --git a/src/main/java/com/teaching/backend/controller/courses/ObjectiveContentsController.java b/src/main/java/com/teaching/backend/controller/courses/ObjectiveContentsController.java index 0fd4b7f..755b53c 100644 --- a/src/main/java/com/teaching/backend/controller/courses/ObjectiveContentsController.java +++ b/src/main/java/com/teaching/backend/controller/courses/ObjectiveContentsController.java @@ -48,4 +48,11 @@ public class ObjectiveContentsController { return ResultUtils.success("修改成功"); } + @ApiOperation("根据id查询目标内容") + @GetMapping("/{id}") + public BaseResponse updateContent(@PathVariable String id){ + ObjectiveContents objectiveContent = objectiveContentsService.getById(id); + return ResultUtils.success(objectiveContent); + } + }