mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-14 23:11:00 +08:00
21 lines
386 B
TypeScript
21 lines
386 B
TypeScript
import axios from 'axios';
|
|
|
|
export interface Donor {
|
|
id: number;
|
|
name: string;
|
|
amount: number;
|
|
date: string;
|
|
message?: string;
|
|
avatar?: string;
|
|
badge: string;
|
|
badgeColor: string;
|
|
}
|
|
|
|
/**
|
|
* 获取捐赠列表
|
|
*/
|
|
export const getDonationList = async (): Promise<Donor[]> => {
|
|
const { data } = await axios.get('http://donate.alger.fun/api/donations');
|
|
return data;
|
|
};
|