-
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
17 changed files
with
331 additions
and
111 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
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
12 changes: 10 additions & 2 deletions
12
src/main/java/com/gongjakso/server/domain/apply/dto/ApplyList.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,13 +1,21 @@ | ||
package com.gongjakso.server.domain.apply.dto; | ||
|
||
import com.gongjakso.server.domain.apply.entity.Apply; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
public record ApplyList( | ||
Long apply_id, | ||
String name, | ||
String state | ||
String state, | ||
Boolean is_canceled | ||
) { | ||
public static ApplyList of(Apply apply,String state){ | ||
return new ApplyList(apply.getApplyId(),apply.getMember().getName(),state); | ||
return ApplyList.builder() | ||
.apply_id(apply.getApplyId()) | ||
.name(apply.getMember().getName()) | ||
.state(state) | ||
.is_canceled(apply.getIsCanceled()) | ||
.build(); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/com/gongjakso/server/domain/apply/dto/PatchApplyRes.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,36 @@ | ||
package com.gongjakso.server.domain.apply.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.gongjakso.server.domain.apply.entity.Apply; | ||
import com.gongjakso.server.domain.apply.enumerate.ApplyType; | ||
import com.gongjakso.server.domain.apply.enumerate.PostType; | ||
import com.gongjakso.server.domain.member.entity.Member; | ||
import lombok.Builder; | ||
|
||
@Builder | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public record PatchApplyRes( | ||
Long applyId, | ||
Long memberId, | ||
String memberName, | ||
Long postId, | ||
String application, | ||
String recruitPart, | ||
PostType type, | ||
ApplyType applyType, | ||
Boolean isCanceled | ||
) { | ||
|
||
public static PatchApplyRes of(Apply apply, Member member) { | ||
return PatchApplyRes.builder() | ||
.applyId(apply.getApplyId()) | ||
.memberId(apply.getMember().getMemberId()) | ||
.memberName(member.getName()) | ||
.postId(apply.getPost().getPostId()) | ||
.application(apply.getApplication()) | ||
.applyType(apply.getApplyType()) | ||
.recruitPart(apply.getRecruit_part()) | ||
.isCanceled(apply.getIsCanceled()) | ||
.build(); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/com/gongjakso/server/domain/apply/dto/PeriodReq.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,8 +1,8 @@ | ||
package com.gongjakso.server.domain.apply.dto; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.LocalDate; | ||
|
||
public record PeriodReq( | ||
LocalDateTime finishDate | ||
LocalDate finishDate | ||
) { | ||
} |
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.