Skip to content

Commit

Permalink
feat: 환율 알림 리스트 삭제 api 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
ny2060 committed Jun 10, 2024
1 parent 3ae690a commit 775f066
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ public BaseResponse<List<ExchangeRateAlarmResponseDto>> getExchangeRateAlarmList
return BaseResponse.res(ResponseStatus.SUCCESS,ResponseStatus.SUCCESS.getMessage(),exchangeService.getExchangeRateAlarmList(memberIdx));
}

@DeleteMapping("/exchange-rate/{memberIdx}")
public BaseResponse deleteAlarm(@PathVariable("memberIdx") Long memberIdx){
exchangeService.deleteAlarm(memberIdx);
return BaseResponse.res(ResponseStatus.SUCCESS,ResponseStatus.SUCCESS.getMessage());
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,11 @@ public void resetNotifiedFlags() {
}
}


@Transactional
public void deleteAlarm(Long memberIdx) {
ExchangeRateAlarm exchangeRateAlarm = exchangeRateAlarmRepository.findExchangeRateAlarmByMember_MemberIdx(memberIdx);
exchangeRateAlarmRepository.delete(exchangeRateAlarm);
}

}

0 comments on commit 775f066

Please sign in to comment.