Skip to content

Commit

Permalink
Merge branch 'develop' into fix/64
Browse files Browse the repository at this point in the history
  • Loading branch information
rokaf6444 committed Nov 27, 2024
2 parents 498aa9f + 8d9feb1 commit 857de80
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -30,7 +31,10 @@ public CommonResponse<Object> 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 = "그룹 삭제")
Expand All @@ -47,5 +51,4 @@ public CommonResponse<Object> updateGroup(@PathVariable("group_id") Long groupId
groupService.updateGroup(groupId, updateGroupRequest);
return CommonResponse.of(SuccessStatus.GROUP_UPDATED, null);
}

}
1 change: 0 additions & 1 deletion src/main/java/com/pictalk/group/dto/GroupRequestDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ public static class GroupReceiverDto {
private String nickname;
private String phoneNumber;
}

}
6 changes: 6 additions & 0 deletions src/main/java/com/pictalk/group/dto/GroupResponseDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 857de80

Please sign in to comment.