-
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 #64 from 9oormthon-univ/hyundong
feat :: 복지패스 발급 기능 추가
- Loading branch information
Showing
13 changed files
with
204 additions
and
199 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
24 changes: 24 additions & 0 deletions
24
src/main/java/com/danpoong/onchung/domain/policy/domain/enums/PolicyCategoryConverter.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,24 @@ | ||
package com.danpoong.onchung.domain.policy.domain.enums; | ||
|
||
import jakarta.persistence.AttributeConverter; | ||
import jakarta.persistence.Converter; | ||
|
||
@Converter | ||
public class PolicyCategoryConverter implements AttributeConverter<PolicyCategory, String> { | ||
|
||
@Override | ||
public String convertToDatabaseColumn(PolicyCategory attribute) { | ||
return attribute != null ? attribute.getDisplayName() : null; | ||
} | ||
|
||
@Override | ||
public PolicyCategory convertToEntityAttribute(String dbData) { | ||
for (PolicyCategory category : PolicyCategory.values()) { | ||
if (category.getDisplayName().equals(dbData)) { | ||
return category; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unknown display name: " + dbData); | ||
} | ||
} | ||
|
24 changes: 24 additions & 0 deletions
24
src/main/java/com/danpoong/onchung/domain/policy/domain/enums/PolicyPath.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,24 @@ | ||
package com.danpoong.onchung.domain.policy.domain.enums; | ||
|
||
public enum PolicyPath { | ||
예비창업자(1), | ||
공정한근로(2), | ||
커리어(3), | ||
첫보금자리(4), | ||
자취생활(5), | ||
미래를향한(6), | ||
문화(7), | ||
쉼표(8), | ||
함께(9), | ||
권리(10); | ||
|
||
private final int number; | ||
|
||
PolicyPath(int number) { | ||
this.number = number; | ||
} | ||
|
||
public int getNumber() { | ||
return number; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/danpoong/onchung/domain/policy/dto/PolicyPathRequestDto.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,10 @@ | ||
package com.danpoong.onchung.domain.policy.dto; | ||
|
||
public record PolicyPathRequestDto( | ||
String birthDate, | ||
String educationStatus, | ||
String employmentStatus, | ||
String baseInfo, | ||
String interestTopic | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/danpoong/onchung/domain/policy/dto/PolicyPathResponseDto.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,9 @@ | ||
package com.danpoong.onchung.domain.policy.dto; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record PolicyPathResponseDto( | ||
int policyPathNum | ||
) { | ||
} |
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.