对接活动列表接口

This commit is contained in:
zhouyanli
2026-04-25 07:57:49 +08:00
parent d569bbc8e1
commit 06a391a668
7 changed files with 293 additions and 237 deletions

View File

@@ -39,7 +39,12 @@ export const getCurrentVillage = () =>{
export const getVillageSwitch = (data)=>{
return post('/api/resident/village/switch',data)
}
// ====公告列表======
// 首页最新活动列表
export const getActivitylatest = () =>{
return get('/api/resident/activity/latest')
}
// ========公告列表======
// 获取公告列表
export const getNoticeList = (data) =>{
return get('/api/resident/notice/list',data)
@@ -47,4 +52,22 @@ export const getNoticeList = (data) =>{
// 获取公告详情
export const getNoticeDetails = (noticeId) =>{
return get(`/api/resident/notice/${noticeId}`)
}
// =========键开门===============
// 查询门禁列表
export const getAccessDevices = (data) =>{
return get("/api/resident/access/devices",data)
}
// 确认开门
export const getAccessOpen = (data) =>{
return post("/api/resident/access/open",data)
}
// ==========活动列表===========
// 获取活动列表
export const getActivityList = (data) =>{
return get("/api/resident/activity/list",data)
}
// 获取活动列表详情
export const getActivityDetails = (id) =>{
return get(`/api/resident/activity/${id}`)
}