Skip to content

Conversation

@msk226
Copy link
Member

@msk226 msk226 commented Mar 30, 2025

#️⃣ 연관된 이슈

#35


🔎 작업 내용

  1. AI API 스펙에 맞게 요청 및 응답 수정

@msk226 msk226 added the refactor 리팩토링 label Mar 30, 2025
@msk226 msk226 requested a review from Copilot March 30, 2025 15:04
@msk226 msk226 self-assigned this Mar 30, 2025
@msk226 msk226 linked an issue Mar 30, 2025 that may be closed by this pull request
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the client API requests to align with the updated AI API specifications by modifying request and response structures and updating corresponding service calls.

  • Updated DTOs to use detailed recommendation objects instead of simple answer strings.
  • Adjusted the API client methods and service handling to accommodate the new request object structure.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main/java/hyu/erica/capstone/web/dto/client/StyleRequestDTO.java New DTO for style requests with a static factory method
src/main/java/hyu/erica/capstone/web/dto/client/RestaurantRequestDTO.java Revised to include detailed recommendation records
src/main/java/hyu/erica/capstone/web/dto/client/AttractionRequestDTO.java Revised to include detailed recommendation records; contains an unused import
src/main/java/hyu/erica/capstone/service/async/StyleBackgroundTaskService.java Updated to create a StyleRequestDTO instead of a prompt string
src/main/java/hyu/erica/capstone/client/PlanClient.java Updated API endpoints to use POST with a request body
Comments suppressed due to low confidence (1)

src/main/java/hyu/erica/capstone/service/async/StyleBackgroundTaskService.java:58

  • [nitpick] The variable name 'prompt' is misleading now that it holds a StyleRequestDTO object; consider renaming it to 'styleRequest' for clarity.
StyleRequestDTO prompt = StyleRequestDTO.of(style.getCity().name(), style.getStartDate(),

@@ -1,6 +1,11 @@
package hyu.erica.capstone.web.dto.client;

import jakarta.persistence.criteria.CriteriaBuilder.In;
Copy link

Copilot AI Mar 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import 'jakarta.persistence.criteria.CriteriaBuilder.In' is not used in the code; please remove it to clean up the file.

Suggested change
import jakarta.persistence.criteria.CriteriaBuilder.In;

Copilot uses AI. Check for mistakes.
@msk226 msk226 merged commit 2b5fe65 into develop Mar 30, 2025
1 check passed
@msk226 msk226 deleted the refactor/35 branch March 30, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] AI 서버 API 스펙 변경으로 인한 코드 수정

2 participants