From 9de051e0fd8dfd01c6b0f5c437e4ef76eb1128bb Mon Sep 17 00:00:00 2001 From: JuHyun419 Date: Tue, 30 Aug 2022 00:10:48 +0900 Subject: [PATCH] =?UTF-8?q?[#140]=20refactor:=20import=20asterisk(*)=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C,=20=EB=A9=94=EC=84=9C=EB=93=9C=EB=AA=85=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web2/domain/bookmark/controller/TrashController.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/yapp/web2/domain/bookmark/controller/TrashController.kt b/src/main/kotlin/com/yapp/web2/domain/bookmark/controller/TrashController.kt index 8464ed8..6daa296 100644 --- a/src/main/kotlin/com/yapp/web2/domain/bookmark/controller/TrashController.kt +++ b/src/main/kotlin/com/yapp/web2/domain/bookmark/controller/TrashController.kt @@ -8,7 +8,11 @@ import io.swagger.annotations.ApiOperation import io.swagger.annotations.ApiParam import org.springframework.http.HttpStatus import org.springframework.http.ResponseEntity -import org.springframework.web.bind.annotation.* +import org.springframework.web.bind.annotation.PatchMapping +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/v1/trash") @@ -19,14 +23,14 @@ class TrashController( @ApiOperation("북마크 복원 API") @PatchMapping("/restore") fun restoreBookmarks(@RequestBody @ApiParam(value = "복원할 북마크 ID 리스트", required = true) request: BookmarkDto.RestoreBookmarkRequest): ResponseEntity { - bookmarkService.restore(request.bookmarkIdList) + bookmarkService.restoreBookmarks(request.bookmarkIdList) return ResponseEntity.status(HttpStatus.OK).body(Message.SUCCESS) } @ApiOperation("북마크 영구삭제 API") @PostMapping("/truncate") fun permanentDelete(@RequestBody @ApiParam(value = "영구삭제할 북마크 ID 리스트", required = true) request: BookmarkDto.TruncateBookmarkRequest): ResponseEntity { - bookmarkService.permanentDelete(request.bookmarkIdList) + bookmarkService.deleteBookmarkPermanently(request.bookmarkIdList) return ResponseEntity.status(HttpStatus.OK).body(Message.SUCCESS) } } \ No newline at end of file