Skip to content

Commit

Permalink
[KAN-60] 운영시간 사용안해서 제거 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok authored May 26, 2024
1 parent b900fc7 commit b34ebf0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 65 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ data class RestaurantDto(
val categories: List<String>,
@Schema(description = "식당 대표 메뉴")
val representativeMenu: MenuDto?,
@Schema(description = "식당 영업 시작 시간")
val operatingStartTime: String,
@Schema(description = "식당 영업 종료 시간")
val operatingEndTime: String,
@Schema(description = "식당 대표 리뷰 내용")
val representativeReviewContent: String?,
@Schema(description = "식당 좋아요 여부(로그인한 유저)")
Expand All @@ -44,9 +40,7 @@ data class RestaurantDetailDto(
@Schema(description = "식당 주소")
val address: String,
@Schema(description = "메뉴 정보")
val menus: List<MenuDto>,
@Schema(description = "영업 정보")
val operatingInfos: List<OperatingInfoDto>
val menus: List<MenuDto>
)

data class MenuDto(
Expand All @@ -61,12 +55,3 @@ data class MenuDto(
@Schema(description = "메뉴 이미지 URL")
val imageUrl: String? = null
)

data class OperatingInfoDto(
@Schema(description = "영업 요일")
val day: String,
@Schema(description = "영업 시작 시간")
val startTime: String,
@Schema(description = "영업 종료 시간")
val endTime: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,15 @@ data class RestaurantEsDocument(
likeCount = 0, // RDB
categories = category.split(",").map { it.trim() },
representativeMenu = menus.firstOrNull()?.toDto(),
operatingStartTime = "", // 나중에 추가
operatingEndTime = "", // 나중에 추가
representativeReviewContent = "", // RDB
isLike = false, // RDB
discountContent = discountContent, // 나중에 추가,
discountContent = discountContent,
longitude = 0.0, // RDB
latitude = 0.0, // RDB
detailInfo = RestaurantDetailDto(
contactNumber = "",
address = address,
menus = menus.map { it.toDto() },
operatingInfos = emptyList() // 나중에 추가
menus = menus.map { it.toDto() }
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ data class RestaurantProjectionDto(
likeCount = restaurant.likeCount,
categories = categories.map { it.name },
representativeMenu = menus.firstOrNull()?.toDto(),
operatingStartTime = "",
operatingEndTime = "",
representativeReviewContent = review?.content,
isLike = isLike,
discountContent = restaurant.discountContent,
Expand All @@ -34,8 +32,7 @@ data class RestaurantProjectionDto(
detailInfo = RestaurantDetailDto(
contactNumber = restaurant.contactNumber,
address = restaurant.address,
menus = menus.map { it.toDto() },
operatingInfos = emptyList()
menus = menus.map { it.toDto() }
)
)
}
Expand Down

0 comments on commit b34ebf0

Please sign in to comment.