Skip to content

Commit

Permalink
refactor(ActivityGroupMemberController, Service): 불필요한 responseDto 삭제…
Browse files Browse the repository at this point in the history
… 및 명확한 리턴타입 명시 #455
  • Loading branch information
mingmingmon committed Aug 12, 2024
1 parent d8bdcaa commit 2541728
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import page.clab.api.domain.activity.activitygroup.domain.ActivityGroupStatus;
import page.clab.api.domain.activity.activitygroup.dto.param.GroupScheduleDto;
import page.clab.api.domain.activity.activitygroup.dto.request.ApplyFormRequestDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupDetailResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupStatusResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.GroupMemberResponseDto;
Expand Down Expand Up @@ -57,10 +58,10 @@ public ApiResponse<PagedResponseDto<ActivityGroupResponseDto>> getActivityGroups
@Operation(summary = "[U] 활동 상세 조회", description = "ROLE_ANONYMOUS 이상의 권한이 필요함")
@PreAuthorize("hasRole('USER')")
@GetMapping("/{activityGroupId}")
public ApiResponse<Object> getActivityGroup(
public ApiResponse<ActivityGroupDetailResponseDto> getActivityGroup(
@PathVariable(name = "activityGroupId") Long activityGroupId
) {
Object activityGroup = activityGroupMemberService.getActivityGroup(activityGroupId);
ActivityGroupDetailResponseDto activityGroup = activityGroupMemberService.getActivityGroup(activityGroupId);
return ApiResponse.success(activityGroup);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@
import page.clab.api.domain.activity.activitygroup.dto.request.ApplyFormRequestDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupBoardResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupDetailResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupProjectResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupStatusResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.ActivityGroupStudyResponseDto;
import page.clab.api.domain.activity.activitygroup.dto.response.GroupMemberResponseDto;
import page.clab.api.domain.activity.activitygroup.exception.AlreadyAppliedException;
import page.clab.api.domain.activity.activitygroup.exception.InvalidCategoryException;
Expand Down Expand Up @@ -61,7 +59,7 @@ public PagedResponseDto<ActivityGroupResponseDto> getActivityGroups(Pageable pag
}

@Transactional(readOnly = true)
public Object getActivityGroup(Long activityGroupId) {
public ActivityGroupDetailResponseDto getActivityGroup(Long activityGroupId) {
ActivityGroupDetails details = activityGroupDetailsRepository.fetchActivityGroupDetails(activityGroupId);
Member currentMember = externalRetrieveMemberUseCase.getCurrentMember();

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 2541728

Please sign in to comment.