Skip to content

[Feat] 자주 쓰는 카드(사장님 소통 카드) 저장/목록/삭제 API#27

Merged
xYunaL merged 3 commits into
devfrom
feat/#26-card
Jun 7, 2026
Merged

[Feat] 자주 쓰는 카드(사장님 소통 카드) 저장/목록/삭제 API#27
xYunaL merged 3 commits into
devfrom
feat/#26-card

Conversation

@xYunaL

@xYunaL xYunaL commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

🔗 Related Issue

📝 Summary

  • 분석 결과 화면의 카드(주문/재료확인/빼고요청/사장님질문)를 "자주 쓰는 카드"로 저장·목록조회·삭제하는 Card 도메인 추가.
  • 문구 생성은 FE, 서버는 저장만 담당하며, 타입에 따라 저장 형태가 다릅니다(템플릿형은 재료 코드만, AI 사장님 질문은 완성 문구+flag)

🚀 Key Changes

  • 엔드포인트 (/api/v1/cards/saved): POST(저장, 201) · GET(목록, PageResponse, 최신 저장순) · DELETE /{cardId}(204, 본인만·없으면 CARD_NOT_FOUND)
  • 카드 타입 4종: order / ingredient_check / exclude / owner_question(AI 사장님 질문 전용 버튼)
  • 구조화 저장 (언어 전환 대응): 템플릿형(order/check/exclude)은 ingredients(hit 태그 코드, 예 ["is_egg"])만 저장 → FE가 언어별 문장 재렌더 / owner_question은 AI 완성 문구 text{ko,en,ar} + flag 저장(재생성 불가)
  • DB: V6__saved_cards.sql 추가 (마이그레이션, JSONB ingredients/text + flag)
  • 버그 수정: 목록 조회 시 클라이언트 sort 파라미터를 무시(고정 lastSavedAt desc) → Swagger의 ?sort=string 등으로 인한 PropertyReferenceException 500 제거

@xYunaL xYunaL self-assigned this Jun 7, 2026
@xYunaL xYunaL added the ✨ feature New feature or request label Jun 7, 2026
@xYunaL xYunaL linked an issue Jun 7, 2026 that may be closed by this pull request
4 tasks
@xYunaL xYunaL merged commit b959e5a into dev Jun 7, 2026
1 check passed
@xYunaL xYunaL deleted the feat/#26-card branch June 7, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 사장님 소통 카드 저장/목록/삭제 API (저장한 카드)

1 participant