feat: 카드 결제 알림 자동인식(미확인 내역) 백엔드
- account_entry pending/notif_key 컬럼 추가(멱등 마이그레이션)
- CardNotificationParser: 카드사·금액·가맹점·승인/취소 파싱
- POST /entries/notification(미확인 지출 생성, 중복방지, 카드 자동매칭)
- POST /entries/{id}/confirm(확정), GET /entries/pending/count
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
c1f97364aa
commit
8fec057752
@@ -59,6 +59,17 @@ public interface AccountEntryMapper {
|
||||
|
||||
int delete(@Param("id") Long id, @Param("memberId") Long memberId);
|
||||
|
||||
/* ----- 알림 자동인식(미확인) ----- */
|
||||
/** 중복방지 키로 기존 알림 내역 조회 */
|
||||
AccountEntry findByMemberAndNotifKey(@Param("memberId") Long memberId, @Param("notifKey") String notifKey);
|
||||
|
||||
/** 미확인(확인 필요) 내역 개수 */
|
||||
int countPending(@Param("memberId") Long memberId);
|
||||
|
||||
/** 미확인 내역 확정 (pending=0, 분류/계좌 보정) */
|
||||
int confirm(@Param("id") Long id, @Param("memberId") Long memberId,
|
||||
@Param("category") String category, @Param("walletId") Long walletId);
|
||||
|
||||
/** 기존 내역의 (type별) 사용된 분류명 distinct (분류 불러오기용) */
|
||||
List<String> findDistinctCategories(@Param("memberId") Long memberId, @Param("type") String type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user