From 9f299bb3eadadb35e947c04f082782dcaf097d6e Mon Sep 17 00:00:00 2001 From: TakGyun Date: Thu, 9 Nov 2023 17:26:14 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20DTO,=20Service=20Logic=EC=97=90=20onSit?= =?UTF-8?q?e=20=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/api/danceclass/dto/request/CreateDanceClassDto.java | 3 +++ .../server/api/danceclass/dto/response/GetDanceClassDto.java | 2 ++ .../server/api/danceclass/service/DanceClassService.java | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/main/java/com/dansup/server/api/danceclass/dto/request/CreateDanceClassDto.java b/src/main/java/com/dansup/server/api/danceclass/dto/request/CreateDanceClassDto.java index b699614..9dab7b7 100644 --- a/src/main/java/com/dansup/server/api/danceclass/dto/request/CreateDanceClassDto.java +++ b/src/main/java/com/dansup/server/api/danceclass/dto/request/CreateDanceClassDto.java @@ -90,6 +90,9 @@ public class CreateDanceClassDto { @ApiModelProperty(value = "원데이 클래스에서의 날짜" , example = "2023/5/29") private String date; + @ApiModelProperty(value = "현장 결제 등록" , example = "1") + private boolean onSite; + @ApiModelProperty(value = "수업 예약 링크" , example = "com.googleform.") private String reserveLink; diff --git a/src/main/java/com/dansup/server/api/danceclass/dto/response/GetDanceClassDto.java b/src/main/java/com/dansup/server/api/danceclass/dto/response/GetDanceClassDto.java index 898204d..f86304c 100644 --- a/src/main/java/com/dansup/server/api/danceclass/dto/response/GetDanceClassDto.java +++ b/src/main/java/com/dansup/server/api/danceclass/dto/response/GetDanceClassDto.java @@ -87,6 +87,8 @@ public class GetDanceClassDto { private String endTime; @ApiModelProperty(value = "원데이 클래스에서의 날짜" , example = "2023/5/29") private String date; + @ApiModelProperty(value = "현장 결제 등록" , example = "1") + private boolean onSite; @ApiModelProperty(value = "수업 예약 링크" , example = "com.googleform.") private String reserveLink; diff --git a/src/main/java/com/dansup/server/api/danceclass/service/DanceClassService.java b/src/main/java/com/dansup/server/api/danceclass/service/DanceClassService.java index 297e7d2..c3f58a6 100644 --- a/src/main/java/com/dansup/server/api/danceclass/service/DanceClassService.java +++ b/src/main/java/com/dansup/server/api/danceclass/service/DanceClassService.java @@ -81,6 +81,7 @@ public void createClass(User user, CreateDanceClassDto createDanceClassDto, Mult .endHour(createDanceClassDto.getEndHour()) .endTime(createDanceClassDto.getEndTime()) .date(createDanceClassDto.getDate()) + .onSite(createDanceClassDto.isOnSite()) .reserveLink(createDanceClassDto.getReserveLink()) .state(State.Active) .build(); @@ -174,6 +175,7 @@ public GetDanceClassDto detailClass(Long classId) throws BaseException { .startTime(danceClass.getStartTime()) .endTime(danceClass.getEndTime()) .date(danceClass.getDate()) + .onSite(danceClass.isOnSite()) .reserveLink(danceClass.getReserveLink()) .state(danceClass.getState().toString()) .build();