Skip to content

Commit

Permalink
refactor/#368 : MonthlyTargetPort 제거 하고, MemberPort에 해당 메서드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangdaesun committed Jul 13, 2024
1 parent d95132b commit 664b284
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.adapter.out.jpa.nutritionist.MonthlyTargetPort;
import com.gaebaljip.exceed.application.domain.member.Member;
import com.gaebaljip.exceed.application.domain.member.MemberEntity;
import com.gaebaljip.exceed.application.port.out.member.MemberPort;
Expand All @@ -17,7 +16,7 @@

@Component
@RequiredArgsConstructor
public class MemberPersistenceAdapter implements MemberPort, MonthlyTargetPort {
public class MemberPersistenceAdapter implements MemberPort {

private final MemberRepository memberRepository;
private final MemberConverter memberConverter;
Expand All @@ -34,7 +33,6 @@ public MemberEntity command(MemberEntity memberEntity) {
return memberRepository.save(memberEntity);
}

/** 회원 수정 기능 구현 후 -> Map<LocalDate date, MemberModel> 변경 */
@Override
public Member query(Long memberId, LocalDateTime date) {
MemberEntity memberEntity =
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@

import org.springframework.stereotype.Component;

import com.gaebaljip.exceed.application.domain.member.Member;
import com.gaebaljip.exceed.application.domain.member.MemberEntity;

@Component
public interface MemberPort {

MemberEntity query(Long memberId);

Member query(Long memberId, LocalDateTime date);

MemberEntity command(MemberEntity memberEntity);

Boolean isChecked(String email);
Expand Down

0 comments on commit 664b284

Please sign in to comment.