first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import IndexService from "./indexService"
import CarService from "./carService"
import TvrecommendService from "./tvrecommendService"
export default {
tvs: new TvrecommendService(),
index: new IndexService(),
car: new CarService(),
}

View File

@@ -0,0 +1,14 @@
import http from "@http/"
import config from "@config/"
class CarService {
async index(data = {}, headers = {}) {
return await http.get({
url: config.apiList.index,
data,
headers
})
}
}
export default CarService

View File

@@ -0,0 +1,39 @@
import http from "@http/"
import config from "@config/"
class IndexService {
async tvInfo(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.tvInfo,
data,
headers
})
}
async radio(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.radio,
data,
headers
})
}
async tv(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.tv,
data,
headers
})
}
async news(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.news,
data,
headers
})
}
}
export default IndexService

View File

@@ -0,0 +1,14 @@
import http from "@http/"
import config from "@config/"
class TvrecommendService {
async tvrecommend(data = {}, headers = {}) {
return await (new http()).get({
url: config.apiList.videoPlay,
data,
headers
})
}
}
export default TvrecommendService