-
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.
- Loading branch information
Showing
7 changed files
with
104 additions
and
43 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
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/kr/hs/dsm/inq/domain/user/persistence/dto/UserQuestionDto.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,22 @@ | ||
package kr.hs.dsm.inq.domain.user.persistence.dto | ||
|
||
import com.querydsl.core.annotations.QueryProjection | ||
import kr.hs.dsm.inq.domain.question.persistence.Category | ||
import kr.hs.dsm.inq.domain.question.persistence.Tags | ||
import java.time.LocalDateTime | ||
|
||
class UserQuestionDto @QueryProjection constructor( | ||
val questionId: Long, | ||
val authorId: Long, | ||
val username: String, | ||
val job: String, | ||
val jobDuration: Int, | ||
val question: String, | ||
val category: Category, | ||
tagList: List<Tags>?, | ||
val isFavorite: Boolean, | ||
val exemplaryAnswer : String, | ||
val createdAt: LocalDateTime | ||
) { | ||
val tagList: List<Tags> = tagList ?: listOf() | ||
} |
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
17 changes: 0 additions & 17 deletions
17
src/main/kotlin/kr/hs/dsm/inq/domain/user/presentation/dto/UserQuestionDto.kt
This file was deleted.
Oops, something went wrong.
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