Skip to content

Commit

Permalink
refactor: 동아리 멤버 전체조회 및 특정 멤버 상세조회 컨트롤러 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Nov 20, 2024
1 parent d924c65 commit 1d7ae00
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.validation.Valid;
import leets.weeth.domain.user.application.dto.response.UserResponseDto.SummaryResponse;
import leets.weeth.domain.user.application.usecase.UserManageUseCase;
import leets.weeth.domain.user.application.usecase.UserUseCase;
import leets.weeth.domain.user.domain.service.UserGetService;
Expand Down Expand Up @@ -58,10 +59,17 @@ public CommonResponse<Boolean> checkEmail(@RequestParam String email) {

@GetMapping("/all")
@Operation(summary="동아리 멤버 전체 조회(전체/기수별)")
public CommonResponse<Map<Integer, List<Response>>> findAll() {
return CommonResponse.createSuccess(USER_FIND_ALL_SUCCESS.getMessage(), userUseCase.findAll());
public CommonResponse<Map<Integer, List<SummaryResponse>>> findAllUser() {
return CommonResponse.createSuccess(USER_FIND_ALL_SUCCESS.getMessage(), userUseCase.findAllUser());
}
@GetMapping("/details")
@Operation(summary = "특정 멤버 상세 조회")
public CommonResponse<Response> findUser(@RequestParam Long userId) {
return CommonResponse.createSuccess(
USER_DETAILS_SUCCESS.getMessage(),
userUseCase.findUserDetails(userId)
);
}

@GetMapping
@Operation(summary="내 정보 조회")
public CommonResponse<Response> find(@Parameter(hidden = true) @CurrentUser Long userId) {
Expand Down

0 comments on commit 1d7ae00

Please sign in to comment.