Skip to content

Commit

Permalink
Merge pull request #106 from ASAP-Lettering/ASAP-251
Browse files Browse the repository at this point in the history
ASAP-251 feat: letterCode 같이 내려주도록 추가
  • Loading branch information
tlarbals824 authored Oct 24, 2024
2 parents 268cbfa + fffba9c commit 196695d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ interface GetSendLetterUsecase {
val content: String,
val images: List<String>,
val templateType: Int,
val letterCode: String?,
) : Response()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class LetterQueryService(
content = letter.content.content,
images = letter.content.images,
templateType = letter.content.templateType,
letterCode = letter.letterCode,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class LetterController(
content = response.content,
images = response.images,
templateType = response.templateType,
letterCode = response.letterCode,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ data class SendLetterDetailResponse(
val content: String,
val images: List<String>,
val templateType: Int,
val letterCode: String?,
)
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ class LetterControllerTest : LetterAcceptanceSupporter() {
content = "content",
images = listOf("images"),
templateType = 1,
letterCode = "letterCode",
)
BDDMockito
.given(
Expand Down Expand Up @@ -542,6 +543,10 @@ class LetterControllerTest : LetterAcceptanceSupporter() {
exists()
isNumber()
}
jsonPath("$.letterCode") {
exists()
isString()
}
}
}

Expand Down

0 comments on commit 196695d

Please sign in to comment.