-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add: BooktalkCreateRequestDto, ResponseDto 추가 * feat: POST 북토크 생성 구현 * add: BooktalkUpdateDto 추가 * modify: Booktalk에 patchBooktalk추가 * feat: PATCH 북토크 수정하기 구현 * fix: 북토크 생성 시 member와 place 연결 * add: BooktalkDeleteResponseDto 추가 * modify: Author와 Booktalk에 deleteBooktalk 추가 * feat: DELETE 북토크 삭제 구현 * feat: GET 북토크 상세조회 구현 * feat: GET 마감임박 북토크 모아보기 조회 구현
- Loading branch information
Showing
4 changed files
with
61 additions
and
8 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
30 changes: 30 additions & 0 deletions
30
src/main/java/org/sophy/sophy/controller/dto/response/BooktalkDeadlineUpcomingDto.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,30 @@ | ||
package org.sophy.sophy.controller.dto.response; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.sophy.sophy.domain.Booktalk; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class BooktalkDeadlineUpcomingDto { | ||
private Long booktalkId; | ||
private String title; | ||
private LocalDateTime startDate; | ||
private LocalDateTime endDate; | ||
private String PlaceName; | ||
private String PlaceAddress; | ||
|
||
public static BooktalkDeadlineUpcomingDto of(Booktalk booktalk) { | ||
return new BooktalkDeadlineUpcomingDto( | ||
booktalk.getId(), | ||
booktalk.getTitle(), | ||
booktalk.getStartDate(), | ||
booktalk.getEndDate(), | ||
booktalk.getPlace().getName(), | ||
booktalk.getPlace().getAddress() | ||
); | ||
} | ||
} |
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