lotto 추천 및 시뮬레이션 시스템 고도화
This commit is contained in:
19
src/api.js
19
src/api.js
@@ -82,6 +82,25 @@ export function deleteHistory(id) {
|
||||
return apiDelete(`/api/history/${id}`);
|
||||
}
|
||||
|
||||
// ── 시뮬레이션 관련 API ──────────────────────────────────────────────────────
|
||||
|
||||
export function getBestPicks(limit = 20) {
|
||||
return apiGet(`/api/lotto/best?limit=${limit}`);
|
||||
}
|
||||
|
||||
export function getAnalysis() {
|
||||
return apiGet('/api/lotto/analysis');
|
||||
}
|
||||
|
||||
export function triggerSimulate(nCandidates = 20000, topK = 100, bestN = 20) {
|
||||
const qs = new URLSearchParams({
|
||||
n_candidates: String(nCandidates),
|
||||
top_k: String(topK),
|
||||
best_n: String(bestN),
|
||||
});
|
||||
return apiPost(`/api/admin/simulate?${qs.toString()}`);
|
||||
}
|
||||
|
||||
export function getStockNews(limit = 20, category) {
|
||||
const qs = new URLSearchParams({ limit: String(limit) });
|
||||
if (category) {
|
||||
|
||||
Reference in New Issue
Block a user