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,45 @@
import http from "@/http"
import config from "@/config"
export default class IndexService {
async home(data = {}, header = {}) {
return await (new http()).get({
url: config.apiList.index,
data: data,
headers: header
})
}
async classList(data = {}, header = {}) {
return await (new http()).get({
url: config.apiList.classList,
data: data,
headers: header
})
}
async type(data = {}, header = {}) {
let res = await (new http()).get({
url: config.apiList.type,
data: data,
headers: header
});
res.principal.forEach(v => {
v.total_page = 0;
v.loadStatus = "more";
v.content = [];
});
res.principal.unshift({
content: [],
id: -1,
page: 0,
title: "首页",
total_page: 0
})
return res;
}
}