Repository navigation
feat: 식단 슬롯 단위 조정 API 추가 - #490
Merged
Merged
Conversation
📊 테스트 커버리지 리포트
|
Member
|
확인했습니다! |
2 tasks
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.
한 줄 요약
크롤러가 한 식단 슬롯의 여러 코너를 한 요청으로 안전하게 동기화할 수 있는 PUT API를 추가했습니다.
리뷰어가 할 일
왜 필요한가
크롤러는 같은 슬롯을 다시 수집할 수 있습니다.
학생식당 중식1/2/3처럼 한 슬롯에 여러 코너가 있으면 전체 목록을 슬롯 단위로 upsert해야 합니다.
LLM이 메뉴 이름을 다르게 만들면 기존 코너와 새 코너를 구분하고 불필요한 식단을 정리해야 합니다.
무엇이 바뀌나
상세 내용
API 명세
PUT /meals/with-price/slot?date=20260101&restaurant=HAKSIK&time=LUNCH
요청 예시:
[ { "menuNames": ["돈까스", "김치"], "price": 5000, "mainMenus": [ {"nameKo": "돈까스", "nameEn": "Pork Cutlet"} ] }, { "menuNames": ["제육볶음"], "price": 5500, "mainMenus": null } ]응답 result 예시:
{ "mealIds": [101, 102], "unmatchedMainMenus": [[], []], "deletedMealIds": [99], "keptWithReviews": [100] }안전 규칙
테스트