Files
ClassContent/历届学生/fontendseven/项目练习/个人练习/蔡敏/美食/js/service/indexService.js
2024-09-27 02:06:13 +08:00

32 lines
625 B
JavaScript

class IndexService {
async index(data) {
return await (new HTTP()).get({
url: config.urlList.index,
data: data
})
}
async banner(data) {
return await (new HTTP()).get({
url: config.urlList.banner,
data: data
})
}
async type(data) {
return await (new HTTP()).get({
url: config.urlList.type,
data: data
})
}
async threeMeals(data) {
return await (new HTTP()).get({
url: config.urlList.threeMeals,
data: data
})
}
}
var server = new IndexService()