feat(活动接口文件): 新增获取总榜列表的接口
This commit is contained in:
parent
7df5dd0ee9
commit
8710e0abd2
@ -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) => {
|
export const getHistoryTopOne = async (activityType) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user