diff --git a/src/main/java/com/pictalk/group/controller/GroupController.java b/src/main/java/com/pictalk/group/controller/GroupController.java index d96895b..3b24454 100644 --- a/src/main/java/com/pictalk/group/controller/GroupController.java +++ b/src/main/java/com/pictalk/group/controller/GroupController.java @@ -5,6 +5,7 @@ import com.pictalk.group.domain.Group; import com.pictalk.group.dto.GroupRequestDto.CreateGroupRequest; import com.pictalk.group.dto.GroupRequestDto.UpdateGroupRequest; +import com.pictalk.group.dto.GroupResponseDto.CreateGroupResponse; import com.pictalk.group.service.GroupService; import io.swagger.v3.oas.annotations.Operation; import lombok.RequiredArgsConstructor; @@ -30,7 +31,10 @@ public CommonResponse createGroup(@AuthenticationPrincipal UserDetails a @RequestBody CreateGroupRequest createGroupRequest) { String userEmail = authenticatedPrincipal.getUsername(); Group group = groupService.createGroup(createGroupRequest, userEmail); - return CommonResponse.of(SuccessStatus.GROUP_CREATED, null); + + return CommonResponse.of(SuccessStatus.GROUP_CREATED, CreateGroupResponse.builder() + .groupId(group.getId()) + .build()); } @Operation(summary = "그룹 삭제") @@ -47,5 +51,4 @@ public CommonResponse updateGroup(@PathVariable("group_id") Long groupId groupService.updateGroup(groupId, updateGroupRequest); return CommonResponse.of(SuccessStatus.GROUP_UPDATED, null); } - } diff --git a/src/main/java/com/pictalk/group/dto/GroupRequestDto.java b/src/main/java/com/pictalk/group/dto/GroupRequestDto.java index d2caea2..88aeb51 100644 --- a/src/main/java/com/pictalk/group/dto/GroupRequestDto.java +++ b/src/main/java/com/pictalk/group/dto/GroupRequestDto.java @@ -25,5 +25,4 @@ public static class GroupReceiverDto { private String nickname; private String phoneNumber; } - } diff --git a/src/main/java/com/pictalk/group/dto/GroupResponseDto.java b/src/main/java/com/pictalk/group/dto/GroupResponseDto.java index 1f8a2a7..2e30221 100644 --- a/src/main/java/com/pictalk/group/dto/GroupResponseDto.java +++ b/src/main/java/com/pictalk/group/dto/GroupResponseDto.java @@ -12,6 +12,12 @@ public static class SearchGroupResponse { private String groupName; } + @Getter + @Builder + public static class CreateGroupResponse { + private Long groupId; + } + @Getter @Builder public static class GroupDetailResponse { diff --git a/src/main/java/com/pictalk/image/service/AiImageService.java b/src/main/java/com/pictalk/image/service/AiImageService.java index 3721a1f..50899de 100644 --- a/src/main/java/com/pictalk/image/service/AiImageService.java +++ b/src/main/java/com/pictalk/image/service/AiImageService.java @@ -11,7 +11,7 @@ @RequiredArgsConstructor public class AiImageService { - private static final String PROMPT_TEMPLATE = "Create a high-quality, detailed image depicting the following situation: \\\"%s\\\". The image should evoke the atmosphere or feeling of \\\"%s\\\"."; + private static final String PROMPT_TEMPLATE = "이 프롬프트는 한국어로 작성되었습니다. \"%s\" 상황을 묘사한 이미지로, \"%s\" 분위기를 담아주세요. 이미지 스타일은 사실적이고, 고해상도로 표현해주세요."; private final OpenAIImageClient openAIImageClient;