-
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
1 parent
ad103fd
commit 36aadd5
Showing
2 changed files
with
51 additions
and
3 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
38 changes: 38 additions & 0 deletions
38
src/main/java/org/sopt/sopkerton/program/dto/response/ProgramDetailResponse.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,38 @@ | ||
package org.sopt.sopkerton.program.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public abstract class ProgramDetailResponse { | ||
|
||
public record VolunteerDetail( | ||
@JsonProperty("imageUrl") | ||
String imageUrl, | ||
@JsonProperty("content") | ||
String content, | ||
@JsonProperty("organizationName") | ||
String organizationName, | ||
@JsonProperty("registerAt") | ||
String registerAt, | ||
@JsonProperty("hour") | ||
int hour, | ||
@JsonProperty("isApply") | ||
boolean isApply | ||
) { | ||
} | ||
|
||
public record EmploymentDetail( | ||
@JsonProperty("imageUrl") | ||
String imageUrl, | ||
@JsonProperty("content") | ||
String content, | ||
@JsonProperty("organizationName") | ||
String organizationName, | ||
@JsonProperty("registerAt") | ||
String registerAt, | ||
@JsonProperty("salary") | ||
int salary, | ||
@JsonProperty("isApply") | ||
boolean isApply | ||
) { | ||
} | ||
} |