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.

14 lines
359 B

7 months ago
  1. import service from ".";
  2. const liveApi = {
  3. //获取直播列表
  4. getLiveList() {
  5. return service.get('/live');
  6. },
  7. //预约
  8. addReservation(id,userId){
  9. return service.post('/reservation',{id,userId});
  10. },
  11. //取消预约
  12. cancelReservation(id,userId){
  13. return service.delete('/reservation',{id,userId});
  14. }
  15. }