Files
ClassContent/历届学生/逯帅帅/项目开发/上课项目/uniapp在包河/common/service/IndexServer.js
2024-09-27 02:06:13 +08:00

90 lines
2.0 KiB
JavaScript

import http from "../http";
import config from "../config";
export default class IndexServer {
async getIndex(data = {}, header = {}) {
return await http.get({
url: config.apiList.index,
data: data,
header: header
});
}
//radio
async radio(data = {}, header = {}) {
return await http.get({
url: config.apiList.radio,
data: data,
header: header
});
}
async interactDetail (data = {}, header = {}) {
// eslint-disable-next-line no-return-await
return await http.get({
url: config.apiList.interactDetail,
data: data,
headers: header
})
}
async videoDetail (data = {}, header = {}) {
// eslint-disable-next-line no-return-await
return await http.get({
url: config.apiList.videoDetail,
data: data,
headers: header
})
}
//直播详情
async liveDetail(data = {}, header = {}) {
return await http.get({
url: config.apiList.liveDetail,
data: data,
header: header
});
}
//包河TV评论
async channelComment(data = {}, header = {}) {
return await http.get({
url: config.apiList.channelComment,
data: data,
header: header
});
}
//包河TV
async channelList(data = {}, header = {}) {
return await http.get({
url: config.apiList.channelList,
data: data,
header: header
});
}
// 融媒直播
async liveList (data = {}, header = {}) {
return await http.get({
url: config.apiList.liveList,
data: data,
headers: header
})
}
async newsDetail (data = {}, header = {}) {
return await http.get({
url: config.apiList.newsDetail,
data: data,
headers: header
})
}
}