feat: 날씨 점수 하락 주요 원인 지수 응답 추가#58
Open
heyoonyoon wants to merge 1 commit into
Open
Conversation
- ScoreBuilder/WeatherScore 도입: 가중 기여도 기반으로 점수 산출과 주요 원인 지수(가중 기여 20점 이상, 영향 큰 순 최대 2개)를 함께 반환 - 전체 질환 룰의 evaluateWeatherScore를 builder 방식으로 교체 - RiskAnalysisResult.RiskDetail에 scoreFactors(List<String>) 필드 추가 - AnalysisController 응답 필드 문서 갱신
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
질환별 날씨 점수와 함께, 점수를 크게 깎은 주요 날씨 지수(예: 초미세먼지)를 프론트에 내려줍니다.
동작
ScoreBuilder로 지수별 가중 기여도를 누적scoreFactors로 노출 (이름만, 값 미노출)변경
ScoreBuilder/WeatherScore신규evaluateWeatherScorebuilder 방식으로 교체 (점수 산출 로직 동일)RiskAnalysisResult.RiskDetail.scoreFactors필드 추가응답 예시
{ "diseaseName": "심장질환", "weatherScore": 62, "scoreFactors": ["초미세먼지", "기온"], "factorGuides": [ ... ] }