Skip to content

Commit

Permalink
feat : 캘린더 관련 API 에 신청 방법 분류하는 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
LHS-11 committed Feb 18, 2024
1 parent 5ca8652 commit 0a51089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public List<CalendarPolicyListResponseDto> getPolicyListBySearchMonth(User user,
CalendarPolicyListResponseDto dto = CalendarPolicyListResponseDto.builder()
.policyId(policy.getId())
.policyName(policy.getPolicyName())
.applyProcedure("더미데이터 (방문신청, 우편신청, 홈페이지 신청등)")
.applyProcedure(PolicyMethodType.findPolicyMethodTypeByKeywords(policy.getApplicationProcedureContent()))
.policyAgencyLogo(imageClassifier.getLogo(policy))
.applySttDate(policy.getApplySttDate())
.applyEndDate(policy.getApplyEndDate())
Expand Down Expand Up @@ -208,7 +208,7 @@ public List<CalendarPolicyListResponseDto> getPolicyListBySearchDate(User user,
CalendarPolicyListResponseDto dto = CalendarPolicyListResponseDto.builder()
.policyId(policy.getId())
.policyName(policy.getPolicyName())
.applyProcedure("더미데이터 (방문신청, 우편신청, 홈페이지 신청등)")
.applyProcedure(PolicyMethodType.findPolicyMethodTypeByKeywords(policy.getApplicationProcedureContent()))
.policyAgencyLogo(imageClassifier.getLogo(policy))
.applySttDate(policy.getApplySttDate())
.applyEndDate(policy.getApplyEndDate())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.cmc.zenefitserver.domain.policy.dto.response;

import com.cmc.zenefitserver.domain.policy.domain.enums.DenialReasonType;
import com.cmc.zenefitserver.domain.policy.domain.enums.PolicyMethodType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
Expand All @@ -23,7 +24,7 @@ public class CalendarPolicyListResponseDto {
private boolean applyStatus;

@ApiModelProperty(notes = "정책 신청 방법", example = "방문 신청, 우편 신청, 홈페이지 신청")
private String applyProcedure;
private PolicyMethodType applyProcedure;

@ApiModelProperty(notes = "정책 기관 로고 url")
private String policyAgencyLogo;
Expand All @@ -43,7 +44,7 @@ public void upgradeApplyStatus(DenialReasonType denialReasonType) {
}

@Builder
public CalendarPolicyListResponseDto(Long policyId, String policyName, boolean applyStatus, String applyProcedure, String policyAgencyLogo, LocalDate applySttDate, LocalDate applyEndDate) {
public CalendarPolicyListResponseDto(Long policyId, String policyName, boolean applyStatus, PolicyMethodType applyProcedure, String policyAgencyLogo, LocalDate applySttDate, LocalDate applyEndDate) {
this.policyId = policyId;
this.policyName = policyName;
this.applyStatus = applyStatus;
Expand Down

0 comments on commit 0a51089

Please sign in to comment.