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,40 @@
class IndexService {
constructor() { }
async home(data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.index,
data: data
});
api = null;
return res;
}
async type(data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.type,
data: data
});
api = null;
return res;
}
// 搜索接口
async search(data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.search,
data: data
});
api = null;
return res;
}
}
var indexService = new IndexService();

View File

@@ -0,0 +1,20 @@
class InfoSevice{
constructor() {}
async infoSevice(data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.info,
data: data
});
api = null;
return res;
}
}
var infoSevice = new InfoSevice();

View File

@@ -0,0 +1,23 @@
class MechInfoService {
constructor() {
}
async mechanismList(data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.mechanismList,
data: data
});
api = null;
return res;
}
}
var mechInfoService = new MechInfoService();

View File

@@ -0,0 +1,20 @@
class MechanismService {
constructor() {}
async mechanism(data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.mechanism,
data: data
});
api = null;
return res;
}
}
var mechanismService = new MechanismService();

View File

@@ -0,0 +1,17 @@
class ModelService {
constructor() {
}
async Model (data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.allModel,
data: data
});
api = null;
return res;
}
}
var modelService = new ModelService();

View File

@@ -0,0 +1,17 @@
class Model_infoService {
constructor() {
}
async ModelList (data = {}) {
var api = new Api();
var res = await api.get({
url: config.apiList.modelList,
data: data
});
api = null;
return res;
}
}
var model_InfoService = new Model_infoService();

View File

@@ -0,0 +1,25 @@
class TypeService {
constructor() {}
async leftMenu(data = {}) {
var api = new Api();
return await api.get({
url: config.apiList.leftMenu,
data: data
});
api = null;
}
async rightMenu(data = {}) {
var api = new Api();
return await api.get({
url: config.apiList.rightMenu,
data: data
});
api = null;
}
}
var typeService = new TypeService();