-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
41 changed files
with
465 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
data/src/main/java/com/terning/data/datasource/ScrapDataSource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
data/src/main/java/com/terning/data/dto/response/CalendarDayListResponseDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
package com.terning.data.dto.response | ||
|
||
import com.terning.domain.entity.CalendarScrapDetail | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class CalendarDayListResponseDto( | ||
@SerialName("scrapId") | ||
val scrapId: Long, | ||
@SerialName("internshipAnnouncementId") | ||
val internshipAnnouncementId: Long, | ||
@SerialName("title") | ||
val title: String, | ||
@SerialName("dDay") | ||
val dDay: String, | ||
@SerialName("deadline") | ||
val deadline: String, | ||
@SerialName("workingPeriod") | ||
val workingPeriod: String, | ||
@SerialName("color") | ||
val color: String, | ||
@SerialName("companyImage") | ||
val companyImage: String, | ||
@SerialName("startYear") | ||
val startYear: Int, | ||
@SerialName("startMonth") | ||
val startMonth: Int | ||
@SerialName("startYearMonth") | ||
val startYearMonth: String, | ||
@SerialName("isScrapped") | ||
val isScrapped: Boolean | ||
) |
27 changes: 13 additions & 14 deletions
27
data/src/main/java/com/terning/data/dto/response/CalendarMonthListResponseDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
package com.terning.data.dto.response | ||
|
||
import com.terning.domain.entity.CalendarScrapDetail | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class CalendarMonthListResponseDto( | ||
@SerialName("deadline") | ||
val deadline: String, | ||
@SerialName("scraps") | ||
val scraps: List<Scrap> | ||
@SerialName("announcements") | ||
val announcements: List<Announcement> | ||
) { | ||
@Serializable | ||
data class Scrap( | ||
@SerialName("scrapId") | ||
val scrapId: Long, | ||
data class Announcement( | ||
@SerialName("internshipAnnouncementId") | ||
val internshipAnnouncementId: Long, | ||
@SerialName("title") | ||
val title: String, | ||
@SerialName("companyImage") | ||
val companyImage: String, | ||
@SerialName("dDay") | ||
val dDay: String, | ||
@SerialName("title") | ||
val title: String, | ||
@SerialName("workingPeriod") | ||
val workingPeriod: String, | ||
@SerialName("isScrapped") | ||
val isScrapped: Boolean, | ||
@SerialName("color") | ||
val color: String, | ||
@SerialName("companyImage") | ||
val companyImage: String, | ||
@SerialName("startYear") | ||
val startYear: Int, | ||
@SerialName("startMonth") | ||
val startMonth: Int | ||
@SerialName("deadline") | ||
val deadline: String, | ||
@SerialName("startYearMonth") | ||
val startYearMonth: String, | ||
) | ||
} |
1 change: 0 additions & 1 deletion
1
data/src/main/java/com/terning/data/dto/response/CalendarMonthResponseDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 11 additions & 12 deletions
23
data/src/main/java/com/terning/data/mapper/CalendarScrapDetailListMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
package com.terning.data.mapper | ||
|
||
import com.terning.data.dto.response.CalendarMonthListResponseDto | ||
import com.terning.domain.entity.CalendarScrapDetail | ||
import com.terning.domain.entity.calendar.CalendarScrapDetail | ||
|
||
fun CalendarMonthListResponseDto.toCalendarScrapDetailList(): List<CalendarScrapDetail> = scraps.map { scrap -> | ||
fun CalendarMonthListResponseDto.toCalendarScrapDetailList(): List<CalendarScrapDetail> = announcements.map { announcement -> | ||
CalendarScrapDetail( | ||
scrapId = scrap.scrapId, | ||
internshipAnnouncementId = scrap.internshipAnnouncementId, | ||
title = scrap.title, | ||
dDay = scrap.dDay, | ||
workingPeriod = scrap.workingPeriod, | ||
color = scrap.color, | ||
companyImage = scrap.companyImage, | ||
startYear = scrap.startYear, | ||
startMonth = scrap.startMonth, | ||
deadLine = deadline | ||
internshipAnnouncementId = announcement.internshipAnnouncementId, | ||
title = announcement.title, | ||
dDay = announcement.dDay, | ||
workingPeriod = announcement.workingPeriod, | ||
color = announcement.color, | ||
companyImage = announcement.companyImage, | ||
startYearMonth = announcement.startYearMonth, | ||
deadline = announcement.deadline, | ||
isScrapped = announcement.isScrapped | ||
) | ||
} |
9 changes: 4 additions & 5 deletions
9
data/src/main/java/com/terning/data/mapper/CalendarScrapDetailMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
package com.terning.data.mapper | ||
|
||
import com.terning.data.dto.response.CalendarDayListResponseDto | ||
import com.terning.domain.entity.CalendarScrapDetail | ||
import com.terning.domain.entity.calendar.CalendarScrapDetail | ||
|
||
fun CalendarDayListResponseDto.toCalendarScrapDetail() = | ||
CalendarScrapDetail( | ||
scrapId = scrapId, | ||
internshipAnnouncementId = internshipAnnouncementId, | ||
title = title, | ||
dDay = dDay, | ||
workingPeriod = workingPeriod, | ||
color = color, | ||
companyImage = companyImage, | ||
startYear = startYear, | ||
startMonth = startMonth, | ||
deadLine = "" | ||
startYearMonth = startYearMonth, | ||
deadline = deadline, | ||
isScrapped = isScrapped | ||
) |
2 changes: 1 addition & 1 deletion
2
data/src/main/java/com/terning/data/mapper/CalendarScrapMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
data/src/main/java/com/terning/data/repositoryimpl/ScrapRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...om/terning/domain/entity/CalendarScrap.kt → ...g/domain/entity/calendar/CalendarScrap.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...ning/domain/entity/CalendarScrapDetail.kt → ...in/entity/calendar/CalendarScrapDetail.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package com.terning.domain.entity | ||
package com.terning.domain.entity.calendar | ||
|
||
data class CalendarScrapDetail( | ||
val scrapId: Long, | ||
val internshipAnnouncementId: Long, | ||
val title: String, | ||
val dDay: String, | ||
val workingPeriod: String, | ||
val deadline: String, | ||
val color: String, | ||
val companyImage: String, | ||
val startYear: Int, | ||
val startMonth: Int, | ||
val deadLine: String, | ||
val isScrapped: Boolean = true | ||
val startYearMonth: String, | ||
val isScrapped: Boolean | ||
) |
2 changes: 1 addition & 1 deletion
2
...ing/domain/entity/CalendarScrapRequest.kt → ...n/entity/calendar/CalendarScrapRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
domain/src/main/java/com/terning/domain/repository/CalendarRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
domain/src/main/java/com/terning/domain/repository/ScrapRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.