2025-06-19 14:26:08 +08:00
|
|
|
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';
|
2025-09-09 18:34:45 +08:00
|
|
|
import type {AuthGroupQuery, AuthGroupVO} from "#/api/sis/authGroup/model";
|
2025-06-19 14:26:08 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询入驻单位列表
|
|
|
|
* @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}`);
|
|
|
|
}
|
2025-09-09 18:34:45 +08:00
|
|
|
/**
|
|
|
|
* 通行权限组
|
|
|
|
*/
|
|
|
|
export function authGroupList(params?: AuthGroupQuery) {
|
|
|
|
return requestClient.get<PageResult<AuthGroupVO>>('/sis/authGroup/list', { params });
|
|
|
|
}
|
2025-06-19 14:26:08 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 新增入驻单位
|
|
|
|
* @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}`);
|
|
|
|
}
|