Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
66 lines
1.6 KiB
TypeScript
66 lines
1.6 KiB
TypeScript
import type { HouseChargeVO, HouseChargeForm, HouseChargeQuery } 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 houseChargeList(params?: HouseChargeQuery) {
|
|
return requestClient.get<PageResult<HouseChargeVO>>('/property/houseCharge/list', { params });
|
|
}
|
|
|
|
/**
|
|
* 导出房屋收费列表
|
|
* @param params
|
|
* @returns 房屋收费列表
|
|
*/
|
|
export function houseChargeExport(params?: HouseChargeQuery) {
|
|
return commonExport('/property/houseCharge/export', params ?? {});
|
|
}
|
|
|
|
/**
|
|
* 查询房屋收费详情
|
|
* @param id id
|
|
* @returns 房屋收费详情
|
|
*/
|
|
export function houseChargeInfo(id: ID) {
|
|
return requestClient.get<HouseChargeVO>(`/property/houseCharge/${id}`);
|
|
}
|
|
|
|
/**
|
|
* 新增房屋收费
|
|
* @param data
|
|
* @returns void
|
|
*/
|
|
export function houseChargeAdd(data: HouseChargeForm) {
|
|
return requestClient.postWithMsg<void>('/property/houseCharge', data);
|
|
}
|
|
|
|
export function houseChargeRefund(data: HouseChargeForm) {
|
|
return requestClient.postWithMsg<void>('/property/houseCharge/returnFee', data);
|
|
}
|
|
|
|
/**
|
|
* 更新房屋收费
|
|
* @param data
|
|
* @returns void
|
|
*/
|
|
export function houseChargeUpdate(data: HouseChargeForm) {
|
|
return requestClient.putWithMsg<void>('/property/houseCharge', data);
|
|
}
|
|
|
|
/**
|
|
* 删除房屋收费
|
|
* @param id id
|
|
* @returns void
|
|
*/
|
|
export function houseChargeRemove(id: ID | IDS) {
|
|
return requestClient.deleteWithMsg<void>(`/property/houseCharge/${id}`);
|
|
}
|