Skip to content

[Feat] 스캔 이력 목록 조회/제목 수정/이력 삭제 API 구현#25

Merged
xYunaL merged 5 commits into
devfrom
feat/#24-history
Jun 6, 2026
Merged

[Feat] 스캔 이력 목록 조회/제목 수정/이력 삭제 API 구현#25
xYunaL merged 5 commits into
devfrom
feat/#24-history

Conversation

@xYunaL

@xYunaL xYunaL commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

🔗 Related Issue

📝 Summary

  • 마이페이지, 메인의 스캔 이력 화면을 위한 스캔 이력 목록 조회 / 제목 수정 / 삭제 API를 추가.
  • 목록은 분석이 끝난(completed) 스캔만 노출.
  • 공통 페이징 래퍼(PageResponse)를 도입.
  • 로컬 Swagger 수동 테스트를 위한 더미 데이터 시더도 포함.

🚀 Key Changes

  • GET /api/v1/scans — 본인 스캔 이력 목록(최신순, PageResponse). completed만 노출
  • PATCH /api/v1/scans/{scanId} — 제목 수정({title} 1~255자)
  • DELETE /api/v1/scans/{scanId} — 204, 연관 menu_images/menu_analyses는 FK ON DELETE CASCADE로 함께 삭제
  • 공통 페이징 래퍼 PageResponse({items, page, size, totalElements, totalPages}) + ScanHistoryItem/UpdateScanTitleRequest DTO 추가

💥 Breaking Changes

  • 없음 — 기존 엔드포인트(POST /scans, GET /scans/{scanId}) 시그니처·동작 변경 없음. DB 스키마 변경 없음(마이그레이션 추가 없음, 기존 FK CASCADE 활용)

@xYunaL xYunaL self-assigned this Jun 6, 2026
@xYunaL xYunaL added the ✨ feature New feature or request label Jun 6, 2026
@xYunaL xYunaL linked an issue Jun 6, 2026 that may be closed by this pull request
4 tasks
@xYunaL xYunaL changed the title Feat/#24 history [Feat] 스캔 이력 목록 조회/제목 수정/이력 삭제 API 구현 Jun 6, 2026
@xYunaL xYunaL merged commit c304c09 into dev Jun 6, 2026
1 check passed
@xYunaL xYunaL deleted the feat/#24-history branch June 6, 2026 20:39
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