관리자 - 시리즈 리스트 API 추가
This commit is contained in:
@@ -27,16 +27,13 @@ class MenuQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : MenuQ
|
||||
)
|
||||
.orderBy(menu.orders.asc())
|
||||
.fetch()
|
||||
.asSequence()
|
||||
.map {
|
||||
GetMenuResponse(
|
||||
title = it.title,
|
||||
route = it.route,
|
||||
items = if (it.children.isNotEmpty()) {
|
||||
it.children
|
||||
.asSequence()
|
||||
.map { menu -> GetMenuResponse(menu.title, menu.route) }
|
||||
.toList()
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
Reference in New Issue
Block a user