-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix :: 코드 수정
- Loading branch information
Showing
13 changed files
with
140 additions
and
75 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
12 changes: 9 additions & 3 deletions
12
...reponse/QueryWorkReportDetailsResponse.kt → ...esponse/QueryWorkReportDetailsResponse.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,14 +1,20 @@ | ||
package com.kodomo.juganbbojjak.domain.work_report.dto.reponse | ||
package com.kodomo.juganbbojjak.domain.work_report.dto.response | ||
|
||
import com.kodomo.juganbbojjak.domain.work_report.model.WorkDetailType | ||
import java.util.UUID | ||
|
||
data class QueryWorkReportDetailsResponse( | ||
val title: String, | ||
val workReportList: List<WorkReportListResponse> | ||
) | ||
|
||
data class WorkReportListResponse( | ||
val workReportId: UUID, | ||
val title: String, | ||
val workReportDetails: List<WorkReportDetailsResponse> | ||
) | ||
data class WorkReportDetailsResponse( | ||
val workDetailId: UUID, | ||
val contentKey: String, | ||
val contentValue: String, | ||
val contentType: WorkDetailType | ||
) | ||
) |
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
10 changes: 10 additions & 0 deletions
10
.../src/main/kotlin/com/kodomo/juganbbojjak/domain/work_report/spi/vo/WorkReportDetailsVO.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.kodomo.juganbbojjak.domain.work_report.spi.vo | ||
|
||
import com.kodomo.juganbbojjak.domain.work_report.model.WorkDetail | ||
import java.util.* | ||
|
||
open class WorkReportDetailsVO ( | ||
val workReportId: UUID, | ||
val title: String, | ||
val workDetailsList: List<WorkDetail> | ||
) |
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
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
25 changes: 25 additions & 0 deletions
25
...lin/com/kodomo/juganbbojjak/domain/work_report/persistence/vo/QueryWorkReportDetailsVO.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.kodomo.juganbbojjak.domain.work_report.persistence.vo | ||
|
||
import com.kodomo.juganbbojjak.domain.work_report.model.WorkDetail | ||
import com.kodomo.juganbbojjak.domain.work_report.persistence.entity.WorkDetailEntity | ||
import com.kodomo.juganbbojjak.domain.work_report.spi.vo.WorkReportDetailsVO | ||
import com.querydsl.core.annotations.QueryProjection | ||
import java.util.* | ||
|
||
class QueryWorkReportDetailsVO @QueryProjection constructor( | ||
workReportId: UUID, | ||
title: String, | ||
workDetailsList: List<WorkDetailEntity> | ||
) : WorkReportDetailsVO( | ||
workReportId = workReportId, | ||
title = title, | ||
workDetailsList = workDetailsList.map { | ||
WorkDetail( | ||
id = it.id, | ||
title = it.title, | ||
content = it.content, | ||
type = it.type, | ||
workReportId = it.workReportEntity.id | ||
) | ||
} | ||
) |
2 changes: 1 addition & 1 deletion
2
...in/kotlin/com/kodomo/juganbbojjak/domain/work_report/presentation/WorkReportWebAdapter.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: 16 additions & 7 deletions
23
...com/kodomo/juganbbojjak/domain/work_report/presentation/dto/CreateWorkReportWebRequest.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