62 lines
1.5 KiB
TypeScript
62 lines
1.5 KiB
TypeScript
|
import type { CarChargeVO, CarChargeForm, CarChargeQuery } 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 carChargeList(params?: CarChargeQuery) {
|
||
|
return requestClient.get<PageResult<CarChargeVO>>('/property/carCharge/list', { params });
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 导出费用-车辆收费列表
|
||
|
* @param params
|
||
|
* @returns 费用-车辆收费列表
|
||
|
*/
|
||
|
export function carChargeExport(params?: CarChargeQuery) {
|
||
|
return commonExport('/property/carCharge/export', params ?? {});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 查询费用-车辆收费详情
|
||
|
* @param id id
|
||
|
* @returns 费用-车辆收费详情
|
||
|
*/
|
||
|
export function carChargeInfo(id: ID) {
|
||
|
return requestClient.get<CarChargeVO>(`/property/carCharge/${id}`);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 新增费用-车辆收费
|
||
|
* @param data
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function carChargeAdd(data: CarChargeForm) {
|
||
|
return requestClient.postWithMsg<void>('/property/carCharge', data);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 更新费用-车辆收费
|
||
|
* @param data
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function carChargeUpdate(data: CarChargeForm) {
|
||
|
return requestClient.putWithMsg<void>('/property/carCharge', data);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 删除费用-车辆收费
|
||
|
* @param id id
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function carChargeRemove(id: ID | IDS) {
|
||
|
return requestClient.deleteWithMsg<void>(`/property/carCharge/${id}`);
|
||
|
}
|