File tree Expand file tree Collapse file tree
ui/group/myroom/component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ data class RoomMainResponse(
1717@Serializable
1818data class RoomMainList (
1919 @SerialName(" deadlineRoomList" ) val deadlineRoomList : List <RoomMainResponse > = emptyList(),
20- @SerialName(" popularRoomList" ) val popularRoomList : List <RoomMainResponse > = emptyList()
20+ @SerialName(" popularRoomList" ) val popularRoomList : List <RoomMainResponse > = emptyList(),
21+ @SerialName(" recentRoomList" ) val recentRoomList : List <RoomMainResponse > = emptyList()
2122)
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class RoomsRepository @Inject constructor(
5757 response
5858 }
5959
60- /* * 카테고리별 모임방 섹션 조회 (마감임박/인기) */
60+ /* * 카테고리별 모임방 섹션 조회 (마감임박/인기/최근 생성 ) */
6161 suspend fun getRoomSections (
6262 genre : Genre ? = null
6363 ): Result <RoomMainList ?> = runCatching {
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ interface RoomsService {
5252 @Query(" cursor" ) cursor : String? = null
5353 ): BaseResponse <JoinedRoomListResponse >
5454
55- /* * 카테고리별 모임방 목록 조회 (마감임박/인기) */
55+ /* * 카테고리별 모임방 목록 조회 (마감임박/인기/최근 생성 ) */
5656 @GET(" rooms" )
5757 suspend fun getRooms (
5858 @Query(" category" ) category : String = "문학"
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ fun GroupRoomDeadlineSection(
6868 // Genre enum을 현지화된 문자열로 변환
6969 val genreStrings = Genre .entries.toDisplayStrings()
7070
71- // 마감 임박 방 목록과 인기 방 목록을 섹션으로 구성
71+ // 마감 임박 방 목록, 인기 방 목록, 최신 생성 모임방을 섹션으로 구성
7272 val roomSections = listOf (
7373 Pair (
7474 stringResource(R .string.room_section_deadline),
@@ -77,7 +77,11 @@ fun GroupRoomDeadlineSection(
7777 Pair (
7878 stringResource(R .string.room_section_popular),
7979 roomMainList?.popularRoomList ? : emptyList()
80- )
80+ ),
81+ Pair (
82+ stringResource(R .string.room_section_recent),
83+ roomMainList?.recentRoomList ? : emptyList()
84+ ),
8185 )
8286
8387 val effectivePagerState = rememberPagerState(
Original file line number Diff line number Diff line change 158158 <string name =" group_recommend" >이런 모임방은 어때요?</string >
159159 <string name =" group_recruiting" >"모집"</string >
160160 <string name =" group_genre" >"장르"</string >
161- <string name =" deadline_string" >마감 임박한 독서 모임방</string >
162161 <string name =" group_participant" >%1$s명</string >
163162 <string name =" group_participant_string" >참여</string >
164163 <string name =" group_progress" >"%1$s님의 진행도 "</string >
414413 <string name =" room_section_deadline" >마감 임박한 독서 모임방</string >
415414 <string name =" room_section_popular" >인기 있는 독서 모임방</string >
416415 <string name =" room_section_influencer" >인플루언서·작가 독서 모임방</string >
417-
416+ <string name =" room_section_recent" >최근 생성된 독서 모임방</string >
417+
418418 <!-- error states -->
419419 <string name =" error_data_load_failed" >데이터를 불러올 수 없습니다</string >
420420 <string name =" error_network_connection" >네트워크 연결을 확인해주세요</string >
You can’t perform that action at this time.
0 commit comments