From 594c2a07e214523063a400504eb49da9a33adf44 Mon Sep 17 00:00:00 2001 From: Alan <3052806735@qq.com> Date: Wed, 19 Jun 2024 11:39:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AEid=E6=9F=A5=E8=AF=A2=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E7=9B=AE=E6=A0=87=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/courses/ObjectiveContentsController.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); + } + }