-
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 #19 from Kusitms-28th-Meet-Up-B/feature/manager
관리자 대시보드 API 생성
- Loading branch information
Showing
10 changed files
with
285 additions
and
4 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
19 changes: 19 additions & 0 deletions
19
src/main/java/kusitms/gallae/dto/program/ProgramManagerReq.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,19 @@ | ||
package kusitms.gallae.dto.program; | ||
|
||
|
||
import kusitms.gallae.domain.Program; | ||
import kusitms.gallae.domain.User; | ||
import lombok.Data; | ||
import org.springframework.data.domain.Pageable; | ||
|
||
@Data | ||
public class ProgramManagerReq { | ||
|
||
private String programType; | ||
|
||
private Program.ProgramStatus status; | ||
|
||
private User user; | ||
|
||
private Pageable pageable; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/kusitms/gallae/dto/program/ProgramManagerRes.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,16 @@ | ||
package kusitms.gallae.dto.program; | ||
|
||
|
||
import lombok.Data; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Data | ||
public class ProgramManagerRes { | ||
private Long id; | ||
private String title; | ||
private Long viewCount; | ||
private Long like; | ||
private LocalDate recruitStartDate; | ||
private LocalDate recuritEndDate; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/kusitms/gallae/dto/program/ProgramPageMangagerRes.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,13 @@ | ||
package kusitms.gallae.dto.program; | ||
|
||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class ProgramPageMangagerRes { | ||
|
||
private Integer totalSize; | ||
private List<ProgramManagerRes> programs; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/java/kusitms/gallae/repository/program/ProgramRepositoryCustom.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,10 +1,13 @@ | ||
package kusitms.gallae.repository.program; | ||
|
||
import kusitms.gallae.domain.Program; | ||
import kusitms.gallae.dto.program.ProgramManagerReq; | ||
import kusitms.gallae.dto.program.ProgramSearchReq; | ||
import org.springframework.data.domain.Page; | ||
|
||
public interface ProgramRepositoryCustom { | ||
|
||
Page<Program> getDynamicSearch(ProgramSearchReq programSearchReq); | ||
|
||
Page<Program> getDynamicMananger(ProgramManagerReq programManagerReq); | ||
} |
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
Oops, something went wrong.