最新代码
This commit is contained in:
63
src/api/system/landTransfer/enterRoad/index.ts
Normal file
63
src/api/system/landTransfer/enterRoad/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { EnterRoadVO, EnterRoadForm, EnterRoadQuery } from '@/api/land/enterRoad/types';
|
||||
|
||||
/**
|
||||
* 查询进场道路信息列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listEnterRoad = (query?: EnterRoadQuery): AxiosPromise<EnterRoadVO[]> => {
|
||||
return request({
|
||||
url: '/land/enterRoad/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询进场道路信息详细
|
||||
* @param id
|
||||
*/
|
||||
export const getEnterRoad = (id: string | number): AxiosPromise<EnterRoadVO> => {
|
||||
return request({
|
||||
url: '/land/enterRoad/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增进场道路信息
|
||||
* @param data
|
||||
*/
|
||||
export const addEnterRoad = (data: EnterRoadForm) => {
|
||||
return request({
|
||||
url: '/land/enterRoad',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改进场道路信息
|
||||
* @param data
|
||||
*/
|
||||
export const updateEnterRoad = (data: EnterRoadForm) => {
|
||||
return request({
|
||||
url: '/land/enterRoad',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除进场道路信息
|
||||
* @param id
|
||||
*/
|
||||
export const delEnterRoad = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/land/enterRoad/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user