-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 티켓팅 알림 설정 후 종료된 공연 목록, 개수 API (#114)
- Loading branch information
1 parent
58302ce
commit 23cd82f
Showing
19 changed files
with
171 additions
and
63 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
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
16 changes: 16 additions & 0 deletions
16
...ava/com/example/show/controller/dto/response/TerminatedTicketingShowCountApiResponse.java
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,16 @@ | ||
package com.example.show.controller.dto.response; | ||
|
||
import com.example.show.service.dto.response.TerminatedTicketingShowCountServiceResponse; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record TerminatedTicketingShowCountApiResponse( | ||
@Schema(description = "개수") | ||
long count | ||
) { | ||
|
||
public static TerminatedTicketingShowCountApiResponse from( | ||
TerminatedTicketingShowCountServiceResponse response | ||
) { | ||
return new TerminatedTicketingShowCountApiResponse(response.count()); | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
...va/com/example/show/service/dto/response/TerminatedTicketingShowCountServiceResponse.java
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,13 @@ | ||
package com.example.show.service.dto.response; | ||
|
||
public record TerminatedTicketingShowCountServiceResponse( | ||
long count | ||
) { | ||
public static TerminatedTicketingShowCountServiceResponse noCount() { | ||
return new TerminatedTicketingShowCountServiceResponse(0); | ||
} | ||
|
||
public static TerminatedTicketingShowCountServiceResponse from(long count) { | ||
return new TerminatedTicketingShowCountServiceResponse(count); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
app/api/show-api/src/main/java/com/example/show/vo/ShowTicketingAtStatusApiType.java
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,16 @@ | ||
package com.example.show.vo; | ||
|
||
import org.example.vo.ShowTicketingAtStatus; | ||
|
||
public enum ShowTicketingAtStatusApiType { | ||
|
||
TERMINATED, | ||
CONTINUED; | ||
|
||
public ShowTicketingAtStatus toDomainType() { | ||
return switch (this) { | ||
case TERMINATED -> ShowTicketingAtStatus.TERMINATED; | ||
case CONTINUED -> ShowTicketingAtStatus.CONTINUED; | ||
}; | ||
} | ||
} |
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
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
Oops, something went wrong.