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: {