forked from UMC-EWHA/umc-spring-3rd
-
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.
- Loading branch information
Showing
9 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
umcAssignment/src/main/java/cje/umcAssignment/controller/PostController.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
2 changes: 1 addition & 1 deletion
2
...n/java/cje/umcAssignment/domain/Post.java → ...in/java/cje/umcAssignment/model/Post.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
3 changes: 1 addition & 2 deletions
3
.../umcAssignment/domain/PostRequestDto.java → ...e/umcAssignment/model/PostRequestDto.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
2 changes: 1 addition & 1 deletion
2
...umcAssignment/domain/PostResponseDto.java → .../umcAssignment/model/PostResponseDto.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
25 changes: 25 additions & 0 deletions
25
umcAssignment/src/main/java/cje/umcAssignment/model/SearchDto.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,25 @@ | ||
package cje.umcAssignment.model; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
// paging을 위해 | ||
@Getter @Setter | ||
public class SearchDto { | ||
private int page; // 현재 페이지 번호 | ||
private int recordSize; // 페이지당 출력할 데이터 개수 | ||
private int pageSize; // 화면 하단에 출력할 페이지 사이즈 | ||
private String keyword; // 검색 키워드 | ||
private String SearchType; // 검색 유형 | ||
|
||
// 생성자 | ||
public SearchDto(){ | ||
this.page = 1; | ||
this.recordSize = 10; | ||
this.pageSize = 10; | ||
} | ||
|
||
public int getOffset() { | ||
return (page-1) * recordSize; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
umcAssignment/src/main/java/cje/umcAssignment/repository/PostRepository.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
2 changes: 1 addition & 1 deletion
2
umcAssignment/src/main/java/cje/umcAssignment/repository/SpringDataJpaPostRepository.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
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
7 changes: 3 additions & 4 deletions
7
umcAssignment/src/main/java/cje/umcAssignment/service/PostServiceImpl.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