-
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 #87 from study-hub-inu/refactor/SH-317-apply
Refactor/sh 317 apply
- Loading branch information
Showing
12 changed files
with
232 additions
and
97 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
20 changes: 20 additions & 0 deletions
20
src/main/java/kr/co/studyhubinu/studyhubserver/apply/dto/data/RequestApplyData.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,20 @@ | ||
package kr.co.studyhubinu.studyhubserver.apply.dto.data; | ||
|
||
import kr.co.studyhubinu.studyhubserver.apply.enums.Inspection; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RequestApplyData { | ||
|
||
private final Long studyId; | ||
private final String studyTitle; | ||
private final Inspection inspection; | ||
private final String introduce; | ||
|
||
public RequestApplyData(Long studyId, String studyTitle, Inspection inspection, String introduce) { | ||
this.studyId = studyId; | ||
this.studyTitle = studyTitle; | ||
this.inspection = inspection; | ||
this.introduce = introduce; | ||
} | ||
} |
7 changes: 5 additions & 2 deletions
7
src/main/java/kr/co/studyhubinu/studyhubserver/apply/dto/request/FindApplyRequest.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,15 +1,18 @@ | ||
package kr.co.studyhubinu.studyhubserver.apply.dto.request; | ||
|
||
import kr.co.studyhubinu.studyhubserver.apply.enums.Inspection; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class FindApplyRequest { | ||
|
||
private Long studyId; | ||
private final Long studyId; | ||
private final Inspection inspection; | ||
|
||
@Builder | ||
public FindApplyRequest(Long studyId) { | ||
public FindApplyRequest(Long studyId, Inspection inspection) { | ||
this.studyId = studyId; | ||
this.inspection = inspection; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
.../java/kr/co/studyhubinu/studyhubserver/apply/dto/response/FindMyRequestApplyResponse.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,18 @@ | ||
package kr.co.studyhubinu.studyhubserver.apply.dto.response; | ||
|
||
import kr.co.studyhubinu.studyhubserver.apply.dto.data.ParticipateApplyData; | ||
import kr.co.studyhubinu.studyhubserver.apply.dto.data.RequestApplyData; | ||
import lombok.Getter; | ||
import org.springframework.data.domain.Slice; | ||
|
||
@Getter | ||
public class FindMyRequestApplyResponse { | ||
|
||
private Long totalCount; | ||
Slice<RequestApplyData> requestStudyData; | ||
|
||
public FindMyRequestApplyResponse(Long totalCount, Slice<RequestApplyData> requestStudyData) { | ||
this.totalCount = totalCount; | ||
this.requestStudyData = requestStudyData; | ||
} | ||
} |
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.