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,7 @@
import http from "@/http";
import config from "@/config";
export default class BaseServe {
http = new http();
config = config;
}

View File

@@ -0,0 +1,8 @@
import BaseServe from "./BaseServe";
export default class CarServe extends BaseServe {
constructor() {
super();
}
}

View File

@@ -0,0 +1,23 @@
import BaseServe from "./BaseServe";
export default class IndexServe extends BaseServe {
constructor() {
super();
}
async home (data = {}, headers = {}) {
return await this.http.get({
url: this.config.urlList.index,
data: data,
headers: headers
})
}
async mechanism (data = {}, headers = {}) {
return await this.http.get({
url: this.config.urlList.mechanism,
data: data,
headers: headers
})
}
}

View File

@@ -0,0 +1,7 @@
import IndexServe from "./IndexServe";
import CarServe from "./CarServe";
export default {
index: new IndexServe(),
car: new CarServe()
}