Files
ClassContent/历届学生/front-end-team/项目练习/上课项目/在包河vue/src/service/IndexService.js
2024-09-27 02:06:13 +08:00

44 lines
915 B
JavaScript

import config from '@/config/index'
import http from '@/http/index'
class IndexService {
async radio(data = {}) {
return await (new http()).get({
url: config.urlList.radio,
data: data
})
}
async channelList(data = {}) {
return await (new http()).get({
url: config.urlList.channelList,
data: data
})
}
async videoDetail(data = {}) {
return await (new http()).get({
url: config.urlList.videoDetail,
data: data
})
}
async commentFn(data = {}) {
return await (new http()).get({
url: config.urlList.comment,
data: data
})
}
async interactDetail(data = {}) {
return await (new http()).get({
url: config.urlList.interactDetail,
data: data
})
}
}
export default IndexService