first
Deploy Iddaai Frontend / build-and-deploy (push) Successful in 4m0s

This commit is contained in:
2026-04-16 13:36:34 +03:00
parent de5e145c4e
commit fc7a1ba567
218 changed files with 32370 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import { apiRequest } from "@/lib/api/api-service";
import { ApiResponse } from "@/types/api-response";
import type { AnalyzeMatchesDto, AnalysisResultDto, AnalysisHistoryDto } from "./types";
/**
* Analysis Service
* Backend: /api/analysis/*
*/
const analyzeMatches = (dto: AnalyzeMatchesDto) => {
return apiRequest<ApiResponse<AnalysisResultDto>>({
url: "/analysis/analyze",
client: "core",
method: "post",
data: dto,
});
};
const getHistory = () => {
return apiRequest<ApiResponse<AnalysisHistoryDto>>({
url: "/analysis/history",
client: "core",
method: "get",
});
};
export const analysisService = {
analyzeMatches,
getHistory,
};