Files
ClassContent/历届学生/front-end-team-10/项目练习/上课项目/失物招领/js/service/index.js
2024-09-27 02:06:13 +08:00

33 lines
691 B
JavaScript

class IndexService {
async notice(params = {}) {
return await (new Http()).post({
url: config.apiList.notice,
data: params
});
}
async info(params = {}) {
return await (new Http()).post({
url: config.apiList.info,
data: params
});
}
async search(params = {}) {
return await (new Http()).post({
url: config.apiList.search,
data: params
});
}
async tab(params = {}) {
return await (new Http()).post({
url: config.apiList.tab,
data: params
});
}
}
var indexService = new IndexService()