-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
471 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
package com.flickspick.batch; | ||
|
||
import java.util.List; | ||
|
||
import com.flickspick.client.chatgpt.ChatGPTClient; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import com.flickspick.client.chatgpt.ChatGPTClient; | ||
import com.flickspick.rec.dto.RecRequest.QuestionModel; | ||
|
||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Tag(name = "배치 서비스") | ||
@RestController | ||
@RequestMapping(path = "/api/v1/batch", produces = MediaType.APPLICATION_JSON_VALUE) | ||
@RequiredArgsConstructor | ||
public class BatchController { | ||
private final BatchService batchService; | ||
private final ChatGPTClient chatGPTClient; | ||
private final BatchService batchService; | ||
private final ChatGPTClient chatGPTClient; | ||
|
||
@PostMapping | ||
public void batch() { | ||
batchService.batch(); | ||
} | ||
@PostMapping | ||
public void batch() { | ||
batchService.batch(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/main/java/com/flickspick/client/chatgpt/ChatGPTClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
package com.flickspick.client.chatgpt; | ||
|
||
import java.util.List; | ||
|
||
import com.flickspick.client.dto.ResponseMessage; | ||
import com.flickspick.rec.dto.RecRequest; | ||
import java.util.List; | ||
|
||
public interface ChatGPTClient { | ||
ResponseMessage query(List<RecRequest.QuestionModel> answers, List<Long> ottIds); | ||
ResponseMessage query(List<RecRequest.QuestionModel> answers, List<Long> ottIds); | ||
} |
Oops, something went wrong.