feat : 실행계획 생성 api 수정
This commit is contained in:
parent
dcfd7e9eaa
commit
fd000a2d4e
@ -145,14 +145,19 @@ public class AnalyticsController {
|
|||||||
*/
|
*/
|
||||||
@Operation(summary = "실행계획 생성", description = "AI 피드백을 기반으로 실행계획을 생성합니다.")
|
@Operation(summary = "실행계획 생성", description = "AI 피드백을 기반으로 실행계획을 생성합니다.")
|
||||||
@PostMapping("/ai-feedback/{feedbackId}/action-plans")
|
@PostMapping("/ai-feedback/{feedbackId}/action-plans")
|
||||||
public ResponseEntity<SuccessResponse<List<String>>> generateActionPlans(
|
public ResponseEntity<SuccessResponse<Void>> generateActionPlans(
|
||||||
@Parameter(description = "AI 피드백 ID", required = true)
|
@Parameter(description = "AI 피드백 ID", required = true)
|
||||||
@PathVariable @NotNull Long feedbackId) {
|
@PathVariable @NotNull Long feedbackId,
|
||||||
|
@RequestBody ActionPlanCreateRequest request) {
|
||||||
|
|
||||||
log.info("실행계획 생성 요청: feedbackId={}", feedbackId);
|
log.info("실행계획 생성 요청: feedbackId={}", feedbackId);
|
||||||
|
|
||||||
List<String> actionPlans = analyticsUseCase.generateActionPlansFromFeedback(feedbackId);
|
log.info("실행계획 바디 데이터 => {}", request);
|
||||||
|
|
||||||
return ResponseEntity.ok(SuccessResponse.of(actionPlans, "실행계획 생성 완료"));
|
return ResponseEntity.ok(SuccessResponse.of("실행계획 생성 완료"));
|
||||||
|
|
||||||
|
// List<String> actionPlans = analyticsUseCase.generateActionPlansFromFeedback(feedbackId);
|
||||||
|
|
||||||
|
// return ResponseEntity.ok(SuccessResponse.of(actionPlans, "실행계획 생성 완료"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,22 @@
|
|||||||
|
package com.ktds.hi.analytics.infra.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 실행계획 생성요청
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@ToString
|
||||||
|
public class ActionPlanCreateRequest {
|
||||||
|
|
||||||
|
private List<String> actionPlanSelect;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user