admin-vben5/apps/web-antd/src/api/property/chargeManagement/index.ts

60 lines
1.6 KiB
TypeScript
Raw Normal View History

2025-06-27 15:55:02 +08:00
import type { OrderChargeVO, OrderChargeForm, OrderChargeQuery } 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 orderChargeList(params?: OrderChargeQuery) {
2025-06-30 18:11:49 +08:00
return requestClient.get<PageResult<OrderChargeVO>>('/property/orderCharge/list', { params });
2025-06-27 15:55:02 +08:00
}
/**
* 绿-
* @param params
* @returns 绿-
*/
export function orderChargeExport(params?: OrderChargeQuery) {
2025-06-30 18:11:49 +08:00
return commonExport('/property/orderCharge/export', params ?? {});
2025-06-27 15:55:02 +08:00
}
/**
* 绿-
* @param id id
* @returns 绿-
*/
export function orderChargeInfo(id: ID) {
2025-06-30 18:11:49 +08:00
return requestClient.get<OrderChargeVO>(`/property/orderCharge/${id}`);
2025-06-27 15:55:02 +08:00
}
/**
* 绿-
* @param data
* @returns void
*/
export function orderChargeAdd(data: OrderChargeForm) {
2025-06-30 18:11:49 +08:00
return requestClient.postWithMsg<void>('/property/orderCharge', data);
2025-06-27 15:55:02 +08:00
}
/**
* 绿-
* @param data
* @returns void
*/
export function orderChargeUpdate(data: OrderChargeForm) {
2025-06-30 18:11:49 +08:00
return requestClient.putWithMsg<void>('/property/orderCharge', data);
2025-06-27 15:55:02 +08:00
}
/**
* 绿-
* @param id id
* @returns void
*/
export function orderChargeRemove(id: ID | IDS) {
2025-06-30 18:11:49 +08:00
return requestClient.deleteWithMsg<void>(`/property/orderCharge/${id}`);
2025-06-27 15:55:02 +08:00
}