This repository was archived by the owner on Jul 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Bootstrap-Module/src/main/kotlin/com/asap/bootstrap/web/letter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.asap.bootstrap.web.letter.api
22
33import com.asap.bootstrap.common.security.annotation.AccessUser
4- import com.asap.bootstrap.webhook. dto.KakaoChatType
4+ import com.asap.bootstrap.web.letter. dto.LetterShareStatusResponse
55import io.swagger.v3.oas.annotations.Operation
66import io.swagger.v3.oas.annotations.media.Content
77import 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- }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments