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,3 @@
export default class carService {
}

View File

@@ -0,0 +1,9 @@
// 统一导出
import indexService from "@/service/indexService";
import carService from "@/service/carService";
export default {
index: new indexService(),
car: new carService(),
}

View File

@@ -0,0 +1,34 @@
import Http from "@/http";
import config from "@/config"
export default class indexService {
async home (data = {}, headers = {}) {
return await (new Http()).get({
url: config.apiList.home,
data: data,
headers: headers
})
}
async classList (data = {}, headers = {}) {
return await (new Http()).get({
url: config.apiList.classList,
data: data,
headers: headers
})
}
async type (data = {}, headers = {}) {
let res = await (new Http()).get({
url: config.apiList.type,
data: data,
headers: headers
});
res.principal.forEach((v,i) => {
v.into = `title${i}`
v.content = []
});
return res;
}
}