Merge branch 'master' of http://git.luyuan.tk/luyuan/beelink into zj

This commit is contained in:
asd
2020-10-14 16:27:46 +08:00
4 changed files with 50 additions and 13 deletions

View File

@@ -255,3 +255,24 @@ export async function sendsms(phone: string, type: number): Promise<boolean>{
return false;
}
}
/**
* 获取国家数据
*/
interface Countries{
id: number;
name: string;
country_code: string;
}
interface Willsay{
languageid: number;
name: string
}
export async function getarchives(): Promise<[Countries[],Willsay[]]>{
return [(await get<Countries[]>("countries")).data, (await get<Willsay[]>("willsay")).data];
}