This commit is contained in:
59
apps/web-antd/src/api/property/chargeManagement/index.ts
Normal file
59
apps/web-antd/src/api/property/chargeManagement/index.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
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) {
|
||||
return requestClient.get<PageResult<OrderChargeVO>>('/system/orderCharge/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出绿植租赁-订单收费列表
|
||||
* @param params
|
||||
* @returns 绿植租赁-订单收费列表
|
||||
*/
|
||||
export function orderChargeExport(params?: OrderChargeQuery) {
|
||||
return commonExport('/system/orderCharge/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询绿植租赁-订单收费详情
|
||||
* @param id id
|
||||
* @returns 绿植租赁-订单收费详情
|
||||
*/
|
||||
export function orderChargeInfo(id: ID) {
|
||||
return requestClient.get<OrderChargeVO>(`/system/orderCharge/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增绿植租赁-订单收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function orderChargeAdd(data: OrderChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/system/orderCharge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新绿植租赁-订单收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function orderChargeUpdate(data: OrderChargeForm) {
|
||||
return requestClient.putWithMsg<void>('/system/orderCharge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除绿植租赁-订单收费
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function orderChargeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/system/orderCharge/${id}`);
|
||||
}
|
Reference in New Issue
Block a user