This commit is contained in:
parent
7502bb9576
commit
a718e57c3f
@ -12,7 +12,7 @@ import { requestClient } from '#/api/request';
|
||||
* @returns 巡检路线列表
|
||||
*/
|
||||
export function inspectionRouteList(params?: InspectionRouteQuery) {
|
||||
return requestClient.get<PageResult<InspectionRouteVO>>('/property/inspectionRoute/list', { params });
|
||||
return requestClient.get<PageResult<InspectionRouteVO>>('/property/route/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ export function inspectionRouteList(params?: InspectionRouteQuery) {
|
||||
* @returns 巡检路线列表
|
||||
*/
|
||||
export function inspectionRouteExport(params?: InspectionRouteQuery) {
|
||||
return commonExport('/property/inspectionRoute/export', params ?? {});
|
||||
return commonExport('/property/route/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ export function inspectionRouteExport(params?: InspectionRouteQuery) {
|
||||
* @returns 巡检路线详情
|
||||
*/
|
||||
export function inspectionRouteInfo(id: ID) {
|
||||
return requestClient.get<InspectionRouteVO>(`/property/inspectionRoute/${id}`);
|
||||
return requestClient.get<InspectionRouteVO>(`/property/route/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -39,7 +39,7 @@ export function inspectionRouteInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionRouteAdd(data: InspectionRouteForm) {
|
||||
return requestClient.postWithMsg<void>('/property/inspectionRoute', data);
|
||||
return requestClient.postWithMsg<void>('/property/route', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -48,7 +48,7 @@ export function inspectionRouteAdd(data: InspectionRouteForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionRouteUpdate(data: InspectionRouteForm) {
|
||||
return requestClient.putWithMsg<void>('/property/inspectionRoute', data);
|
||||
return requestClient.putWithMsg<void>('/property/route', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -57,5 +57,5 @@ export function inspectionRouteUpdate(data: InspectionRouteForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionRouteRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/inspectionRoute/${id}`);
|
||||
return requestClient.deleteWithMsg<void>(`/property/route/${id}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user