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,82 @@
/**
* 请求的中间层
* 被页面调用然后它去调用ajax
*/
class HomeService {
GetHomeData(data) {
return ajax({
url: Config.ApiList.index,
data: data,
methods: 'GET'
});
}
info(data) {
return ajax({
url: Config.ApiList.info,
data: data,
methods: 'GET'
});
}
mechanism(data) {
return ajax({
url: Config.ApiList.mechanism,
data: data,
methods: 'GET'
});
}
type(data) {
return ajax({
url: Config.ApiList.type,
data: data,
methods: 'GET'
});
}
classList(data) {
return ajax({
url: Config.ApiList.classList,
data: data,
methods: 'GET'
});
}
allModel(data) {
return ajax({
url: Config.ApiList.allModel,
data: data,
methods: 'GET'
});
}
modelList(data) {
return ajax({
url: Config.ApiList.modelList,
data: data,
methods: 'GET'
});
}
mechanismList(data) {
return ajax({
url: Config.ApiList.mechanismList,
data: data,
methods: 'GET'
});
}
search(data) {
return ajax({
url: Config.ApiList.search,
data: data,
methods: 'GET'
});
}
};
var homeService = new HomeService()