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.

27 lines
641 B

  1. import service from ".";
  2. const ChannelApi = {
  3. //获取频道列表
  4. getchannels(){
  5. return service.get('/list');
  6. },
  7. //获取shows列表
  8. getShows(Id,UserId,FlagType){
  9. return service.post('/channel',{Id,UserId,FlagType});
  10. },
  11. //订阅状态
  12. subscribe(Id,UserId){
  13. return service.post('/subscription',{Id,UserId})
  14. },
  15. //取消订阅
  16. unSubscribe(Id,UserId){
  17. console.log("_________",Id);
  18. return service.delete('/subscription',{
  19. params:{
  20. Id:Id,
  21. UserId:UserId
  22. }
  23. })
  24. }
  25. }
  26. export default ChannelApi;