Search in sources :

Example 1 with LevelResponse

use of wooteco.prolog.studylog.application.dto.LevelResponse in project prolog by woowacourse.

the class FilterController method showAll.

@GetMapping
public ResponseEntity<FilterResponse> showAll() {
    List<LevelResponse> levelResponses = levelService.findAll();
    List<MissionResponse> missionResponses = missionService.findAll();
    List<TagResponse> tagResponses = tagService.findTagsIncludedInStudylogs();
    List<MemberResponse> memberResponses = memberService.findAll();
    return ResponseEntity.ok().body(new FilterResponse(levelResponses, missionResponses, tagResponses, memberResponses));
}
Also used : MemberResponse(wooteco.prolog.member.application.dto.MemberResponse) MissionResponse(wooteco.prolog.studylog.application.dto.MissionResponse) TagResponse(wooteco.prolog.studylog.application.dto.TagResponse) FilterResponse(wooteco.prolog.studylog.application.dto.FilterResponse) LevelResponse(wooteco.prolog.studylog.application.dto.LevelResponse) GetMapping(org.springframework.web.bind.annotation.GetMapping)

Aggregations

GetMapping (org.springframework.web.bind.annotation.GetMapping)1 MemberResponse (wooteco.prolog.member.application.dto.MemberResponse)1 FilterResponse (wooteco.prolog.studylog.application.dto.FilterResponse)1 LevelResponse (wooteco.prolog.studylog.application.dto.LevelResponse)1 MissionResponse (wooteco.prolog.studylog.application.dto.MissionResponse)1 TagResponse (wooteco.prolog.studylog.application.dto.TagResponse)1