From 06f77e45259e2b04ccff0b5ed28d875cf8081859 Mon Sep 17 00:00:00 2001 From: Bob Sin Date: Mon, 20 May 2024 21:05:55 +0900 Subject: [PATCH] =?UTF-8?q?[KAN-63]=20=ED=82=B9=EA=B3=A0=ED=8C=A8=EC=8A=A4?= =?UTF-8?q?=20API=20=EC=A0=9C=EA=B1=B0=20(#48)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/GetKingoPassController.kt | 32 ------------------- .../presentation/dto/GetKingoPassDto.kt | 11 ------- 2 files changed, 43 deletions(-) delete mode 100644 src/main/kotlin/com/restaurant/be/restaurant/presentation/controller/GetKingoPassController.kt delete mode 100644 src/main/kotlin/com/restaurant/be/restaurant/presentation/dto/GetKingoPassDto.kt diff --git a/src/main/kotlin/com/restaurant/be/restaurant/presentation/controller/GetKingoPassController.kt b/src/main/kotlin/com/restaurant/be/restaurant/presentation/controller/GetKingoPassController.kt deleted file mode 100644 index 6628dad..0000000 --- a/src/main/kotlin/com/restaurant/be/restaurant/presentation/controller/GetKingoPassController.kt +++ /dev/null @@ -1,32 +0,0 @@ -package com.restaurant.be.restaurant.presentation.controller - -import com.restaurant.be.common.response.CommonResponse -import com.restaurant.be.restaurant.presentation.dto.GetKingoPassResponse -import io.swagger.annotations.Api -import io.swagger.annotations.ApiOperation -import io.swagger.v3.oas.annotations.media.Content -import io.swagger.v3.oas.annotations.media.Schema -import io.swagger.v3.oas.annotations.responses.ApiResponse -import org.springframework.security.access.prepost.PreAuthorize -import org.springframework.web.bind.annotation.GetMapping -import org.springframework.web.bind.annotation.RequestMapping -import org.springframework.web.bind.annotation.RestController -import java.security.Principal - -@Api(tags = ["02. Restaurant Info"], description = "음식점 서비스") -@RestController -@RequestMapping("/v1/restaurants/kingo-pass") -class GetKingoPassController { - - @GetMapping - @PreAuthorize("hasRole('USER')") - @ApiOperation(value = "성대 킹고 패스 음식점 리스트 조회 API") - @ApiResponse( - responseCode = "200", - description = "성공", - content = [Content(schema = Schema(implementation = GetKingoPassResponse::class))] - ) - fun getRecentHighReview(principal: Principal): CommonResponse { - return CommonResponse.success() - } -} diff --git a/src/main/kotlin/com/restaurant/be/restaurant/presentation/dto/GetKingoPassDto.kt b/src/main/kotlin/com/restaurant/be/restaurant/presentation/dto/GetKingoPassDto.kt deleted file mode 100644 index 6de7c5d..0000000 --- a/src/main/kotlin/com/restaurant/be/restaurant/presentation/dto/GetKingoPassDto.kt +++ /dev/null @@ -1,11 +0,0 @@ -@file:Suppress("ktlint", "MatchingDeclarationName") - -package com.restaurant.be.restaurant.presentation.dto - -import com.restaurant.be.restaurant.presentation.dto.common.RestaurantDto -import io.swagger.v3.oas.annotations.media.Schema - -data class GetKingoPassResponse( - @Schema(description = "킹고패스 식당 리스트") - val restaurants: List -)