This commit is contained in:
2026-01-15 01:15:07 +08:00
parent 8c1f4ec05e
commit 90b646297d
45 changed files with 62864 additions and 5820 deletions

View File

@@ -1,5 +1,16 @@
import request from '/@/utils/request';
/**
* 分页查询宿舍楼列表
*/
export const fetchList = (query?: any) => {
return request({
url: '/stuwork/dormbuilding/newPage',
method: 'get',
params: query
});
};
/**
* 获取楼号列表
*/
@@ -10,3 +21,47 @@ export const getBuildingList = () => {
});
};
/**
* 新增宿舍楼
*/
export const addObj = (data: any) => {
return request({
url: '/stuwork/dormbuilding',
method: 'post',
data
});
};
/**
* 编辑宿舍楼
*/
export const putObj = (data: any) => {
return request({
url: '/stuwork/dormbuilding/edit',
method: 'post',
data
});
};
/**
* 删除宿舍楼
*/
export const delObjs = (ids: string[]) => {
return request({
url: '/stuwork/dormbuilding/delete',
method: 'post',
data: ids
});
};
/**
* 获取宿舍楼详情
*/
export const getObj = (id: string) => {
return request({
url: `/stuwork/dormbuilding/detail`,
method: 'get',
params: { id }
});
};