mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-07-09 11:07:35 +08:00
21 lines
389 B
TypeScript
21 lines
389 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://110.42.251.190:8766/api/donations');
|
||
|
|
return data;
|
||
|
|
};
|