直播学生

This commit is contained in:
2020-10-16 10:47:05 +08:00
parent eef4917466
commit 758f85facf
4 changed files with 187 additions and 142 deletions

View File

@@ -475,3 +475,20 @@ export async function getliveinfo(id: number){
export async function getdatelist(start: string, end: string) {
return (await get("teacherCalendar")).data
}
/**
* 取消直播
*/
export async function cancellive(id: number, status: number){
const res = await post("cancelLive",{id, status})
if(res.code == 0){
message.success(res.msg);
return true;
}else{
message.error(res.msg);
return false;
}
}