You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
428 B
16 lines
428 B
import service from ".";
|
|
const liveApi = {
|
|
//获取直播列表
|
|
getLiveList() {
|
|
return service.post('/live', { UserId: 90000001 });
|
|
},
|
|
//预约
|
|
addReservation(Id, UserId) {
|
|
return service.post('/reservation', { Id, UserId });
|
|
},
|
|
//取消预约
|
|
cancelReservation(Id, UserId) {
|
|
return service.delete(`/reservation?Id=${Id}&UserId=${UserId}`);
|
|
}
|
|
}
|
|
export default liveApi;
|