Skip to content

Commit

Permalink
feat: DTO, Service Logic에 onSite 컬럼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTakGyun committed Nov 9, 2023
1 parent 5a0914a commit 9f299bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 9f299bb

Please sign in to comment.