From fa8afa84e5ff145b9b992f95134510a4a5d3cf0d Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 11 May 2026 00:20:51 -0600 Subject: [PATCH] feat: add getProblemYearlyAC API function --- src/oj/api.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/oj/api.ts b/src/oj/api.ts index 6deac03..d29c3d7 100644 --- a/src/oj/api.ts +++ b/src/oj/api.ts @@ -313,6 +313,19 @@ export function getSimilarProblems(problemId: string) { return http.get("problem/similar", { params: { problem_id: problemId } }) } +export interface YearlyACData { + year: number + total: number + accepted: number + ac_rate: number +} + +export function getProblemYearlyAC(problemId: string) { + return http.get("problem/yearly_ac", { + params: { problem_id: problemId }, + }) +} + // ==================== 流程图相关API ==================== export function submitFlowchart(data: {