diff --git a/src/main/java/com/umc/naoman/domain/agenda/service/AgendaServiceImpl.java b/src/main/java/com/umc/naoman/domain/agenda/service/AgendaServiceImpl.java index 1d94aa9e..f9f48695 100644 --- a/src/main/java/com/umc/naoman/domain/agenda/service/AgendaServiceImpl.java +++ b/src/main/java/com/umc/naoman/domain/agenda/service/AgendaServiceImpl.java @@ -40,8 +40,8 @@ public Agenda createAgenda(Member member, AgendaRequest.CreateAgendaRequest requ Long shareGroupId = request.getShareGroupId(); ShareGroup shareGroup = shareGroupService.findShareGroup(shareGroupId); Profile profile = shareGroupService.findProfile(shareGroupId, member.getId()); - Agenda newAgenda = agendaConverter.toEntity(profile,request.getTitle(),shareGroup); - agendaPhotoService.saveAgendaPhotoList(newAgenda,request.getAgendasPhotoList()); + Agenda newAgenda = agendaConverter.toEntity(profile, request.getTitle(),shareGroup); + agendaPhotoService.saveAgendaPhotoList(newAgenda, request.getAgendasPhotoList()); return agendaRepository.save(newAgenda); } diff --git a/src/main/java/com/umc/naoman/domain/photo/controller/PhotoController.java b/src/main/java/com/umc/naoman/domain/photo/controller/PhotoController.java index 3a507a18..41ef017c 100644 --- a/src/main/java/com/umc/naoman/domain/photo/controller/PhotoController.java +++ b/src/main/java/com/umc/naoman/domain/photo/controller/PhotoController.java @@ -10,6 +10,7 @@ import com.umc.naoman.global.security.annotation.LoginMember; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.Parameters; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; @@ -56,6 +57,10 @@ public ResultResponse uploadPhotoList(@Valid @Req @GetMapping("/all") @Operation(summary = "특정 공유그룹의 전체 사진 조회 API", description = "특정 공유 그룹의 전체 사진을 조회하는 API입니다.") + @Parameters(value = { + @Parameter(name = "page", description = "조회할 페이지를 입력해 주세요.(0번부터 시작)"), + @Parameter(name = "size", description = "한 페이지에 나타낼 사진 개수를 입력해주세요.") + }) public ResultResponse getAllPhotoListByShareGroup(@RequestParam Long shareGroupId, @PageableDefault(sort = "createdAt", direction = Sort.Direction.DESC) @Parameter(hidden = true) Pageable pageable, diff --git a/src/main/java/com/umc/naoman/domain/photo/converter/PhotoConverter.java b/src/main/java/com/umc/naoman/domain/photo/converter/PhotoConverter.java index 78f7411d..2fbe0dc0 100644 --- a/src/main/java/com/umc/naoman/domain/photo/converter/PhotoConverter.java +++ b/src/main/java/com/umc/naoman/domain/photo/converter/PhotoConverter.java @@ -62,6 +62,7 @@ public PhotoResponse.PhotoInfo toPhotoInfo(Photo photo) { String rawUrl = photo.getUrl(); return PhotoResponse.PhotoInfo.builder() + .photoId(photo.getId()) .rawPhotoUrl(rawUrl) .w200PhotoUrl(createResizedPhotoUrl(rawUrl, W200_PATH_PREFIX)) .w400PhotoUrl(createResizedPhotoUrl(rawUrl, W400_PATH_PREFIX)) diff --git a/src/main/java/com/umc/naoman/domain/photo/dto/PhotoResponse.java b/src/main/java/com/umc/naoman/domain/photo/dto/PhotoResponse.java index 35dad94e..cd5a5538 100644 --- a/src/main/java/com/umc/naoman/domain/photo/dto/PhotoResponse.java +++ b/src/main/java/com/umc/naoman/domain/photo/dto/PhotoResponse.java @@ -56,6 +56,7 @@ public static class PagedPhotoInfo { @AllArgsConstructor @NoArgsConstructor public static class PhotoInfo { + private Long photoId; private String rawPhotoUrl; private String w200PhotoUrl; private String w400PhotoUrl;