-
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
8 changed files
with
46 additions
and
20 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
11 changes: 11 additions & 0 deletions
11
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.gongjakso.server.domain.apply.dto; | ||
|
||
import com.gongjakso.server.domain.apply.entity.Apply; | ||
|
||
public record ApplyList( | ||
Long apply_id, | ||
String name, | ||
String 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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/gongjakso/server/domain/apply/dto/ApplyRes.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 com.gongjakso.server.domain.apply.dto; | ||
|
||
import com.gongjakso.server.domain.apply.entity.Apply; | ||
import com.gongjakso.server.domain.post.entity.Post; | ||
|
||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
public record ApplyRes( | ||
LocalDateTime startDate, | ||
LocalDateTime endDate, | ||
Long max_person, | ||
int current_person, | ||
List<ApplyList> apply_list | ||
) { | ||
public static ApplyRes of(Post post, Apply apply,int current_person,List<ApplyList> apply_list){ | ||
return new ApplyRes(post.getStartDate(),post.getEndDate(),post.getMaxPerson(),current_person,apply_list); | ||
} | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/com/gongjakso/server/domain/apply/dto/OpenReq.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
src/main/java/com/gongjakso/server/domain/apply/dto/PassReq.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
src/main/java/com/gongjakso/server/domain/apply/dto/StateReq.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