1、入驻管理
This commit is contained in:
61
apps/web-antd/src/api/property/resident/unit/index.ts
Normal file
61
apps/web-antd/src/api/property/resident/unit/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { Resident_unitVO, Resident_unitForm, Resident_unitQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询入驻单位列表
|
||||
* @param params
|
||||
* @returns 入驻单位列表
|
||||
*/
|
||||
export function resident_unitList(params?: Resident_unitQuery) {
|
||||
return requestClient.get<PageResult<Resident_unitVO>>('/property/resident_unit/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出入驻单位列表
|
||||
* @param params
|
||||
* @returns 入驻单位列表
|
||||
*/
|
||||
export function resident_unitExport(params?: Resident_unitQuery) {
|
||||
return commonExport('/property/resident_unit/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询入驻单位详情
|
||||
* @param id id
|
||||
* @returns 入驻单位详情
|
||||
*/
|
||||
export function resident_unitInfo(id: ID) {
|
||||
return requestClient.get<Resident_unitVO>(`/property/resident_unit/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增入驻单位
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function resident_unitAdd(data: Resident_unitForm) {
|
||||
return requestClient.postWithMsg<void>('/property/resident_unit', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新入驻单位
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function resident_unitUpdate(data: Resident_unitForm) {
|
||||
return requestClient.putWithMsg<void>('/property/resident_unit', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除入驻单位
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function resident_unitRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/resident_unit/${id}`);
|
||||
}
|
Reference in New Issue
Block a user