物业代码生成

This commit is contained in:
2025-06-18 11:03:42 +08:00
commit 1262d4c745
1881 changed files with 249599 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
import type { FactoryVO, FactoryForm, FactoryQuery } 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 factoryList(params?: FactoryQuery) {
return requestClient.get<PageResult<FactoryVO>>('/property/factory/list', { params });
}
/**
* 导出厂商管理列表
* @param params
* @returns 厂商管理列表
*/
export function factoryExport(params?: FactoryQuery) {
return commonExport('/property/factory/export', params ?? {});
}
/**
* 查询厂商管理详情
* @param id id
* @returns 厂商管理详情
*/
export function factoryInfo(id: ID) {
return requestClient.get<FactoryVO>(`/property/factory/${id}`);
}
/**
* 新增厂商管理
* @param data
* @returns void
*/
export function factoryAdd(data: FactoryForm) {
return requestClient.postWithMsg<void>('/property/factory', data);
}
/**
* 更新厂商管理
* @param data
* @returns void
*/
export function factoryUpdate(data: FactoryForm) {
return requestClient.putWithMsg<void>('/property/factory', data);
}
/**
* 删除厂商管理
* @param id id
* @returns void
*/
export function factoryRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/factory/${id}`);
}