-
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.
Merge pull request #64 from Team-KeepGoing/refactor
Refactor :: code refactor
- Loading branch information
Showing
9 changed files
with
27 additions
and
36 deletions.
There are no files selected for viewing
23 changes: 12 additions & 11 deletions
23
src/main/java/com/keepgoing/keepserver/domain/book/payload/request/BookDto.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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
package com.keepgoing.keepserver.domain.book.payload.request; | ||
|
||
import com.keepgoing.keepserver.domain.book.entity.enums.BookState; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Setter | ||
public class BookDto { | ||
private long id; | ||
private String bookName; | ||
private String writer; | ||
private String imageUrl; | ||
private String nfcCode; | ||
private LocalDateTime registrationDate; | ||
private LocalDateTime rentDate; | ||
private BookState state; | ||
@Builder | ||
public record BookDto ( | ||
Long id, | ||
String bookName, | ||
String writer, | ||
String imageUrl, | ||
String nfcCode, | ||
LocalDateTime registrationDate, | ||
LocalDateTime rentDate, | ||
BookState state | ||
) { | ||
} |
14 changes: 8 additions & 6 deletions
14
src/main/java/com/keepgoing/keepserver/domain/book/payload/request/BookRequestDto.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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.keepgoing.keepserver.domain.book.payload.request; | ||
|
||
import com.keepgoing.keepserver.domain.book.entity.enums.BookState; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class BookRequestDto { | ||
private String name; | ||
private String nfcCode; | ||
private String imageUrl; | ||
private BookState state; | ||
@Builder | ||
public record BookRequestDto ( | ||
String name, | ||
String nfcCode, | ||
String imageUrl, | ||
BookState state | ||
){ | ||
} |
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
15 changes: 0 additions & 15 deletions
15
src/main/java/com/keepgoing/keepserver/global/config/SpringConfig.java
This file was deleted.
Oops, something went wrong.
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