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.

15 lines
428 B

5 months ago
  1. import service from ".";
  2. const liveApi = {
  3. //获取直播列表
  4. getLiveList() {
  5. return service.post('/live', { UserId: 90000001 });
  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=${Id}&UserId=${UserId}`);
  14. }
  15. }
  16. export default liveApi;