generated from pricelees/issue-pr-template
[#44] 매장 기능 도입 #45
@ -15,8 +15,8 @@ import roomescape.common.dto.response.CommonApiResponse
|
||||
import roomescape.theme.web.*
|
||||
|
||||
@Tag(name = "5. 관리자 테마 API", description = "관리자 페이지에서 테마를 조회 / 추가 / 삭제할 때 사용합니다.")
|
||||
interface ThemeAPIV2 {
|
||||
@AdminOnly(privilege = Privilege.READ_SUMMARY)
|
||||
interface ThemeAPI {
|
||||
@AdminOnly(type = AdminType.HQ, privilege = Privilege.READ_SUMMARY)
|
||||
@Operation(summary = "모든 테마 조회", description = "관리자 페이지에서 요약된 테마 목록을 조회합니다.", tags = ["관리자 로그인이 필요한 API"])
|
||||
@ApiResponses(ApiResponse(responseCode = "200", description = "성공", useReturnTypeSchema = true))
|
||||
fun findAdminThemes(): ResponseEntity<CommonApiResponse<AdminThemeSummaryListResponse>>
|
||||
|
||||
@ -4,13 +4,13 @@ import org.springframework.http.ResponseEntity
|
||||
import org.springframework.web.bind.annotation.*
|
||||
import roomescape.common.dto.response.CommonApiResponse
|
||||
import roomescape.theme.business.ThemeService
|
||||
import roomescape.theme.docs.ThemeAPIV2
|
||||
import roomescape.theme.docs.ThemeAPI
|
||||
import java.net.URI
|
||||
|
||||
@RestController
|
||||
class ThemeController(
|
||||
private val themeService: ThemeService,
|
||||
) : ThemeAPIV2 {
|
||||
) : ThemeAPI {
|
||||
|
||||
@PostMapping("/themes/retrieve")
|
||||
override fun findThemesByIds(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user