diff --git a/src/api/activity.js b/src/api/activity.js index f32aa2c..c788d5c 100644 --- a/src/api/activity.js +++ b/src/api/activity.js @@ -36,6 +36,18 @@ export const getOverallRankingTop3 = async (data) => { } } +// 获取总榜 +export const getOverallRanking = async (topN, data) => { + try { + const response = await post(`/ranking/top-three-overall?topN=${topN}`, data) + return response + } catch (error) { + console.error('Failed to get history top one:', error) + console.error('error:' + error.response.errorMsg) + throw error + } +} + // 获取历史榜首 export const getHistoryTopOne = async (activityType) => { try {