Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit a671e66

Browse files
committed
ASAP-325 refactor: dto 위치 변경
1 parent 8732c37 commit a671e66

2 files changed

Lines changed: 32 additions & 30 deletions

File tree

Bootstrap-Module/src/main/kotlin/com/asap/bootstrap/web/letter/api/LetterLogApi.kt

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.asap.bootstrap.web.letter.api
22

33
import com.asap.bootstrap.common.security.annotation.AccessUser
4-
import com.asap.bootstrap.webhook.dto.KakaoChatType
4+
import com.asap.bootstrap.web.letter.dto.LetterShareStatusResponse
55
import io.swagger.v3.oas.annotations.Operation
66
import io.swagger.v3.oas.annotations.media.Content
77
import io.swagger.v3.oas.annotations.media.Schema
@@ -19,7 +19,7 @@ interface LetterLogApi {
1919
@Operation(summary = "편지 공유 상태 조회")
2020
@GetMapping("/share/status")
2121
@ApiResponses(
22-
value =[
22+
value = [
2323
ApiResponse(
2424
responseCode = "200",
2525
description = """
@@ -52,31 +52,3 @@ interface LetterLogApi {
5252
@AccessUser userId: String
5353
): LetterShareStatusResponse
5454
}
55-
56-
57-
data class LetterShareStatusResponse(
58-
val isShared: Boolean,
59-
val letterId: String?,
60-
val shareTarget: KakaoChatType?,
61-
) {
62-
companion object{
63-
fun success(
64-
letterId: String,
65-
shareTarget: KakaoChatType
66-
): LetterShareStatusResponse {
67-
return LetterShareStatusResponse(
68-
isShared = true,
69-
letterId = letterId,
70-
shareTarget = shareTarget
71-
)
72-
}
73-
74-
fun fail(): LetterShareStatusResponse {
75-
return LetterShareStatusResponse(
76-
isShared = false,
77-
letterId = null,
78-
shareTarget = null
79-
)
80-
}
81-
}
82-
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.asap.bootstrap.web.letter.dto
2+
3+
import com.asap.bootstrap.webhook.dto.KakaoChatType
4+
5+
data class LetterShareStatusResponse(
6+
val isShared: Boolean,
7+
val letterId: String?,
8+
val shareTarget: KakaoChatType?,
9+
) {
10+
companion object{
11+
fun success(
12+
letterId: String,
13+
shareTarget: KakaoChatType
14+
): LetterShareStatusResponse {
15+
return LetterShareStatusResponse(
16+
isShared = true,
17+
letterId = letterId,
18+
shareTarget = shareTarget
19+
)
20+
}
21+
22+
fun fail(): LetterShareStatusResponse {
23+
return LetterShareStatusResponse(
24+
isShared = false,
25+
letterId = null,
26+
shareTarget = null
27+
)
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)