完善业务闭环,实现对轮播图的管理,优化数据库表文件

This commit is contained in:
2026-07-18 16:21:40 +08:00
parent feaf014b4a
commit 97a5eff678
78 changed files with 3210 additions and 100 deletions
+16
View File
@@ -0,0 +1,16 @@
const http = require('../utils/request')
/** 获取启用的轮播图列表(按 sortOrder 升序) */
function getActiveBanners() {
return http.get('/banners/active').then(res => {
console.log('[Banner API] 响应数据:', JSON.stringify(res))
return res
}).catch(err => {
console.error('[Banner API] 请求失败:', err)
throw err
})
}
module.exports = {
getActiveBanners
}