GiPyoo / inandout

KISA hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Account Service 구현

Bellroute opened this issue · comments

  • 가상 계좌 생성, 수정 , 삭제, 조회, 리스트 조회( input - 카테고리)
  • 입출금 (input - 카테고리, 입출금 여부, 금액)
  • 계좌 조회 (input - 카테고리 / output - 히스토리)

자산관리창 요청-> api 가져오는 서비스 getAccountAPI -> 바뀐내용이 있으면(LocalDateTime으로 최신 비교해서 체크) -> 계산해서 가상계좌 분류된데서 출금하고 db에 저장

TimeUtils.isNeedUpdate
병재 : isNeedUpdate( LocalDateTime userLatestTime , LocalDateTime accountLatestTime ){

// 업데이트 필요시 true
// 필요 없을시 false
}

AccountService.입금(VirtualAccount from, VirtualAccount to, Long money){
// from계좌에서 money만큼빼기
// from계좌의 출금 history 생성
// to 계좌로 money만큼 더하기
// to 계좌의 입금 history 생성
}

출금도 상동