Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
60 lines
1.6 KiB
TypeScript
60 lines
1.6 KiB
TypeScript
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>>('/property/orderCharge/list', { params });
|
|
}
|
|
|
|
/**
|
|
* 导出绿植租赁-订单收费列表
|
|
* @param params
|
|
* @returns 绿植租赁-订单收费列表
|
|
*/
|
|
export function orderChargeExport(params?: OrderChargeQuery) {
|
|
return commonExport('/property/orderCharge/export', params ?? {});
|
|
}
|
|
|
|
/**
|
|
* 查询绿植租赁-订单收费详情
|
|
* @param id id
|
|
* @returns 绿植租赁-订单收费详情
|
|
*/
|
|
export function orderChargeInfo(id: ID) {
|
|
return requestClient.get<OrderChargeVO>(`/property/orderCharge/${id}`);
|
|
}
|
|
|
|
/**
|
|
* 新增绿植租赁-订单收费
|
|
* @param data
|
|
* @returns void
|
|
*/
|
|
export function orderChargeAdd(data: OrderChargeForm) {
|
|
return requestClient.postWithMsg<void>('/property/orderCharge', data);
|
|
}
|
|
|
|
/**
|
|
* 更新绿植租赁-订单收费
|
|
* @param data
|
|
* @returns void
|
|
*/
|
|
export function orderChargeUpdate(data: OrderChargeForm) {
|
|
return requestClient.putWithMsg<void>('/property/orderCharge', data);
|
|
}
|
|
|
|
/**
|
|
* 删除绿植租赁-订单收费
|
|
* @param id id
|
|
* @returns void
|
|
*/
|
|
export function orderChargeRemove(id: ID | IDS) {
|
|
return requestClient.deleteWithMsg<void>(`/property/orderCharge/${id}`);
|
|
}
|