Skip to content

Commit

Permalink
fix: 태그와 멤버 필터 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
gracefulBrown committed Dec 26, 2024
1 parent 251821f commit 899af12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,24 @@
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import wooteco.prolog.login.ui.LoginMember;
import wooteco.prolog.member.application.MemberService;
import wooteco.prolog.member.application.dto.MemberResponse;
import wooteco.prolog.session.application.MissionService;
import wooteco.prolog.session.application.SessionService;
import wooteco.prolog.session.application.dto.MissionResponse;
import wooteco.prolog.session.application.dto.SessionResponse;
import wooteco.prolog.studylog.application.dto.FilterResponse;
import wooteco.prolog.studylog.application.dto.TagResponse;

@Service
@AllArgsConstructor
public class FilterService {

private final SessionService sessionService;
private final MissionService missionService;
private final TagService tagService;
private final MemberService memberService;

public FilterResponse showAll(LoginMember loginMember) {
List<SessionResponse> sessionResponses = sessionService.findAllWithMySessionFirst(
loginMember); // my session으로 대체
List<MissionResponse> missionResponses = missionService.findAllWithMyMissionFirst(
loginMember);
List<TagResponse> tagResponses = tagService.findTagsIncludedInStudylogs();
List<MemberResponse> memberResponses = memberService.findAllOrderByNickNameAsc();
return new FilterResponse(sessionResponses, missionResponses, tagResponses,
memberResponses);
return new FilterResponse(sessionResponses, missionResponses);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import wooteco.prolog.member.application.dto.MemberResponse;
import wooteco.prolog.session.application.dto.MissionResponse;
import wooteco.prolog.session.application.dto.SessionResponse;

Expand All @@ -15,6 +14,4 @@ public class FilterResponse {

private List<SessionResponse> sessions;
private List<MissionResponse> missions;
private List<TagResponse> tags;
private List<MemberResponse> members;
}

0 comments on commit 899af12

Please sign in to comment.